15 lines
208 B
Bash
15 lines
208 B
Bash
|
#!/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
|