summaryrefslogtreecommitdiffstats
path: root/verifier_test.sh
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-07-25 22:10:58 +0200
committerDoug Zongker <dougz@android.com>2012-07-25 22:10:58 +0200
commit17495277b1a6328f5cae68523ad00be1f1107950 (patch)
tree1f24ec32e8d3cb586c2514180eeff4a539f5d8df /verifier_test.sh
parentam dd6cd4fc: Merge "graphics: add support for "single buffering"" (diff)
downloadandroid_bootable_recovery-17495277b1a6328f5cae68523ad00be1f1107950.tar
android_bootable_recovery-17495277b1a6328f5cae68523ad00be1f1107950.tar.gz
android_bootable_recovery-17495277b1a6328f5cae68523ad00be1f1107950.tar.bz2
android_bootable_recovery-17495277b1a6328f5cae68523ad00be1f1107950.tar.lz
android_bootable_recovery-17495277b1a6328f5cae68523ad00be1f1107950.tar.xz
android_bootable_recovery-17495277b1a6328f5cae68523ad00be1f1107950.tar.zst
android_bootable_recovery-17495277b1a6328f5cae68523ad00be1f1107950.zip
Diffstat (limited to 'verifier_test.sh')
-rwxr-xr-xverifier_test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/verifier_test.sh b/verifier_test.sh
index a1de5c57b..378b0e5ff 100755
--- a/verifier_test.sh
+++ b/verifier_test.sh
@@ -73,9 +73,24 @@ expect_fail() {
run_command $WORK_DIR/verifier_test $WORK_DIR/package.zip && fail
}
+expect_succeed_f4() {
+ testname "$1 (should succeed)"
+ $ADB push $DATA_DIR/$1 $WORK_DIR/package.zip
+ run_command $WORK_DIR/verifier_test -f4 $WORK_DIR/package.zip || fail
+}
+
+expect_fail_f4() {
+ testname "$1 (should fail)"
+ $ADB push $DATA_DIR/$1 $WORK_DIR/package.zip
+ run_command $WORK_DIR/verifier_test -f4 $WORK_DIR/package.zip && fail
+}
+
expect_fail unsigned.zip
expect_fail jarsigned.zip
expect_succeed otasigned.zip
+expect_fail_f4 otasigned.zip
+expect_succeed_f4 otasigned_f4.zip
+expect_fail otasigned_f4.zip
expect_fail random.zip
expect_fail fake-eocd.zip
expect_fail alter-metadata.zip