From 7c4e7a40d3b794098c2bc5bd1100594057611b5d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 17 Dec 2025 11:01:12 +1000 Subject: [PATCH 1/4] test: only use the quirks srcdir if we have a builddir Same approach as we already do for other constants though note the builddir_lookup() hack only works for release builds. Closes #1230 --- test/litest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index fef36faa..c251d32a 100644 --- a/test/litest.c +++ b/test/litest.c @@ -2003,7 +2003,10 @@ litest_setup_quirks(struct list *created_files_list, enum quirks_setup_mode mode switch (mode) { case QUIRKS_SETUP_USE_SRCDIR: - dirname = LIBINPUT_QUIRKS_SRCDIR; + if (builddir_lookup(NULL)) + dirname = LIBINPUT_QUIRKS_SRCDIR; + else + dirname = LIBINPUT_QUIRKS_DIR; break; case QUIRKS_SETUP_ONLY_DEVICE: dirname = LIBINPUT_QUIRKS_DIR; From daa391224fb4e2f38feaa85b7e6f4820c2be31d7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 17 Dec 2025 13:53:27 +1000 Subject: [PATCH 2/4] meson.build: add a summary for the test options --- meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meson.build b/meson.build index ceb3b98e..ca56c97b 100644 --- a/meson.build +++ b/meson.build @@ -795,6 +795,13 @@ test('tools-builddir-lookup-installed', ############ tests ############ +summary({ + 'Tests enabled' : get_option('tests'), + 'Install tests' : get_option('install-tests'), + }, + section : 'Tests', + bool_yn : true) + test('symbols-leak-test', find_program('test/symbols-leak-test'), args : [ dir_src / 'libinput.sym', dir_src], From bf028228b5cb194b0b7aaf728330f1f54a1dc3d5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 17 Dec 2025 13:55:50 +1000 Subject: [PATCH 3/4] test: fix --help output for --filter-deviceless --- test/litest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/litest.c b/test/litest.c index c251d32a..25de3af1 100644 --- a/test/litest.c +++ b/test/litest.c @@ -5185,8 +5185,8 @@ litest_parse_argv(int argc, char **argv, int *njobs_out) " Glob to filter on test groups\n" " --filter-rangeval=N \n" " Only run tests with the given range value\n" - " --filter-deviceless=.... \n" - " Glob to filter on tests that do not create test devices\n" + " --filter-deviceless \n" + " Only run tests that do not create test devices\n" " --filter-parameter=param1:glob,param2:glob,... \n" " Glob(s) to filter on the given parameters in their string " "representation.\n" From f9ff6c4497da4b61caa88e095468a199b6f84708 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 18 Dec 2025 13:16:15 +1000 Subject: [PATCH 4/4] tools: fix the man page for the libinput-test command The way we run this, the feature is appended to the libinput-test command so this resulted in trying to execute libinput libinput-test-libinput-test-suite. --- tools/libinput-test.man | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/libinput-test.man b/tools/libinput-test.man index 05a696f3..c632248a 100644 --- a/tools/libinput-test.man +++ b/tools/libinput-test.man @@ -24,11 +24,12 @@ Print help .SH FEATURES Tests that can be run are .TP 8 -.B libinput\-test\-suite(1) -Run the full test suite. This is the most complete set of tests to run in -libinput. +.B suite +Run the +.B libinput\-test\-suite(1). +This is the most complete set of tests to run in libinput. .TP 8 -.B libinput\-test\-utils +.B utils Run the test suite suite for internal utility functions. .SH LIBINPUT Part of the