tests: Add a few simple tests
Add a few tests for the sign, verify, attach and detach code. These require some additional infrastructure to create a sample PE/COFF executable, plus a key & cert for testing. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
0c5de30566
commit
b05afccde0
9 changed files with 158 additions and 2 deletions
6
tests/sign-verify.sh
Executable file
6
tests/sign-verify.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
. "$srcdir/common.sh"
|
||||
|
||||
"$sbsign" --cert "$cert" --key "$key" --output test.signed "$image"
|
||||
"$sbverify" --cert "$cert" test.signed
|
Loading…
Add table
Add a link
Reference in a new issue