From ea5e4c7b326435a1aea35b032a6a4a71feffac80 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 17 Oct 2018 19:52:44 -0400 Subject: [PATCH] Add a test for the build-finish --sdk option This runs a few otherwise unused functions. Closes: #2252 Approved by: matthiasclasen --- tests/test-run.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/test-run.sh b/tests/test-run.sh index 780f96b8..5339b7e4 100755 --- a/tests/test-run.sh +++ b/tests/test-run.sh @@ -23,7 +23,7 @@ set -euo pipefail skip_without_bwrap -echo "1..12" +echo "1..13" setup_repo install_repo @@ -392,3 +392,18 @@ fi assert_file_has_content err2.txt [Ii]nvalid echo "ok no setuid" + +rm -rf app +flatpak build-init app org.test.App org.test.Platform org.test.Platform +mkdir -p app/files/ +touch app/files/exe +flatpak build-finish --command=hello.sh --sdk=org.test.Sdk app +${FLATPAK} build-export ${FL_GPGARGS} repos/test app +update_repo + +${FLATPAK} ${U} install -y test-repo org.test.App +${FLATPAK} ${U} info -m org.test.App > out + +assert_file_has_content out ^sdk=org.test.Sdk/x86_64/master$ + +echo "ok --sdk option"