summaryrefslogtreecommitdiff
path: root/tests/make-test-app.sh
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2019-09-18 16:11:50 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2019-09-18 14:55:38 +0000
commit62117308c1dd0f10f82d274d542da0d9b7f7d426 (patch)
tree1e1a4413288c3b9406e47a1e6e3ae2fff47a60d0 /tests/make-test-app.sh
parent535e1a66b1bedd6f32e8537e6985729a36234f42 (diff)
downloadflatpak-62117308c1dd0f10f82d274d542da0d9b7f7d426.tar.gz
tests: Add test for required-flatpak versioning
This sets required-flatpak in the metadata to some different versions and ensure we're properly able or not able to install it. Additionally it uses some options with multiple versions. This is not yet supported but I want to test the existing code and make sure it properly falls back to just using the first element of the list. Closes: #3112 Approved by: alexlarsson
Diffstat (limited to 'tests/make-test-app.sh')
-rwxr-xr-xtests/make-test-app.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/make-test-app.sh b/tests/make-test-app.sh
index 0a0a28f1..e86d16f3 100755
--- a/tests/make-test-app.sh
+++ b/tests/make-test-app.sh
@@ -27,7 +27,15 @@ cat > ${DIR}/metadata <<EOF
name=$APP_ID
runtime=org.test.Platform/$ARCH/$BRANCH
sdk=org.test.Platform/$ARCH/$BRANCH
+EOF
+
+if [ x${REQUIRED_VERSION-} != x ]; then
+cat >> ${DIR}/metadata <<EOF
+required-flatpak=$REQUIRED_VERSION
+EOF
+fi
+cat >> ${DIR}/metadata <<EOF
[Extension $APP_ID.Locale]
directory=share/runtime/locale
autodelete=true