mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03: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:
parent
bc8ad37249
commit
ed7a0576c2
1 changed files with 8 additions and 8 deletions
|
@ -51,8 +51,8 @@ REPOROOT=`create_test_dir`
|
||||||
cd $REPOROOT
|
cd $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update -c
|
$fdroid update --createmeta
|
||||||
$fdroid update
|
grep -F '<application id=' repo/index.xml
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
|
@ -138,8 +138,8 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
|
$fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update -c
|
$fdroid update --createmeta
|
||||||
$fdroid update
|
grep -F '<application id=' repo/index.xml
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
export ANDROID_HOME=$STORED_ANDROID_HOME
|
export ANDROID_HOME=$STORED_ANDROID_HOME
|
||||||
|
@ -153,8 +153,8 @@ cd $REPOROOT
|
||||||
mkdir repo
|
mkdir repo
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
$fdroid update -c
|
$fdroid update --createmeta
|
||||||
$fdroid update
|
grep -F '<application id=' repo/index.xml
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
|
@ -166,10 +166,10 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE
|
$fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update -c
|
$fdroid update --createmeta
|
||||||
$fdroid update
|
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
|
grep -F '<application id=' repo/index.xml
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue