From 84abdf7c07f88c4249c7be93b95775fd26ead257 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 18 Feb 2005 16:27:54 +0000 Subject: test that 2005-02-18 Mark McLoughlin * tests/o/result, tests/o/test: test that foofoo doesn't match anything. * README: add bit about how to test the GNOME impl. --- menu/tests/ChangeLog | 9 +++++++++ menu/tests/README | 3 +++ menu/tests/tests/o/result | 3 +++ menu/tests/tests/o/test | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 menu/tests/tests/o/result create mode 100644 menu/tests/tests/o/test (limited to 'menu/tests') diff --git a/menu/tests/ChangeLog b/menu/tests/ChangeLog index 8b6d258..7abae7a 100644 --- a/menu/tests/ChangeLog +++ b/menu/tests/ChangeLog @@ -1,3 +1,12 @@ +2005-02-18 Mark McLoughlin + + * tests/o/result, + tests/o/test: test that + foofoo + doesn't match anything. + + * README: add bit about how to test the GNOME impl. + 2005-02-18 Mark McLoughlin Problem pointed out by Waldo. diff --git a/menu/tests/README b/menu/tests/README index e3a4fd8..edda7ce 100644 --- a/menu/tests/README +++ b/menu/tests/README @@ -25,6 +25,9 @@ able to generate the menu in the above format. To test KDE one can use: MENUTEST="kbuildsycoca --menutest" +With GNOME, you can use: + MENUTEST=gnome-menu-spec-test + The menutest script should be used to run the tests. The following commands can be used: diff --git a/menu/tests/tests/o/result b/menu/tests/tests/o/result new file mode 100644 index 0000000..446f6b6 --- /dev/null +++ b/menu/tests/tests/o/result @@ -0,0 +1,3 @@ +Apps/ KEdit.desktop /tmp/menutestdir/xdg_data_dir/applications/KEdit.desktop +Apps/ kwrite.desktop /tmp/menutestdir/xdg_data_dir/applications/kwrite.desktop +Apps/ kate.desktop /tmp/menutestdir/xdg_data_dir/applications/kate.desktop diff --git a/menu/tests/tests/o/test b/menu/tests/tests/o/test new file mode 100644 index 0000000..93afee5 --- /dev/null +++ b/menu/tests/tests/o/test @@ -0,0 +1,33 @@ +echo ">>> foofoo shouldn't match anything" + +# Generate applications.menu +mkdir -p ${XDG_CONFIG_DIR}/menus +./expand > ${XDG_CONFIG_DIR}/menus/applications.menu < + + + KDE + + + + + + Applications + apps.directory + + + TextEditor + + Game + Game + + + + + +EOF + +# Install .desktop files +installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop kate.desktop freecell.desktop +installData ${XDG_DATA_DIR}/desktop-directories apps.directory -- cgit v1.2.3-70-g09d2