mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
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:
parent
df6d511a8e
commit
0e47d62024
2 changed files with 8 additions and 2 deletions
|
@ -28,6 +28,7 @@ include fdroidserver/getsig/run.sh
|
||||||
include fdroidserver/getsig/make.sh
|
include fdroidserver/getsig/make.sh
|
||||||
include fdroidserver/getsig/getsig.java
|
include fdroidserver/getsig/getsig.java
|
||||||
include tests/run-tests
|
include tests/run-tests
|
||||||
|
include tests/urzip.apk
|
||||||
include wp-fdroid/AndroidManifest.xml
|
include wp-fdroid/AndroidManifest.xml
|
||||||
include wp-fdroid/android-permissions.php
|
include wp-fdroid/android-permissions.php
|
||||||
include wp-fdroid/readme.txt
|
include wp-fdroid/readme.txt
|
||||||
|
|
|
@ -42,7 +42,8 @@ create_test_file() {
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# "main"
|
# "main"
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $1 = "-h" ] || [ $1 = "--help" ]; then
|
||||||
|
set +x
|
||||||
echo "Usage: $0 '/path/to/folder/with/apks'"
|
echo "Usage: $0 '/path/to/folder/with/apks'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -53,7 +54,11 @@ if [ -z $ANDROID_HOME ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
APKDIR=$1
|
if [ -z $1 ]; then
|
||||||
|
APKDIR=`pwd`
|
||||||
|
else
|
||||||
|
APKDIR=$1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z $WORKSPACE ]; then
|
if [ -z $WORKSPACE ]; then
|
||||||
WORKSPACE=`dirname $(pwd)`
|
WORKSPACE=`dirname $(pwd)`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue