]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
mtest2make: add dependencies to the "speed-qualified" suite
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Nov 2025 15:51:17 +0000 (16:51 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Nov 2025 08:24:01 +0000 (09:24 +0100)
Thorough tests may have more dependencies than faster ones.
Dependencies are now looked up based on the suites being
executed, not on the suites passed as goals to the makefile.
Therefore, it is possible to limit dependencies to the
speeds that need them.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/mtest2make.py

index d7c514243a5261d14684e51bc0f3882ce00c1509..38512046d973d37a14c4bde3337cb5c8cf7147e5 100644 (file)
@@ -58,13 +58,13 @@ def process_tests(test, targets, suites):
             s = s.split(':')[1]
             if s == 'slow' or s == 'thorough':
                 continue
+        suites[s].deps.update(deps)
         if s.endswith('-slow'):
             s = s[:-5]
             suites[s].speeds.append('slow')
         if s.endswith('-thorough'):
             s = s[:-9]
             suites[s].speeds.append('thorough')
-        suites[s].deps.update(deps)
 
 def emit_prolog(suites, prefix):
     all_targets = ' '.join((f'{prefix}-{k}' for k in suites.keys()))