@@ -117,8 +117,9 @@ static void do_test(void)
}
SHA1_Final(boot_aggregate, &c);
- printf("boot_aggregate:");
+ printf("sha1:");
display_sha1_digest(boot_aggregate);
+ tst_res(TPASS, "found sha1 hash");
}
static struct tst_option options[] = {
@@ -31,7 +31,7 @@ setup()
if ! check_evmctl $EVMCTL_REQUIRED; then
MISSING_EVMCTL=1
- if [ "$ALGORITHM" = "sha1" ]; then
+ if [ "$ALGORITHM" != "sha1" ]; then
tst_brk TCONF "algorithm not sha1 ($ALGORITHM), $ERRMSG_EVMCTL"
fi
fi
@@ -159,7 +159,8 @@ test1()
tst_res TCONF "missing $tpm_bios, $ERRMSG_EVMCTL"
return
fi
- cmd="ima_boot_aggregate"
+ tst_check_cmds ima_boot_aggregate || return
+ cmd="ima_boot_aggregate -f $tpm_bios"
fi
tst_res TINFO "using command: $cmd"