tests: by default, run on included urzip.apk

This means you can just do `cd tests/ && ./run-tests` to run the tests now.
You can still override the APK source with the first argument, like:

cd tests/ && ./run-tests /path/to/lots/of/apks/dir
This commit is contained in:
Hans-Christoph Steiner 2014-06-27 17:06:18 -04:00
parent df6d511a8e
commit 0e47d62024
2 changed files with 8 additions and 2 deletions

View File

@ -28,6 +28,7 @@ include fdroidserver/getsig/run.sh
include fdroidserver/getsig/make.sh
include fdroidserver/getsig/getsig.java
include tests/run-tests
include tests/urzip.apk
include wp-fdroid/AndroidManifest.xml
include wp-fdroid/android-permissions.php
include wp-fdroid/readme.txt

View File

@ -42,7 +42,8 @@ create_test_file() {
#------------------------------------------------------------------------------#
# "main"
if [ $# -ne 1 ]; then
if [ $1 = "-h" ] || [ $1 = "--help" ]; then
set +x
echo "Usage: $0 '/path/to/folder/with/apks'"
exit 1
fi
@ -53,7 +54,11 @@ if [ -z $ANDROID_HOME ]; then
exit 1
fi
APKDIR=$1
if [ -z $1 ]; then
APKDIR=`pwd`
else
APKDIR=$1
fi
if [ -z $WORKSPACE ]; then
WORKSPACE=`dirname $(pwd)`