chiark / gitweb /
tests: create a source tarball and use that to build a repo
authorHans-Christoph Steiner <hans@eds.org>
Fri, 27 Jun 2014 21:06:52 +0000 (17:06 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Sat, 28 Jun 2014 00:31:28 +0000 (20:31 -0400)
This tests that setup.py is in working order and creating a functional
source tarball.

tests/run-tests

index 5bc1bd7be6f9100691716580fea39f6d626ad27c..a3b5e76b20a7a1e64b958c4371020f7df0fd78ef 100755 (executable)
@@ -75,6 +75,24 @@ if [ -z $aapt ]; then
     aapt=`ls -1 $ANDROID_HOME/build-tools/*/aapt | sort | tail -1`
 fi
 
+
+#------------------------------------------------------------------------------#
+echo_header "create a source tarball and use that to build a repo"
+
+cd $WORKSPACE
+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
+./fdroidserver-*/fdroid update --create-metadata
+
+
 #------------------------------------------------------------------------------#
 echo_header "test config checks of local_copy_dir"