diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-02-05 11:58:00 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-10 23:45:30 +0000 |
commit | 64b3697297f1d99176eaf081f3194a68b3bac2f8 (patch) | |
tree | ca49e3bea1593c992743edf1094469f542fda219 /tests/futility | |
parent | 3855e2e948f235c7e4725e5a33b06878fa7b3130 (diff) | |
download | vboot-64b3697297f1d99176eaf081f3194a68b3bac2f8.tar.gz |
futility: show some information about .pem files
We use the .pem files to generate our public and private key
files. Since we display the sha1sums of those files to help keep
track of them, we might as well also display the same information
about the RSA .pem files, too.
BUG=chromium:231574
BRANCH=none
TEST=make runtests
futility show tests/testkeys/*.pem
Change-Id: Ibfd1e016d65981d477ed7d117d23dedf48b95873
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/246769
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/futility')
-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 |