mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
run-tests: run fdroid readmeta after each --create-metadata
Just another basic check, this time for `fdroid readmeta`.
This commit is contained in:
parent
fd6e323ba9
commit
d01e814e36
1 changed files with 9 additions and 0 deletions
|
|
@ -124,6 +124,7 @@ REPOROOT=`create_test_dir`
|
||||||
cd $REPOROOT
|
cd $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
$fdroid server update --local-copy-dir=/tmp/fdroid
|
$fdroid server update --local-copy-dir=/tmp/fdroid
|
||||||
|
|
||||||
# now test the errors work
|
# now test the errors work
|
||||||
|
|
@ -160,6 +161,7 @@ cd $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
||||||
LOCALCOPYDIR=`create_test_dir`/fdroid
|
LOCALCOPYDIR=`create_test_dir`/fdroid
|
||||||
|
|
@ -263,6 +265,7 @@ $fdroid init --keystore $KEYSTORE --android-home $STORED_ANDROID_HOME --no-promp
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
|
|
@ -278,6 +281,7 @@ mkdir repo
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -291,6 +295,7 @@ $fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
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 > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
@ -318,6 +323,7 @@ $fdroid update --create-key
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
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 > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
@ -333,11 +339,13 @@ $fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
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 > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
cp $WORKSPACE/tests/urzip.apk $REPOROOT/
|
cp $WORKSPACE/tests/urzip.apk $REPOROOT/
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
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 > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
@ -400,6 +408,7 @@ $fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata
|
||||||
|
$fdroid readmeta
|
||||||
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 > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue