Add a target to rebuild all tcg-tests at once.
Tested-by: Alex Bennée <[email protected]>
Signed-off-by: Pierrick Bouvier <[email protected]>
---
tests/tcg/meson.build | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build
index 23a28890ce7..6408a21cce7 100644
--- a/tests/tcg/meson.build
+++ b/tests/tcg/meson.build
@@ -86,6 +86,7 @@ test_plugins = {}
subdir('plugins')
image_targets = {}
+exe_targets = []
# Finally, we can create all test executables and test targets
foreach target, plan: tcg_tests
# Detect duplicated executables/tests, and report an error to force user to
@@ -296,6 +297,7 @@ foreach target, plan: tcg_tests
depends: exe_depends,
depend_files: build_test_depend_files,
build_by_default: false)
+ exe_targets += exe
built_tests += {exe_name: exe}
endif
@@ -378,3 +380,8 @@ foreach target, plan: tcg_tests
endforeach
endforeach
endforeach
+
+if exe_targets.length() > 0
+ # finally create a top level target to rebuild all tests
+ alias_target('tcg-tests', exe_targets)
+endif
--
2.47.3