diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2003-08-13 20:32:05 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2003-08-13 20:32:05 +0000 |
commit | cd3f8b4a7987d23c9af7aa6a6b3e37b9ac2b2253 (patch) | |
tree | 0d25009a5bcc85a79d7b21608ca37fcc403db742 /menu/tests/README | |
parent | 7f2c3443647b8f5a7d17c5b53b157d33794e9c6c (diff) | |
download | xdg-specs-cd3f8b4a7987d23c9af7aa6a6b3e37b9ac2b2253.tar.xz |
First attempt at a testsuit
Diffstat (limited to 'menu/tests/README')
-rw-r--r-- | menu/tests/README | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/menu/tests/README b/menu/tests/README new file mode 100644 index 0000000..ba3528d --- /dev/null +++ b/menu/tests/README @@ -0,0 +1,39 @@ +This directory contains regression tests for the menu-spec. + +To run these tests your menu-spec implementation should be +able to generate a menu in the following text format: + +<Full Menu Name><tab><Desktop File Id><tab><Full Path to Desktop File> + +Example: + +Editors/ kde-kwrite.desktop /home/bastian/.local/share/applications/kde-kwrite.desktop +Editors/ kde-kate.desktop /home/bastian/.local/share/applications/kde-kate.desktop +Editors/ kde-KEdit.desktop /home/bastian/.local/share/applications/kde-KEdit.desktop +Development/ kde-gideon.desktop /opt/kde3/share/applnk/Development/gideon.desktop +Development/ kde-kbabel.desktop /opt/kde3/share/applnk/Development/kbabel.desktop +Development/ kde-quanta.desktop /opt/kde3/share/applnk/Development/quanta.desktop +/ kde-Kfind.desktop /opt/kde3/share/applnk/Kfind.desktop +/ kde-Home.desktop /opt/kde3/share/applnk/Home.desktop +/ kde-Help.desktop /opt/kde3/share/applnk/Help.desktop + + + +The environment variable $MENUTEST should point to a command that is +able to generate the menu in the above format. + +The menutest script should be used to run the tests. The following commands can +be used: + + MENUTEST=foobar menutest + +to run all tests + + MENUTEST=foobar menutest test-1 + +to run test-1 only + + +All tests contain of a test setup script that starts with "test-" and a file describing +the expected menu that starts with "result-". + |