sbsigntools/tests/verify-missing-cert.sh
Jeremy Kerr 0568983fab tests: Add tests for missing image, cert & key files
Currently causes a segfault in verify-missing-image.sh.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
2012-06-13 17:30:31 +08:00

14 lines
208 B
Bash
Executable file

#!/bin/bash -e
. "$srcdir/common.sh"
signed="test.signed"
"$sbsign" --cert "$cert" --key "$key" --output "$signed" "$image"
set +e
"$sbverify" --cert "missing-cert" "$signed"
rc=$?
set -e
test $rc -eq 1