From 9ca7d62dbf0be2d582e00b51544032b52123054e Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Mon, 18 Mar 2024 18:56:03 +0000 Subject: [PATCH] meson: split run-tests by type Instead of running run-tests on all tests, split them down into the 9 separate run-tests test types. This provides better granularity of test results from the Meson test harness. Signed-off-by: Brandon Maier Signed-off-by: David Gibson --- tests/meson.build | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 32d0015..41e60f2 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -129,17 +129,32 @@ if not yaml.found() env += 'NO_YAML=1' endif +run_test_types = [ + 'libfdt', + 'utilfdt', + 'dtc', + 'dtbs_equal', + 'fdtget', + 'fdtput', + 'fdtdump', + 'fdtoverlay' +] run_test_deps = [ dtc_tools, dumptrees_dtb, tests_exe ] if pylibfdt_enabled + run_test_types += 'pylibfdt' run_test_deps += pylibfdt endif -test( - 'run-test', - run_tests, - workdir: meson.current_build_dir(), - depends: run_test_deps, - env: env, - timeout: 1800, # mostly for valgrind -) +foreach test_type : run_test_types + test( + test_type, + run_tests, + args: ['-t', test_type], + is_parallel: false, + workdir: meson.current_build_dir(), + depends: run_test_deps, + env: env, + timeout: 1800, # mostly for valgrind + ) +endforeach