diff options
author | lanius <lanius> | 2005-05-22 21:53:58 +0000 |
---|---|---|
committer | lanius <lanius> | 2005-05-22 21:53:58 +0000 |
commit | 41a83b38b76c86e24c32868b816955375840f614 (patch) | |
tree | fca0906c81f04ce85c57256422bd137178e68c41 /menu | |
parent | 4b90f7044cb51732b26a43ced859a670cf5ecfcb (diff) | |
download | xdg-specs-41a83b38b76c86e24c32868b816955375840f614.tar.xz |
add tests
Diffstat (limited to 'menu')
-rw-r--r-- | menu/tests/tests/w/result | 2 | ||||
-rw-r--r-- | menu/tests/tests/w/test | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/menu/tests/tests/w/result b/menu/tests/tests/w/result new file mode 100644 index 0000000..9a2b9db --- /dev/null +++ b/menu/tests/tests/w/result @@ -0,0 +1,2 @@ +Editors/ gideon-legacy.desktop ${LEGACY_DIR}/Development/gideon-legacy.desktop +/ Home.desktop ${LEGACY_DIR}/Home.desktop diff --git a/menu/tests/tests/w/test b/menu/tests/tests/w/test new file mode 100644 index 0000000..d7f2ede --- /dev/null +++ b/menu/tests/tests/w/test @@ -0,0 +1,38 @@ +echo ">>> Move entries from <LegacyDir>" + +LEGACY_DIR=${MENUTESTDIR}/legacy_applnk +export LEGACY_DIR + +# 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> + <!-- Search the default locations --> + <LegacyDir>${LEGACY_DIR}</LegacyDir> + <DefaultAppDirs/> + <DefaultDirectoryDirs/> + + <Menu> + <Name>Development</Name> + <Exclude> + <Filename>gideon-legacy.desktop</Filename> + </Exclude> + </Menu> + <Menu> + <Name>Editors</Name> + <Include> + <Filename>gideon-legacy.desktop</Filename> + </Include> + </Menu> +</Menu> +EOF + + +# Install .desktop files + +installData ${LEGACY_DIR} Home.desktop +installData ${LEGACY_DIR}/Development gideon-legacy.desktop |