mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-04 07:11:28 -04:00
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:
committed by
Patrick Griffis
parent
2cba9e3db3
commit
bcf0480e94
@@ -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>
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user