aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Maier <brandon.maier@collins.com>2024-03-18 18:56:03 +0000
committerDavid Gibson <david@gibson.dropbear.id.au>2024-03-19 15:26:22 +1100
commit9ca7d62dbf0be2d582e00b51544032b52123054e (patch)
tree9f990acd295700ea737ba2fc1af4f2d4706331a2
parentbb51223083a493146c34b1f0528abfbe925d620c (diff)
downloaddtc-9ca7d62dbf0be2d582e00b51544032b52123054e.tar.gz
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 <brandon.maier@collins.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--tests/meson.build31
1 files 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