[igt-dev] [PATCH i-g-t 3/5] tests/meson.build: create testlists for tests
Mauro Carvalho Chehab
mauro.chehab at linux.intel.com
Wed Jul 5 15:28:48 UTC 2023
From: Mauro Carvalho Chehab <mchehab at kernel.org>
Let's dynamically create testlists for during build time, as this
can speed up a lot the validation check for testplan.
Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
tests/meson.build | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tests/meson.build b/tests/meson.build
index ee066b84900b..246a585aa423 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -545,7 +545,17 @@ test_list_full_target = custom_target('testlist-full',
install_dir : libexecdir)
test_script = find_program('igt_command_line.sh')
-foreach prog : test_list
+foreach testexe : test_executables
+ prog = testexe.name()
+
+ output = prog.split('/').get(-1) + '.testlist'
+ custom_target(output,
+ build_by_default : true,
+ command : [ testexe.full_path(), '--show-testlist'],
+ capture : true,
+ depends : testexe,
+ output : output)
+
test('testcase check ' + prog, test_script, args : prog)
endforeach
--
2.40.1
More information about the igt-dev
mailing list