diff --git a/tests/keystore.jks b/tests/keystore.jks index 1eb91fe7..ca13f917 100644 Binary files a/tests/keystore.jks and b/tests/keystore.jks differ diff --git a/tests/run-tests b/tests/run-tests index 8a7b31a8..16ec8bb3 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -387,6 +387,21 @@ if ! which apksigner; then test -e archive/com.politedroid_5.apk ! test -e archive/com.politedroid_6.apk test -e repo/com.politedroid_6.apk + + echo "set an earlier version as CVC and test that it's the only one not archived" + $sed -i.tmp 's,^Current Version Code:6,Current Version Code:5,' metadata/com.politedroid.txt + $fdroid update --pretty --nosign + test `grep '' archive/index.xml | wc -l` -eq 3 + test `grep '' repo/index.xml | wc -l` -eq 1 + grep -F com.politedroid_3.apk archive/index.xml + grep -F com.politedroid_4.apk archive/index.xml + grep -F com.politedroid_5.apk repo/index.xml + grep -F com.politedroid_6.apk archive/index.xml + test -e archive/com.politedroid_3.apk + test -e archive/com.politedroid_4.apk + test -e repo/com.politedroid_5.apk + ! test -e repo/com.politedroid_6.apk + test -e archive/com.politedroid_6.apk fi