1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

test: make sure fdroid update -c creates a full index.xml

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.
This commit is contained in:
Hans-Christoph Steiner 2014-05-30 15:53:11 -04:00
parent bc8ad37249
commit ed7a0576c2

View File

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