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:
Peter Hutterer 2019-03-06 14:19:08 +10:00
parent bda69ad6c6
commit cbbd5b15c6
3 changed files with 1095 additions and 1020 deletions

View file

@ -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',

File diff suppressed because it is too large Load diff

1083
test/test-utils.c Normal file

File diff suppressed because it is too large Load diff