tests: allow tests to run without any Android SDK installed

This commit is contained in:
Hans-Christoph Steiner 2018-05-14 14:41:49 +02:00
parent 43c61aecee
commit 2d3e7ef950

View file

@ -156,6 +156,7 @@ $fdroid --version
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
echo_header 'run process when building and signing are on separate machines' echo_header 'run process when building and signing are on separate machines'
if which zipalign || ls -1 $ANDROID_HOME/build-tools/*/zipalign; then
REPOROOT=`create_test_dir` REPOROOT=`create_test_dir`
cd $REPOROOT cd $REPOROOT
cp $WORKSPACE/tests/keystore.jks $REPOROOT/ cp $WORKSPACE/tests/keystore.jks $REPOROOT/
@ -180,7 +181,7 @@ test -e tmp/apkcache
! test -z tmp/apkcache ! test -z tmp/apkcache
test -L urzip.apk test -L urzip.apk
grep -F '<application id=' repo/index.xml > /dev/null grep -F '<application id=' repo/index.xml > /dev/null
fi
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
echo_header "test UTF-8 metadata" echo_header "test UTF-8 metadata"