b05afccde0
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>
12 lines
251 B
Bash
Executable file
12 lines
251 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
. "$srcdir/common.sh"
|
|
|
|
sig=test.sig
|
|
signed=test.signed
|
|
|
|
trap 'rm -f "$sig" "$signed"' EXIT
|
|
|
|
"$sbsign" --cert "$cert" --key "$key" --detached --output $sig "$image"
|
|
"$sbattach" --attach $sig $signed
|
|
"$sbverify" --cert "$cert" "$signed"
|