chiark / gitweb /
Replace getsig.java with a pure python implementation
[fdroidserver.git] / tests / run-tests
index 214233c2136408fecfa20e9088b5852f5637f2ba..1f0e7709e7355f770f496577fb7678403d44e527 100755 (executable)
@@ -26,6 +26,8 @@ copy_apks_into_repo() {
 # keep this as an old version to test the automatic parsing of build-tools
 # verion numbers in `fdroid init`
 create_fake_android_home() {
+    mkdir $1/tools
+    mkdir $1/platform-tools
     mkdir $1/build-tools
     mkdir $1/build-tools/19.0.2
     touch $1/build-tools/19.0.2/aapt
@@ -83,6 +85,13 @@ if [ -z $python ]; then
 fi
 
 
+#------------------------------------------------------------------------------#
+echo_header "run commit hooks"
+
+cd $WORKSPACE
+./hooks/pre-commit
+
+
 #------------------------------------------------------------------------------#
 echo_header "create a source tarball and use that to build a repo"
 
@@ -92,8 +101,6 @@ $python setup.py sdist
 REPOROOT=`create_test_dir`
 cd $REPOROOT
 tar xzf `ls -1 $WORKSPACE/dist/fdroidserver-*.tar.gz | sort -n | tail -1`
-cd $REPOROOT/fdroidserver-*/fdroidserver/getsig
-./make.sh
 cd $REPOROOT
 ./fdroidserver-*/fdroid init
 copy_apks_into_repo $REPOROOT
@@ -179,7 +186,7 @@ set -e
 
 
 #------------------------------------------------------------------------------#
-echo_header "check that fake android home passes `fdroid init`"
+echo_header "check that fake android home passes 'fdroid init'"
 
 REPOROOT=`create_test_dir`
 FAKE_ANDROID_HOME=`create_test_dir`
@@ -304,5 +311,6 @@ $fdroid init --keystore NONE
 test -e opensc-fdroid.cfg
 test ! -e NONE
 
+rm -rf $WORKSPACE/fdroidserver.egg-info/
 
 echo SUCCESS