sbsigntools/tests/sign-missing-image.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

12 lines
170 B
Bash
Executable file

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