sbsigntools/tests/verify-missing-cert.sh

13 lines
185 B
Bash
Raw Normal View History

#!/bin/bash -e
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