From bcf0480e9423b07e4a043b1398559f9446c68abb Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Wed, 21 Feb 2024 17:12:52 -0500 Subject: [PATCH] tests: Check appdata name parsing via flatpak info Add a basic test for the extraction of appdata name and summary values that are displayed in the flatpak UI. Also use the new developer name syntax in the test app. This tests the fix made in previous commit. --- tests/make-test-app.sh | 3 +++ tests/test-info.sh | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/make-test-app.sh b/tests/make-test-app.sh index 06cae5f9..36df984b 100755 --- a/tests/make-test-app.sh +++ b/tests/make-test-app.sh @@ -130,6 +130,9 @@ cat < ${DIR}/files/share/metainfo/${APP_ID}.metainfo.xml Hello world test app: $APP_ID Print a greeting

This is a test app.

+ + Developer name + Utility diff --git a/tests/test-info.sh b/tests/test-info.sh index 2158c11b..03472a9d 100644 --- a/tests/test-info.sh +++ b/tests/test-info.sh @@ -6,7 +6,7 @@ set -euo pipefail skip_revokefs_without_fuse -echo "1..8" +echo "1..9" INCLUDE_SPECIAL_CHARACTER=1 setup_repo install_repo @@ -62,3 +62,9 @@ ${FLATPAK} info --file-access=home org.test.Hello > info assert_file_has_content info "^hidden$" ok "info --file-access" + +${FLATPAK} info org.test.Hello > info + +assert_file_has_content info "^Hello world test app: org\.test\.Hello - Print a greeting$" + +ok "info (name header)"