From 84a56ac520898a0a5553cd45c975c6ebf5e58dd7 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 25 Apr 2005 12:00:06 +0000 Subject: add test for recursive inclusion of .menu files. Also know as the "get 2005-04-25 Mark McLoughlin * tests/u: add test for recursive inclusion of .menu files. Also know as the "get really hosed and eat all the RAM you can find" test. --- menu/tests/ChangeLog | 6 +++++ menu/tests/tests/u/result | 5 ++++ menu/tests/tests/u/test | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 menu/tests/tests/u/result create mode 100644 menu/tests/tests/u/test (limited to 'menu/tests') diff --git a/menu/tests/ChangeLog b/menu/tests/ChangeLog index b813a7e..ac55e4f 100644 --- a/menu/tests/ChangeLog +++ b/menu/tests/ChangeLog @@ -1,3 +1,9 @@ +2005-04-25 Mark McLoughlin + + * tests/u: add test for recursive inclusion of .menu files. + Also know as the "get really hosed and eat all the RAM + you can find" test. + 2005-04-20 Waldo Bastian * tests/s/result, diff --git a/menu/tests/tests/u/result b/menu/tests/tests/u/result new file mode 100644 index 0000000..de216fc --- /dev/null +++ b/menu/tests/tests/u/result @@ -0,0 +1,5 @@ +Applications/ KEdit.desktop /tmp/menutestdir/xdg_data_dir/applications/KEdit.desktop +Applications/ kate.desktop /tmp/menutestdir/xdg_data_dir/applications/kate.desktop +Applications/ kwrite.desktop /tmp/menutestdir/xdg_data_dir/applications/kwrite.desktop +Development/ kbabel.desktop /tmp/menutestdir/xdg_data_dir/applications/kbabel.desktop +Development/ quanta.desktop /tmp/menutestdir/xdg_data_dir/applications/quanta.desktop diff --git a/menu/tests/tests/u/test b/menu/tests/tests/u/test new file mode 100644 index 0000000..49ce526 --- /dev/null +++ b/menu/tests/tests/u/test @@ -0,0 +1,58 @@ +echo ">>> recursive s ..." + +# Test elaborate recursive loop in s + +# Generate applications.menu +mkdir -p ${XDG_CONFIG_DIR}/menus +./expand > ${XDG_CONFIG_DIR}/menus/applications.menu < + + + KDE + + applications-merged/test.menu + + + Applications + + TextEditor + + + +EOF + + +mkdir ${XDG_CONFIG_DIR}/menus/applications-merged/ +./expand > ${XDG_CONFIG_DIR}/menus/applications-merged/test.menu < + + + KDE + + extra/test.menu + +EOF + +mkdir ${XDG_CONFIG_DIR}/menus/applications-merged/extra/ +./expand > ${XDG_CONFIG_DIR}/menus/applications-merged/extra/test.menu < + + + KDE + + + Development + + Development + + + + ../test.menu + +EOF + +# Install .desktop files +installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop quanta.desktop kate.desktop kbabel.desktop -- cgit v1.2.3-70-g09d2