|
|
73b847 |
From e164796705693d0fae8d21ffbc24fbb4ba1a3fed Mon Sep 17 00:00:00 2001
|
|
|
73b847 |
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
|
|
|
73b847 |
Date: Tue, 26 Nov 2019 20:59:09 +0100
|
|
|
73b847 |
Subject: [PATCH 047/181] tests: Use a loop for generating drivers tests and
|
|
|
73b847 |
use suites
|
|
|
73b847 |
|
|
|
73b847 |
So we can just run drivers tests with --suite=drivers
|
|
|
73b847 |
---
|
|
|
73b847 |
tests/meson.build | 22 +++++++++-------------
|
|
|
73b847 |
1 file changed, 9 insertions(+), 13 deletions(-)
|
|
|
73b847 |
|
|
|
73b847 |
diff --git a/tests/meson.build b/tests/meson.build
|
|
|
73b847 |
index 0fe8096..d6196be 100644
|
|
|
73b847 |
--- a/tests/meson.build
|
|
|
73b847 |
+++ b/tests/meson.build
|
|
|
73b847 |
@@ -24,25 +24,21 @@ if get_option('introspection')
|
|
|
73b847 |
)
|
|
|
73b847 |
endif
|
|
|
73b847 |
|
|
|
73b847 |
- if 'vfs5011' in drivers
|
|
|
73b847 |
- test('vfs5011',
|
|
|
73b847 |
- find_program('umockdev-test.py'),
|
|
|
73b847 |
- args: join_paths(meson.current_source_dir(), 'vfs5011'),
|
|
|
73b847 |
- env: envs,
|
|
|
73b847 |
- timeout: 10,
|
|
|
73b847 |
- depends: libfprint_typelib,
|
|
|
73b847 |
- )
|
|
|
73b847 |
- endif
|
|
|
73b847 |
+ drivers_tests = [
|
|
|
73b847 |
+ 'vfs5011',
|
|
|
73b847 |
+ 'synaptics',
|
|
|
73b847 |
+ ]
|
|
|
73b847 |
|
|
|
73b847 |
- if 'synaptics' in drivers
|
|
|
73b847 |
- test('synaptics',
|
|
|
73b847 |
+ foreach driver_test: drivers_tests
|
|
|
73b847 |
+ test(driver_test,
|
|
|
73b847 |
find_program('umockdev-test.py'),
|
|
|
73b847 |
- args: join_paths(meson.current_source_dir(), 'synaptics'),
|
|
|
73b847 |
+ args: join_paths(meson.current_source_dir(), driver_test),
|
|
|
73b847 |
env: envs,
|
|
|
73b847 |
+ suite: ['drivers'],
|
|
|
73b847 |
timeout: 10,
|
|
|
73b847 |
depends: libfprint_typelib,
|
|
|
73b847 |
)
|
|
|
73b847 |
- endif
|
|
|
73b847 |
+ endforeach
|
|
|
73b847 |
endif
|
|
|
73b847 |
|
|
|
73b847 |
gdb = find_program('gdb', required: false)
|
|
|
73b847 |
--
|
|
|
73b847 |
2.24.1
|
|
|
73b847 |
|