summaryrefslogtreecommitdiffstats
path: root/menu/tests
diff options
context:
space:
mode:
Diffstat (limited to 'menu/tests')
-rw-r--r--menu/tests/tests/k/test1
-rw-r--r--menu/tests/tests/v/result2
-rw-r--r--menu/tests/tests/v/test31
3 files changed, 34 insertions, 0 deletions
diff --git a/menu/tests/tests/k/test b/menu/tests/tests/k/test
index 42f0d60..a70bf9a 100644
--- a/menu/tests/tests/k/test
+++ b/menu/tests/tests/k/test
@@ -25,6 +25,7 @@ mkdir ${XDG_CONFIG_DIR}/menus/applications-merged/
./expand > ${XDG_CONFIG_DIR}/menus/applications-merged/test.menu <<EOF
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
+<!-- test -->
<Menu>
<Name>KDE</Name>
diff --git a/menu/tests/tests/v/result b/menu/tests/tests/v/result
new file mode 100644
index 0000000..5439b68
--- /dev/null
+++ b/menu/tests/tests/v/result
@@ -0,0 +1,2 @@
+Applications/ kwrite.desktop /tmp/menutestdir/xdg_data_dir/applications/kwrite.desktop
+Editors/ kwrite.desktop /tmp/menutestdir/xdg_data_dir/applications/kwrite.desktop
diff --git a/menu/tests/tests/v/test b/menu/tests/tests/v/test
new file mode 100644
index 0000000..a6f6920
--- /dev/null
+++ b/menu/tests/tests/v/test
@@ -0,0 +1,31 @@
+echo ">>> Another <OnlyUnallocated> test"
+
+# Tests <OnlyUnallocated>
+
+# Generate applications.menu
+mkdir -p ${XDG_CONFIG_DIR}/menus
+./expand > ${XDG_CONFIG_DIR}/menus/applications.menu <<EOF
+ <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
+ "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
+
+<Menu>
+ <Name>KDE</Name>
+ <DefaultAppDirs/>
+
+ <Menu>
+ <Name>Applications</Name>
+ <Include>
+ <Filename>kwrite.desktop</Filename>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Editors</Name>
+ <Include>
+ <Filename>kwrite.desktop</Filename>
+ </Include>
+ </Menu>
+</Menu>
+EOF
+
+# Install .desktop files
+installData ${XDG_DATA_DIR}/applications kwrite.desktop