mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-11 16:50:26 +01:00
meson: force litest to use the right udev rules
We generate litest-specific udev rules that contain the path to the binaries
in the builddir. But litest wasn't using those, so IMPORT would run things in
/usr/lib/udev instead. Thus any changes to those binaries generated false test
results depending on how compatible the system-installed libinput was.
This is why 410b157 passed the test suite for example.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6a489b0636
commit
aa538dc5c8
1 changed files with 4 additions and 2 deletions
|
|
@ -803,9 +803,11 @@ if get_option('tests')
|
|||
|
||||
litest_config_h = configuration_data()
|
||||
litest_config_h.set_quoted('LIBINPUT_DEVICE_GROUPS_RULES_FILE',
|
||||
join_paths(meson.build_root(), '80-libinput-device-groups.rules'))
|
||||
join_paths(meson.build_root(),
|
||||
'80-libinput-device-groups-litest.rules'))
|
||||
litest_config_h.set_quoted('LIBINPUT_FUZZ_OVERRIDE_UDEV_RULES_FILE',
|
||||
join_paths(meson.build_root(), '90-libinput-fuzz-override.rules'))
|
||||
join_paths(meson.build_root(),
|
||||
'90-libinput-fuzz-override-litest.rules'))
|
||||
|
||||
def_no_main = '-DLITEST_NO_MAIN'
|
||||
def_disable_backtrace = '-DLITEST_DISABLE_BACKTRACE_LOGGING'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue