chiark / gitweb /
run-tests: make sure not to include the bad APKs in tests/
authorHans-Christoph Steiner <hans@eds.org>
Mon, 17 Nov 2014 16:24:02 +0000 (17:24 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 17 Nov 2014 16:24:02 +0000 (17:24 +0100)
These APKs are meant for specific tests, not the tests that want just a
collection of good APKs.

tests/run-tests

index c12c78a7b01bb51fbc159d85721080388de6f62d..ba0d80e6ceec53eeba4e167e22b643685527ef8a 100755 (executable)
@@ -10,7 +10,7 @@ echo_header() {
 
 copy_apks_into_repo() {
     set +x
-    for f in `find $APKDIR -name '*.apk' | grep -F -v -e unaligned -e unsigned`; do
+    for f in `find $APKDIR -name '*.apk' | grep -F -v -e unaligned -e unsigned -e badsig -e badcert`; do
         name=$(basename $(dirname `dirname $f`))
         apk=`$aapt dump badging "$f" | sed -n "s,^package: name='\(.*\)' versionCode='\([0-9][0-9]*\)' .*,\1_\2.apk,p"`
         test $f -nt repo/$apk && rm -f repo/$apk  # delete existing if $f is newer