sbsigntools/tests/verify-missing-cert.sh

15 lines
208 B
Bash
Raw Normal View History

#!/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