summaryrefslogtreecommitdiffstats
path: root/verifier_test.sh
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-10-14 23:12:49 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-14 23:12:49 +0200
commit9f6bfa302a4744271966d102d2f791127fdc7111 (patch)
tree1b85c665e4316f4bb60b3ba9eaa0fd249cf10694 /verifier_test.sh
parentam 053c1c5e: am 7fdeb1f9: merge in KQS81M (diff)
parentam f4a6ab27: Merge "Add support for ECDSA signatures" (diff)
downloadandroid_bootable_recovery-9f6bfa302a4744271966d102d2f791127fdc7111.tar
android_bootable_recovery-9f6bfa302a4744271966d102d2f791127fdc7111.tar.gz
android_bootable_recovery-9f6bfa302a4744271966d102d2f791127fdc7111.tar.bz2
android_bootable_recovery-9f6bfa302a4744271966d102d2f791127fdc7111.tar.lz
android_bootable_recovery-9f6bfa302a4744271966d102d2f791127fdc7111.tar.xz
android_bootable_recovery-9f6bfa302a4744271966d102d2f791127fdc7111.tar.zst
android_bootable_recovery-9f6bfa302a4744271966d102d2f791127fdc7111.zip
Diffstat (limited to 'verifier_test.sh')
-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