Test suite failures with debug-gui disabled
With debug-gui
disabled in the meson configuration, corresponding tests fail with current Git master, see below. Those tests should probably be skipped instead.
1/13 libinput:all / quirks-in-meson.build OK 0.04 s
2/13 libinput:all / validate-quirks OK 0.05 s
3/13 libinput:all+root+hardware / list-devices OK 0.05 s
4/13 libinput:all+root / tool-option-parsing FAIL 62.05 s (exit status 1)
5/13 libinput:all / tools-builddir-lookup OK 0.03 s
6/13 libinput:all / tools-builddir-lookup-installed OK 0.05 s
7/13 libinput:all / symbols-leak-test OK 0.15 s
8/13 libinput:all / leftover-rules OK 0.02 s
9/13 libinput:all / test-litest-selftest OK 4.93 s
10/13 libinput:all / test-library-version OK 0.02 s
11/13 libinput:all / test-utils OK 0.02 s
12/13 libinput:all+valgrind+root+hardware / libinput-test-suite-runner SKIP 0.03 s
13/13 libinput:all+valgrind / libinput-test-deviceless OK 0.09 s
Ok: 11
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 1
Timeout: 0
The output from the failed tests:
4/13 libinput:all+root / tool-option-parsing FAIL 62.05 s (exit status 1)
--- command ---
/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py --tool-path /home/daenzer/src/wayland-git/libinput/build-amd64/libinput
--- stderr ---
.........FFFFFFFFF....
======================================================================
FAIL: test_apply_to (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 179, in test_apply_to
self.run_command_missing_arg(['--apply-to'])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 74, in run_command_missing_arg
self.assertIn('requires an argument', stderr)
AssertionError: 'requires an argument' not found in "libinput: debug-gui is not a libinput command or not installed. See 'libinput --help'\n"
======================================================================
FAIL: test_device (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 144, in test_device
self.run_command_missing_arg(['--device'])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 74, in run_command_missing_arg
self.assertIn('requires an argument', stderr)
AssertionError: 'requires an argument' not found in "libinput: debug-gui is not a libinput command or not installed. See 'libinput --help'\n"
======================================================================
FAIL: test_invalid_arguments (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 217, in test_invalid_arguments
self.run_command_unrecognized_option(['--quiet'])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 68, in run_command_unrecognized_option
self.assertIn('unrecognized option', stderr)
AssertionError: 'unrecognized option' not found in "libinput: debug-gui is not a libinput command or not installed. See 'libinput --help'\n"
======================================================================
FAIL: test_options_enable_disable (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 156, in test_options_enable_disable
self.run_command_success(['--enable-{}'.format(option)])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 62, in run_command_success
self.assertIn(rc, [0, 1])
AssertionError: 2 not found in [0, 1]
======================================================================
FAIL: test_options_enums (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 162, in test_options_enums
self.run_command_success(['--{}'.format(option), v])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 62, in run_command_success
self.assertIn(rc, [0, 1])
AssertionError: 2 not found in [0, 1]
======================================================================
FAIL: test_options_pattern (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 151, in test_options_pattern
self.run_command_success(['--disable-{}'.format(option), '*'])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 62, in run_command_success
self.assertIn(rc, [0, 1])
AssertionError: 2 not found in [0, 1]
======================================================================
FAIL: test_options_ranges (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 172, in test_options_ranges
self.run_command_success(['--{}'.format(option), str(value)])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 62, in run_command_success
self.assertIn(rc, [0, 1])
AssertionError: 2 not found in [0, 1]
======================================================================
FAIL: test_udev_seat (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 138, in test_udev_seat
self.run_command_missing_arg(['--udev'])
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 74, in run_command_missing_arg
self.assertIn('requires an argument', stderr)
AssertionError: 'requires an argument' not found in "libinput: debug-gui is not a libinput command or not installed. See 'libinput --help'\n"
======================================================================
FAIL: test_verbose_quiet (__main__.TestDebugGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/daenzer/src/wayland-git/libinput/tools/test-tool-option-parsing.py", line 214, in test_verbose_quiet
self.assertEqual(rc, 0)
AssertionError: 2 != 0
----------------------------------------------------------------------
Ran 22 tests in 61.825s
FAILED (failures=9)
-------