aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-09-02 07:25:19 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-08 11:43:16 +0200
commit9ed7247a5969cf101ac3d22995ae06730b7da3ea (patch)
tree3bb2fbbdae25ebfbabbda457eb51ec033f2a2883 /scripts
parent24441f912e67233d9c52ce6b459ed75de2484525 (diff)
downloadqemu-9ed7247a5969cf101ac3d22995ae06730b7da3ea.zip
qemu-9ed7247a5969cf101ac3d22995ae06730b7da3ea.tar.gz
qemu-9ed7247a5969cf101ac3d22995ae06730b7da3ea.tar.bz2
meson: convert the speed tests
Use meson benchmark() for them, adjust mtest2make.py for that. A new target "make bench" can be used to run all benchmarks. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200828110734.1638685-14-marcandre.lureau@redhat.com> [Rewrite mtest2make part. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mtest2make.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py
index af6dd0d..9cbb2e3 100644
--- a/scripts/mtest2make.py
+++ b/scripts/mtest2make.py
@@ -103,10 +103,17 @@ def emit_suite(name, suite, prefix):
print('endif')
testsuites = defaultdict(Suite)
-for test in introspect:
+for test in introspect['tests']:
process_tests(test, testsuites)
emit_prolog(testsuites, 'check')
for name, suite in testsuites.items():
emit_suite(name, suite, 'check')
+benchsuites = defaultdict(Suite)
+for test in introspect['benchmarks']:
+ process_tests(test, benchsuites)
+emit_prolog(benchsuites, 'bench')
+for name, suite in benchsuites.items():
+ emit_suite(name, suite, 'bench')
+
print('run-tests: $(patsubst %, run-test-%, $(.tests))')