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.
This commit is contained in:
Chris Williams
2024-02-21 17:12:52 -05:00
committed by Patrick Griffis
parent 2cba9e3db3
commit bcf0480e94
2 changed files with 10 additions and 1 deletions

View File

@@ -130,6 +130,9 @@ cat <<EOF > ${DIR}/files/share/metainfo/${APP_ID}.metainfo.xml
<name>Hello world test app: $APP_ID</name>
<summary>Print a greeting</summary>
<description><p>This is a test app.</p></description>
<developer>
<name>Developer name</name>
</developer>
<categories>
<category>Utility</category>
</categories>

View File

@@ -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)"