Allow qtests to be ran by subsystem. Some subsystems, such as migration, have a large number of tests and we could benefit from being able to access them from make check without having to run the full set of qtests.
This adds the following make check targets: make check-qtest-migration Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> Signed-off-by: Fabiano Rosas <faro...@suse.de> --- I did not include check-qtest-<arch>-<subsys> because meson generates a long line that affects readability. --- tests/qtest/meson.build | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build index 811117d264..c3fe67f78e 100644 --- a/tests/qtest/meson.build +++ b/tests/qtest/meson.build @@ -36,6 +36,11 @@ if enable_modules qtests_generic += [ 'modules-test' ] endif +qtest_subsystems = { + 'migration-test-smoke': ['migration'], + 'migration-test': ['migration'], +} + qtests_pci = \ (config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : []) + \ (config_all_devices.has_key('CONFIG_IVSHMEM_DEVICE') ? ['ivshmem-test'] : []) @@ -434,6 +439,12 @@ foreach dir : target_dirs test: executable(test, src, dependencies: deps) } endif + + suites = ['qtest', 'qtest-' + target_base] + foreach subsys: qtest_subsystems.get(test, []) + suites += ['qtest-' + subsys] + endforeach + test('qtest-@0@/@1@'.format(target_base, test), qtest_executables[test], depends: [test_deps, qtest_emulator, emulator_modules], @@ -442,6 +453,6 @@ foreach dir : target_dirs protocol: 'tap', timeout: slow_qtests.get(test, 60), priority: slow_qtests.get(test, 60), - suite: ['qtest', 'qtest-' + target_base]) + suite: suites) endforeach endforeach -- 2.35.3