From ed47fd4b1c2bb86864c3ddd0439c39892e64858c Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Tue, 22 Mar 2005 20:49:21 +0000 Subject: Test for type attribute in --- menu/tests/tests/q/result | 5 ++++ menu/tests/tests/q/test | 60 +++++++++++++++++++++++++++++++++++++++++++++++ menu/tests/tests/r/result | 5 ++++ menu/tests/tests/r/test | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+) create mode 100644 menu/tests/tests/q/result create mode 100644 menu/tests/tests/q/test create mode 100644 menu/tests/tests/r/result create mode 100644 menu/tests/tests/r/test (limited to 'menu/tests') diff --git a/menu/tests/tests/q/result b/menu/tests/tests/q/result new file mode 100644 index 0000000..de216fc --- /dev/null +++ b/menu/tests/tests/q/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/q/test b/menu/tests/tests/q/test new file mode 100644 index 0000000..67f092a --- /dev/null +++ b/menu/tests/tests/q/test @@ -0,0 +1,60 @@ +echo ">>> the tag ..." + +# Tests the type attribute in + +# Generate applications.menu +mkdir -p ${XDG_CONFIG_HOME}/menus +./expand > ${XDG_CONFIG_HOME}/menus/applications.menu < + + + KDE + + ${XDG_CONFIG_DIR}/menus/test.menu + + + Applications + + TextEditor + + + +EOF + + +mkdir -p ${XDG_CONFIG_DIR}/menus +./expand > ${XDG_CONFIG_DIR}/menus/test.menu < + + + KDE + + + Games + + Game + + + +EOF + +./expand > ${XDG_CONFIG_DIR}/menus/applications.menu < + + + KDE + + + Development + + Development + + + +EOF + +# Install .desktop files +installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop quanta.desktop kate.desktop kbabel.desktop freecell.desktop glines.desktop diff --git a/menu/tests/tests/r/result b/menu/tests/tests/r/result new file mode 100644 index 0000000..489b7f4 --- /dev/null +++ b/menu/tests/tests/r/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 +Games/ freecell.desktop /tmp/menutestdir/xdg_data_dir/applications/freecell.desktop +Games/ glines.desktop /tmp/menutestdir/xdg_data_dir/applications/glines.desktop diff --git a/menu/tests/tests/r/test b/menu/tests/tests/r/test new file mode 100644 index 0000000..b6d2dbc --- /dev/null +++ b/menu/tests/tests/r/test @@ -0,0 +1,60 @@ +echo ">>> the tag ..." + +# Tests the type attribute in + +# Generate applications.menu +mkdir -p ${XDG_CONFIG_HOME}/menus +./expand > ${XDG_CONFIG_HOME}/menus/applications.menu < + + + KDE + + ${XDG_CONFIG_DIR}/menus/test.menu + + + Applications + + TextEditor + + + +EOF + + +mkdir -p ${XDG_CONFIG_DIR}/menus +./expand > ${XDG_CONFIG_DIR}/menus/test.menu < + + + KDE + + + Games + + Game + + + +EOF + +./expand > ${XDG_CONFIG_DIR}/menus/applications.menu < + + + KDE + + + Development + + Development + + + +EOF + +# Install .desktop files +installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop quanta.desktop kate.desktop kbabel.desktop freecell.desktop glines.desktop -- cgit v1.2.3-70-g09d2