From 44b05b809c562f45b517da0f02d8c60b98f63810 Mon Sep 17 00:00:00 2001 From: lanius Date: Thu, 2 Jun 2005 14:28:56 +0000 Subject: two more tests --- menu/tests/tests/x/result | 1 + menu/tests/tests/x/test | 31 +++++++++++++++++++++++++++++++ menu/tests/tests/y/result | 1 + menu/tests/tests/y/test | 45 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 menu/tests/tests/x/result create mode 100644 menu/tests/tests/x/test create mode 100644 menu/tests/tests/y/result create mode 100644 menu/tests/tests/y/test (limited to 'menu/tests') diff --git a/menu/tests/tests/x/result b/menu/tests/tests/x/result new file mode 100644 index 0000000..f1c44ef --- /dev/null +++ b/menu/tests/tests/x/result @@ -0,0 +1 @@ +A/B/Development/ gideon-legacy.desktop ${XDG_DATA_DIR}/applications/gideon-legacy.desktop diff --git a/menu/tests/tests/x/test b/menu/tests/tests/x/test new file mode 100644 index 0000000..d260172 --- /dev/null +++ b/menu/tests/tests/x/test @@ -0,0 +1,31 @@ +echo ">>> Move into a new Submenu" + +# Generate applications.menu +mkdir -p ${XDG_CONFIG_DIR}/menus +./expand > ${XDG_CONFIG_DIR}/menus/applications.menu < + + + KDE + + + + + + Development + + gideon-legacy.desktop + + + + Development + A/B/Development + + +EOF + + +# Install .desktop files + +installData ${XDG_DATA_DIR}/applications gideon-legacy.desktop diff --git a/menu/tests/tests/y/result b/menu/tests/tests/y/result new file mode 100644 index 0000000..999bd1e --- /dev/null +++ b/menu/tests/tests/y/result @@ -0,0 +1 @@ +Editors/ kwrite.desktop ${XDG_DATA_DIR}/applications/kwrite.desktop diff --git a/menu/tests/tests/y/test b/menu/tests/tests/y/test new file mode 100644 index 0000000..44a2b8a --- /dev/null +++ b/menu/tests/tests/y/test @@ -0,0 +1,45 @@ +echo ">>> Merge Two Menus and a Legacy Menu" + +LEGACY_DIR=${MENUTESTDIR}/legacy_applnk +export LEGACY_DIR + +# Generate applications.menu +mkdir -p ${XDG_CONFIG_DIR}/menus +./expand > ${XDG_CONFIG_DIR}/menus/applications.menu < + + + KDE + + + + ${LEGACY_DIR} + + + Development + + kate.desktop + + + + Development + + KEdit.desktop + + + + + Editors + + kwrite.desktop + + + +EOF + + +# Install .desktop files + +installData ${LEGACY_DIR}/Development gideon-legacy.desktop +installData ${XDG_DATA_DIR}/applications kate.desktop kwrite.desktop KEdit.desktop -- cgit v1.2.3-70-g09d2