diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2005-03-17 22:01:44 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2005-03-17 22:01:44 +0000 |
commit | c636eefc73d090deffbff01d386bc43e6e831ad1 (patch) | |
tree | aee0c66f61c2d2e3deb03046ba0771aa439d6a8f | |
parent | 320bb6dd79bd68a5e26fed89d433e1c9e4138de8 (diff) | |
download | xdg-specs-c636eefc73d090deffbff01d386bc43e6e831ad1.tar.xz |
Additional test for MergeFile outside applications-merged directory
-rw-r--r-- | menu/tests/tests/p/result | 5 | ||||
-rw-r--r-- | menu/tests/tests/p/test | 55 |
2 files changed, 60 insertions, 0 deletions
diff --git a/menu/tests/tests/p/result b/menu/tests/tests/p/result new file mode 100644 index 0000000..de216fc --- /dev/null +++ b/menu/tests/tests/p/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/p/test b/menu/tests/tests/p/test new file mode 100644 index 0000000..c31601d --- /dev/null +++ b/menu/tests/tests/p/test @@ -0,0 +1,55 @@ +echo ">>> the <MergeFile> tag ..." + +# Tests the use of relative paths in <MergeFile> + +# 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> + <DefaultAppDirs/> + <MergeFile>test.menu</MergeFile> + + <Menu> + <Name>Applications</Name> + <Include> + <Category>TextEditor</Category> + </Include> + </Menu> +</Menu> +EOF + + +./expand > ${XDG_CONFIG_DIR}/menus/test.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> + + <MergeFile>extra/test.menu</MergeFile> +</Menu> +EOF + +mkdir ${XDG_CONFIG_DIR}/menus/extra/ +./expand > ${XDG_CONFIG_DIR}/menus/extra/test.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> + + <Menu> + <Name>Development</Name> + <Include> + <Category>Development</Category> + </Include> + </Menu> +</Menu> +EOF + +# Install .desktop files +installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop quanta.desktop kate.desktop kbabel.desktop |