From 5dd751a3d023ed74ab9c0fcecc02a4bc3f91a146 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 6 May 2022 11:00:59 +1000 Subject: [PATCH] test: install libinput-test-utils as part of install-tests 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 --- .gitlab-ci/libinput.spec.in | 1 + meson.build | 5 +++-- tools/libinput-test.man | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/libinput.spec.in b/.gitlab-ci/libinput.spec.in index 61f440f..0b3e98f 100644 --- a/.gitlab-ci/libinput.spec.in +++ b/.gitlab-ci/libinput.spec.in @@ -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* diff --git a/meson.build b/meson.build index c4e01d2..afbcc7a 100644 --- a/meson.build +++ b/meson.build @@ -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']) diff --git a/tools/libinput-test.man b/tools/libinput-test.man index 491a7ec..05a696f 100644 --- a/tools/libinput-test.man +++ b/tools/libinput-test.man @@ -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) -- 2.7.4