summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-02-25 19:03:09 +0100
committerAlexander Larsson <alexl@redhat.com>2016-02-25 19:03:09 +0100
commiteba6a1e552ec9eb14caf74b64a9d2d6f51873fcb (patch)
tree4c5fe846b5e045f7ccc7d38644b9d4d4cf7d9f49 /tests
parent73defceec6f8e62fffc6f312cd4e40e770265d1c (diff)
downloadxdg-app-eba6a1e552ec9eb14caf74b64a9d2d6f51873fcb.tar.gz
Add appdata to test apps
Diffstat (limited to 'tests')
-rwxr-xr-xtests/make-test-app.sh19
-rw-r--r--tests/org.test.Hello.pngbin0 -> 7416 bytes
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/make-test-app.sh b/tests/make-test-app.sh
index 31a9239..594902d 100755
--- a/tests/make-test-app.sh
+++ b/tests/make-test-app.sh
@@ -14,6 +14,25 @@ echo "Hello world, from a sandbox"
EOF
chmod a+x ${DIR}/files/bin/hello.sh
+mkdir -p ${DIR}/files/share/app-info/xmls
+mkdir -p ${DIR}/files/share/app-info/icons/xdg-app/64x64
+gzip -c > ${DIR}/files/share/app-info/xmls/org.test.Hello.xml.gz <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<components version="0.8">
+ <component type="desktop">
+ <id>org.test.Hello.desktop</id>
+ <name>Hello world test app</name>
+ <summary>Print a greeting</summary>
+ <description><p>This is a test app.</p></description>
+ <categories>
+ <category>Utility</category>
+ </categories>
+ <icon height="64" width="64" type="cached">64x64/org.gnome.gedit.png</icon>
+ </component>
+</components>
+EOF
+cp org.test.Hello.png ${DIR}/files/share/app-info/icons/xdg-app/64x64/
+
xdg-app build-finish --command=hello.sh ${DIR}
xdg-app build-export repo ${DIR}
rm -rf ${DIR}
diff --git a/tests/org.test.Hello.png b/tests/org.test.Hello.png
new file mode 100644
index 0000000..751ddbd
--- /dev/null
+++ b/tests/org.test.Hello.png
Binary files differ