mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
test: split out the unit tests into a separate test suite
All the bits that test for utility functions to work correctly can be run separately from the main test suite (which tests devices and libinput in general). These bits here are the ones that test the code itself and aren't reliant on anything else. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
bda69ad6c6
commit
cbbd5b15c6
3 changed files with 1095 additions and 1020 deletions
12
meson.build
12
meson.build
|
|
@ -807,6 +807,18 @@ if get_option('tests')
|
|||
install : false)
|
||||
test('test-library-version', test_library_version)
|
||||
|
||||
test_utils_sources = [
|
||||
'src/libinput-util.h',
|
||||
'src/libinput-util.c',
|
||||
'test/test-utils.c',
|
||||
]
|
||||
test_utils = executable('test-utils',
|
||||
test_utils_sources,
|
||||
include_directories : [includes_src, includes_include],
|
||||
dependencies : deps_litest,
|
||||
install: false)
|
||||
test('test-utils', test_utils)
|
||||
|
||||
libinput_test_runner_sources = litest_sources + [
|
||||
'src/libinput-util.h',
|
||||
'src/libinput-util.c',
|
||||
|
|
|
|||
1020
test/test-misc.c
1020
test/test-misc.c
File diff suppressed because it is too large
Load diff
1083
test/test-utils.c
Normal file
1083
test/test-utils.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue