summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/menu-format/desktop-entry-unknown-type
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/menu-format/desktop-entry-unknown-type
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/menu-format/desktop-entry-unknown-type')
-rw-r--r--t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/debian/install1
-rw-r--r--t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/fill-values3
-rw-r--r--t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/orig/unknown-type.desktop4
-rw-r--r--t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/desc2
-rw-r--r--t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/hints1
5 files changed, 11 insertions, 0 deletions
diff --git a/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/debian/install b/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/debian/install
new file mode 100644
index 0000000..af33e1a
--- /dev/null
+++ b/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/debian/install
@@ -0,0 +1 @@
+unknown-type.desktop usr/share/applications
diff --git a/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/fill-values b/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/fill-values
new file mode 100644
index 0000000..f604a1b
--- /dev/null
+++ b/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: desktop-entry-unknown-type
+Description: Test desktop file type field value validity
diff --git a/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/orig/unknown-type.desktop b/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/orig/unknown-type.desktop
new file mode 100644
index 0000000..41dd262
--- /dev/null
+++ b/t/recipes/checks/menu-format/desktop-entry-unknown-type/build-spec/orig/unknown-type.desktop
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=foo
+Name=unknown-type
+Comment=Type should be one of Application, Link or Directory
diff --git a/t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/desc b/t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/desc
new file mode 100644
index 0000000..8d7cef4
--- /dev/null
+++ b/t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/desc
@@ -0,0 +1,2 @@
+Testname: desktop-entry-unknown-type
+Check: menu-format
diff --git a/t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/hints b/t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/hints
new file mode 100644
index 0000000..5e785a9
--- /dev/null
+++ b/t/recipes/checks/menu-format/desktop-entry-unknown-type/eval/hints
@@ -0,0 +1 @@
+desktop-entry-unknown-type (binary): desktop-entry-unknown-type foo [usr/share/applications/unknown-type.desktop]