diff options
Diffstat (limited to 'tests/futility/test_create.sh')
-rwxr-xr-x | tests/futility/test_create.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/futility/test_create.sh b/tests/futility/test_create.sh index 3c1d38e2..78b9e04a 100755 --- a/tests/futility/test_create.sh +++ b/tests/futility/test_create.sh @@ -37,8 +37,12 @@ done # Demonstrate that the sha1sums are the same for all the keys created from the # same .pem files, both public and private, vb1 and vb21. for sig in rsa1024 rsa2048 rsa4096 rsa8192; do - num=$(${FUTILITY} show ${TMP}_key_${sig}.* | grep sha1sum | uniq | wc -l) - [ "$num" -eq "1" ] + pem_sum=$(${FUTILITY} show "${TESTKEYS}/key_${sig}.pem" | + awk '/sha1sum/ {print $3}') + key_sums=$(${FUTILITY} show ${TMP}_key_${sig}.* | + awk '/sha1sum/ {print $3}' | uniq) + # note that this also tests that all the key_sums are the same + [ "$pem_sum" = "$key_sums" ] done # cleanup |