test: install libinput-test-utils as part of install-tests
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 6 May 2022 01:00:59 +0000 (11:00 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 9 May 2022 05:03:00 +0000 (05:03 +0000)
This tests a bunch of internal utility functions that may work
differently depending on compiler flags, etc. Let's make that test
available so it can be verified on an installed system.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci/libinput.spec.in
meson.build
tools/libinput-test.man

index 61f440fe86ac7e6d409821e37b427732ff50e5f6..0b3e98fded184e6b620cbd39b22b2c758fa1e7dd 100644 (file)
@@ -134,6 +134,7 @@ intended to be run by users.
 %files test
 %{_libexecdir}/libinput/libinput-test
 %{_libexecdir}/libinput/libinput-test-suite
+%{_libexecdir}/libinput/libinput-test-utils
 %{_mandir}/man1/libinput-test.1*
 %{_mandir}/man1/libinput-test-suite.1*
 
index c4e01d2bc802d242eb6be997c8ce64fca91c32db..afbcc7a950d36b5d2f9fef71e8aa47d7e8dd8bca 100644 (file)
@@ -880,11 +880,12 @@ if get_option('tests')
                'src/libinput-util.h',
                'test/test-utils.c',
        ]
-       test_utils = executable('test-utils',
+       test_utils = executable('libinput-test-utils',
                                test_utils_sources,
                                include_directories : [includes_src, includes_include],
                                dependencies : deps_litest,
-                               install: false)
+                               install_dir : libinput_tool_path,
+                               install : get_option('install-tests'))
        test('test-utils',
             test_utils,
             suite : ['all'])
index 491a7ecdb52cfbbc7d370759a4b3369a5b7ace30..05a696f3b86b7830b708ea1287676593d50ed5b2 100644 (file)
@@ -27,6 +27,9 @@ Tests that can be run are
 .B libinput\-test\-suite(1)
 Run the full test suite. This is the most complete set of tests to run in
 libinput.
+.TP 8
+.B libinput\-test\-utils
+Run the test suite suite for internal utility functions.
 .SH LIBINPUT
 Part of the
 .B libinput(1)