diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-10-17 19:52:44 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-10-23 20:10:37 +0000 |
commit | ea5e4c7b326435a1aea35b032a6a4a71feffac80 (patch) | |
tree | be99f58e32bcb7091a3a4c40eda7d9baa87f0f6c /tests/test-run.sh | |
parent | 2bbdd7712af28890843c558ccab8b71a6cbf093a (diff) | |
download | flatpak-ea5e4c7b326435a1aea35b032a6a4a71feffac80.tar.gz |
Add a test for the build-finish --sdk option
This runs a few otherwise unused functions.
Closes: #2252
Approved by: matthiasclasen
Diffstat (limited to 'tests/test-run.sh')
-rwxr-xr-x | tests/test-run.sh | 17 |
1 files changed, 16 insertions, 1 deletions
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" |