chiark / gitweb /
test: make sure `fdroid update -c` creates a full index.xml
authorHans-Christoph Steiner <hans@eds.org>
Fri, 30 May 2014 19:53:11 +0000 (15:53 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 5 Jun 2014 01:54:55 +0000 (21:54 -0400)
Previously, `fdroid update -c` would only create the new metadata, but
would not add the new apps/apks to the repo.  That required a second run of
`fdroid update`.  This has been fixes, so this test makes sure it stays
fixed, in a very generic way.

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
 
 
 #------------------------------------------------------------------------------#