mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 06:50:06 +01:00
meson.build: add the tests that need uinput into a needs-uinput suite
This way we can skip it all by meson test --no-suite=needs-uinput Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6d0d778e59
commit
427af9d248
3 changed files with 11 additions and 5 deletions
|
|
@ -842,4 +842,7 @@ autotools-from-tarball:
|
|||
- popd > /dev/null
|
||||
- popd > /dev/null
|
||||
- ls -lR $INSTALLDIR
|
||||
variables:
|
||||
LIBEVDEV_SKIP_ROOT_TESTS: 1
|
||||
|
||||
needs: ['fedora:35@container-prep']
|
||||
|
|
|
|||
|
|
@ -532,5 +532,8 @@ autotools-from-tarball:
|
|||
- popd > /dev/null
|
||||
- popd > /dev/null
|
||||
- ls -lR $INSTALLDIR
|
||||
variables:
|
||||
LIBEVDEV_SKIP_ROOT_TESTS: 1
|
||||
|
||||
needs: ['{{distro.name}}:{{version}}@container-prep']
|
||||
{% endfor %}
|
||||
|
|
|
|||
10
meson.build
10
meson.build
|
|
@ -162,7 +162,7 @@ if dep_check.found()
|
|||
include_directories: [includes_include],
|
||||
dependencies: [dep_libevdev, dep_check],
|
||||
install: false)
|
||||
test('test-event-codes', test_event_codes, suite: 'library')
|
||||
test('test-event-codes', test_event_codes, suite: ['library', 'needs-uinput'])
|
||||
|
||||
test_internals = executable('test-internals',
|
||||
sources: src_common + [
|
||||
|
|
@ -171,7 +171,7 @@ if dep_check.found()
|
|||
include_directories: [includes_include],
|
||||
dependencies: [dep_libevdev, dep_check],
|
||||
install: false)
|
||||
test('test-internals', test_internals, suite: 'library')
|
||||
test('test-internals', test_internals, suite: ['library', 'needs-uinput'])
|
||||
|
||||
test_uinput = executable('test-uinput',
|
||||
sources: src_common + [
|
||||
|
|
@ -180,7 +180,7 @@ if dep_check.found()
|
|||
include_directories: [includes_include],
|
||||
dependencies: [dep_libevdev, dep_check],
|
||||
install: false)
|
||||
test('test-uinput', test_uinput, suite: 'library')
|
||||
test('test-uinput', test_uinput, suite: ['library', 'needs-uinput'])
|
||||
|
||||
test_libevdev = executable('test-libevdev',
|
||||
sources: src_common + [
|
||||
|
|
@ -191,7 +191,7 @@ if dep_check.found()
|
|||
include_directories: [includes_include],
|
||||
dependencies: [dep_libevdev, dep_check],
|
||||
install: false)
|
||||
test('test-libevdev', test_libevdev, suite: 'library', env: ['CK_DEFAULT_TIMEOUT=10'])
|
||||
test('test-libevdev', test_libevdev, suite: ['library', 'needs-uinput'], env: ['CK_DEFAULT_TIMEOUT=10'])
|
||||
|
||||
test_kernel = executable('test-kernel',
|
||||
sources: src_common + [
|
||||
|
|
@ -200,7 +200,7 @@ if dep_check.found()
|
|||
include_directories: [includes_include],
|
||||
dependencies: [dep_libevdev, dep_check],
|
||||
install: false)
|
||||
test('test-kernel', test_kernel, suite: 'kernel')
|
||||
test('test-kernel', test_kernel, suite: ['kernel', 'needs-uinput'])
|
||||
|
||||
|
||||
valgrind = find_program('valgrind', required: false)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue