sbsigntools/tests/sign-verify.sh
Jeremy Kerr b05afccde0 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>
2012-06-13 14:23:26 +08:00

6 lines
146 B
Bash
Executable file

#!/bin/bash -e
. "$srcdir/common.sh"
"$sbsign" --cert "$cert" --key "$key" --output test.signed "$image"
"$sbverify" --cert "$cert" test.signed