chiark / gitweb /
test: make sure `fdroid update -c` creates a full index.xml
[fdroidserver.git] / tests / run-tests
index f3e9a3e7589dded177239175179434a95341dabc..acf31774e216a98d3bb5478d4241dd7c5192481b 100755 (executable)
@@ -51,8 +51,8 @@ REPOROOT=`create_test_dir`
 cd $REPOROOT
 $fdroid init
 copy_apks_into_repo $REPOROOT
-$fdroid update -c
-$fdroid update
+$fdroid update --createmeta
+grep -F '<application id=' repo/index.xml
 
 
 #------------------------------------------------------------------------------#
@@ -138,8 +138,8 @@ cd $REPOROOT
 $fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
 test -e $KEYSTORE
 copy_apks_into_repo $REPOROOT
-$fdroid update -c
-$fdroid update
+$fdroid update --createmeta
+grep -F '<application id=' repo/index.xml
 test -e repo/index.xml
 test -e repo/index.jar
 export ANDROID_HOME=$STORED_ANDROID_HOME
@@ -153,8 +153,8 @@ cd $REPOROOT
 mkdir repo
 copy_apks_into_repo $REPOROOT
 $fdroid init
-$fdroid update -c
-$fdroid update
+$fdroid update --createmeta
+grep -F '<application id=' repo/index.xml
 
 
 #------------------------------------------------------------------------------#
@@ -166,10 +166,10 @@ cd $REPOROOT
 $fdroid init --keystore $KEYSTORE
 test -e $KEYSTORE
 copy_apks_into_repo $REPOROOT
-$fdroid update -c
-$fdroid update
+$fdroid update --createmeta
 test -e repo/index.xml
 test -e repo/index.jar
+grep -F '<application id=' repo/index.xml
 
 
 #------------------------------------------------------------------------------#