Merge branch 'wip/installed-test-fixes' into 'main'

test: a few install-tests fixes

See merge request libinput/libinput!1384
This commit is contained in:
Peter Hutterer 2025-12-18 13:31:44 +10:00
commit a611db4db3
3 changed files with 18 additions and 7 deletions

View file

@ -795,6 +795,13 @@ test('tools-builddir-lookup-installed',
############ tests ############ ############ tests ############
summary({
'Tests enabled' : get_option('tests'),
'Install tests' : get_option('install-tests'),
},
section : 'Tests',
bool_yn : true)
test('symbols-leak-test', test('symbols-leak-test',
find_program('test/symbols-leak-test'), find_program('test/symbols-leak-test'),
args : [ dir_src / 'libinput.sym', dir_src], args : [ dir_src / 'libinput.sym', dir_src],

View file

@ -2003,7 +2003,10 @@ litest_setup_quirks(struct list *created_files_list, enum quirks_setup_mode mode
switch (mode) { switch (mode) {
case QUIRKS_SETUP_USE_SRCDIR: case QUIRKS_SETUP_USE_SRCDIR:
dirname = LIBINPUT_QUIRKS_SRCDIR; if (builddir_lookup(NULL))
dirname = LIBINPUT_QUIRKS_SRCDIR;
else
dirname = LIBINPUT_QUIRKS_DIR;
break; break;
case QUIRKS_SETUP_ONLY_DEVICE: case QUIRKS_SETUP_ONLY_DEVICE:
dirname = LIBINPUT_QUIRKS_DIR; dirname = LIBINPUT_QUIRKS_DIR;
@ -5182,8 +5185,8 @@ litest_parse_argv(int argc, char **argv, int *njobs_out)
" Glob to filter on test groups\n" " Glob to filter on test groups\n"
" --filter-rangeval=N \n" " --filter-rangeval=N \n"
" Only run tests with the given range value\n" " Only run tests with the given range value\n"
" --filter-deviceless=.... \n" " --filter-deviceless \n"
" Glob to filter on tests that do not create test devices\n" " Only run tests that do not create test devices\n"
" --filter-parameter=param1:glob,param2:glob,... \n" " --filter-parameter=param1:glob,param2:glob,... \n"
" Glob(s) to filter on the given parameters in their string " " Glob(s) to filter on the given parameters in their string "
"representation.\n" "representation.\n"

View file

@ -24,11 +24,12 @@ Print help
.SH FEATURES .SH FEATURES
Tests that can be run are Tests that can be run are
.TP 8 .TP 8
.B libinput\-test\-suite(1) .B suite
Run the full test suite. This is the most complete set of tests to run in Run the
libinput. .B libinput\-test\-suite(1).
This is the most complete set of tests to run in libinput.
.TP 8 .TP 8
.B libinput\-test\-utils .B utils
Run the test suite suite for internal utility functions. Run the test suite suite for internal utility functions.
.SH LIBINPUT .SH LIBINPUT
Part of the Part of the