Skip to content

Commit

Permalink
tests: Check appdata name parsing via flatpak info
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrisawi authored and TingPing committed Mar 12, 2024
1 parent 73d4a3b commit 886462b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/make-test-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 7 additions & 1 deletion tests/test-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"

0 comments on commit 886462b

Please sign in to comment.