summaryrefslogtreecommitdiffstats
path: root/menu/tests
diff options
context:
space:
mode:
Diffstat (limited to 'menu/tests')
-rw-r--r--menu/tests/tests/w/result2
-rw-r--r--menu/tests/tests/w/test38
2 files changed, 40 insertions, 0 deletions
diff --git a/menu/tests/tests/w/result b/menu/tests/tests/w/result
new file mode 100644
index 0000000..9a2b9db
--- /dev/null
+++ b/menu/tests/tests/w/result
@@ -0,0 +1,2 @@
+Editors/ gideon-legacy.desktop ${LEGACY_DIR}/Development/gideon-legacy.desktop
+/ Home.desktop ${LEGACY_DIR}/Home.desktop
diff --git a/menu/tests/tests/w/test b/menu/tests/tests/w/test
new file mode 100644
index 0000000..d7f2ede
--- /dev/null
+++ b/menu/tests/tests/w/test
@@ -0,0 +1,38 @@
+echo ">>> Move entries from <LegacyDir>"
+
+LEGACY_DIR=${MENUTESTDIR}/legacy_applnk
+export LEGACY_DIR
+
+# 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>
+ <!-- Search the default locations -->
+ <LegacyDir>${LEGACY_DIR}</LegacyDir>
+ <DefaultAppDirs/>
+ <DefaultDirectoryDirs/>
+
+ <Menu>
+ <Name>Development</Name>
+ <Exclude>
+ <Filename>gideon-legacy.desktop</Filename>
+ </Exclude>
+ </Menu>
+ <Menu>
+ <Name>Editors</Name>
+ <Include>
+ <Filename>gideon-legacy.desktop</Filename>
+ </Include>
+ </Menu>
+</Menu>
+EOF
+
+
+# Install .desktop files
+
+installData ${LEGACY_DIR} Home.desktop
+installData ${LEGACY_DIR}/Development gideon-legacy.desktop