summaryrefslogtreecommitdiffstats
path: root/verifier_test.sh
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-10-09 19:14:35 +0200
committerKenny Root <kroot@google.com>2013-10-10 23:19:19 +0200
commit7a4adb5268ae71260c86788ccdeb7a699c80ee0a (patch)
treeda4a744e642f5014c3a1085097590bd4a5997f1c /verifier_test.sh
parentMerge "verifier: update to support certificates using SHA-256" (diff)
downloadandroid_bootable_recovery-7a4adb5268ae71260c86788ccdeb7a699c80ee0a.tar
android_bootable_recovery-7a4adb5268ae71260c86788ccdeb7a699c80ee0a.tar.gz
android_bootable_recovery-7a4adb5268ae71260c86788ccdeb7a699c80ee0a.tar.bz2
android_bootable_recovery-7a4adb5268ae71260c86788ccdeb7a699c80ee0a.tar.lz
android_bootable_recovery-7a4adb5268ae71260c86788ccdeb7a699c80ee0a.tar.xz
android_bootable_recovery-7a4adb5268ae71260c86788ccdeb7a699c80ee0a.tar.zst
android_bootable_recovery-7a4adb5268ae71260c86788ccdeb7a699c80ee0a.zip
Diffstat (limited to '')
-rwxr-xr-xverifier_test.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/verifier_test.sh b/verifier_test.sh
index 65f77f401..4761cef4a 100755
--- a/verifier_test.sh
+++ b/verifier_test.sh
@@ -81,20 +81,30 @@ expect_fail unsigned.zip
expect_fail jarsigned.zip
# success cases
-expect_succeed otasigned.zip
+expect_succeed otasigned.zip -e3
expect_succeed otasigned_f4.zip -f4
-expect_succeed otasigned_sha256.zip -sha256
-expect_succeed otasigned_f4_sha256.zip -sha256 -f4
+expect_succeed otasigned_sha256.zip -e3 -sha256
+expect_succeed otasigned_f4_sha256.zip -f4 -sha256
+expect_succeed otasigned_ecdsa_sha256.zip -ec -sha256
+
+# success with multiple keys
+expect_succeed otasigned.zip -f4 -e3
+expect_succeed otasigned_f4.zip -ec -f4
+expect_succeed otasigned_sha256.zip -ec -e3 -e3 -sha256
+expect_succeed otasigned_f4_sha256.zip -ec -sha256 -e3 -f4 -sha256
+expect_succeed otasigned_ecdsa_sha256.zip -f4 -sha256 -e3 -ec -sha256
# verified against different key
expect_fail otasigned.zip -f4
-expect_fail otasigned_f4.zip
+expect_fail otasigned_f4.zip -e3
+expect_fail otasigned_ecdsa_sha256.zip -e3 -sha256
# verified against right key but wrong hash algorithm
-expect_fail otasigned.zip -sha256
-expect_fail otasigned_f4.zip -sha256 -f4
+expect_fail otasigned.zip -e3 -sha256
+expect_fail otasigned_f4.zip -f4 -sha256
expect_fail otasigned_sha256.zip
expect_fail otasigned_f4_sha256.zip -f4
+expect_fail otasigned_ecdsa_sha256.zip
# various other cases
expect_fail random.zip