tools: add a test for tool option parsing
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 31 Oct 2018 23:16:03 +0000 (09:16 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Nov 2018 05:03:52 +0000 (05:03 +0000)
commit5cd27b070e13e942cbb80d031b4f0bc211e562b0
treef0c2db55b801dd370880235f8106e89d4738d8b3
parent36af7d312b5b10790bd19e3066eb1cd4e4e5f6d4
tools: add a test for tool option parsing

We don't check for correctness in the output as such, just that whatever
combination of cmdline arguments still works/doesn't work. This is the
scaffolding and a few tests, but needs to be filled in, especially for
libinput measure and for some more complex combinations.

valgrind: requires one more python-related suppression
gitlab-ci: requires another environment variable so we know to skip the
   --device tests (udev will time out on those)
meson: skip the test run in release builds, we pass the full path to the built
       libinput tool but rely on the subtool lookup that won't work in a
       release build

Fixes #174

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml
meson.build
test/valgrind.suppressions
tools/test-tool-option-parsing.py [new file with mode: 0755]