mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
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>
This commit is contained in:
parent
bb51223083
commit
9ca7d62dbf
1 changed files with 23 additions and 8 deletions
|
@ -129,17 +129,32 @@ if not yaml.found()
|
||||||
env += 'NO_YAML=1'
|
env += 'NO_YAML=1'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
run_test_types = [
|
||||||
|
'libfdt',
|
||||||
|
'utilfdt',
|
||||||
|
'dtc',
|
||||||
|
'dtbs_equal',
|
||||||
|
'fdtget',
|
||||||
|
'fdtput',
|
||||||
|
'fdtdump',
|
||||||
|
'fdtoverlay'
|
||||||
|
]
|
||||||
run_test_deps = [
|
run_test_deps = [
|
||||||
dtc_tools, dumptrees_dtb, tests_exe
|
dtc_tools, dumptrees_dtb, tests_exe
|
||||||
]
|
]
|
||||||
if pylibfdt_enabled
|
if pylibfdt_enabled
|
||||||
|
run_test_types += 'pylibfdt'
|
||||||
run_test_deps += pylibfdt
|
run_test_deps += pylibfdt
|
||||||
endif
|
endif
|
||||||
|
foreach test_type : run_test_types
|
||||||
test(
|
test(
|
||||||
'run-test',
|
test_type,
|
||||||
run_tests,
|
run_tests,
|
||||||
|
args: ['-t', test_type],
|
||||||
|
is_parallel: false,
|
||||||
workdir: meson.current_build_dir(),
|
workdir: meson.current_build_dir(),
|
||||||
depends: run_test_deps,
|
depends: run_test_deps,
|
||||||
env: env,
|
env: env,
|
||||||
timeout: 1800, # mostly for valgrind
|
timeout: 1800, # mostly for valgrind
|
||||||
)
|
)
|
||||||
|
endforeach
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue