• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョン3e233e29178dd9ebd3b3c3382a2e0ebea9e8127d (tree)
日時2022-01-28 19:13:33
作者Paolo Bonzini <pbonzini@redh...>
コミッターPaolo Bonzini

ログメッセージ

scripts/mtest2make: add support for SPEED=thorough

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

変更サマリ

差分

--- a/meson.build
+++ b/meson.build
@@ -3,8 +3,9 @@ project('qemu', ['c'], meson_version: '>=0.58.2',
33 'b_staticpic=false', 'stdsplit=false'],
44 version: files('VERSION'))
55
6-add_test_setup('quick', exclude_suites: 'slow', is_default: true)
7-add_test_setup('slow', env: ['G_TEST_SLOW=1', 'SPEED=slow'])
6+add_test_setup('quick', exclude_suites: ['slow', 'thorough'], is_default: true)
7+add_test_setup('slow', exclude_suites: ['thorough'], env: ['G_TEST_SLOW=1', 'SPEED=slow'])
8+add_test_setup('thorough', env: ['G_TEST_SLOW=1', 'SPEED=thorough'])
89
910 not_found = dependency('', required: false)
1011 keyval = import('keyval')
--- a/scripts/mtest2make.py
+++ b/scripts/mtest2make.py
@@ -23,8 +23,9 @@ class Suite(object):
2323 print('''
2424 SPEED = quick
2525
26-.speed.quick = $(foreach s,$(sort $(filter-out %-slow, $1)), --suite $s)
27-.speed.slow = $(foreach s,$(sort $1), --suite $s)
26+.speed.quick = $(foreach s,$(sort $(filter-out %-slow %-thorough, $1)), --suite $s)
27+.speed.slow = $(foreach s,$(sort $(filter-out %-thorough, $1)), --suite $s)
28+.speed.thorough = $(foreach s,$(sort $1), --suite $s)
2829
2930 .mtestargs = --no-rebuild -t 0
3031 ifneq ($(SPEED), quick)
@@ -52,11 +53,14 @@ def process_tests(test, targets, suites):
5253 for s in test_suites:
5354 # The suite name in the introspection info is "PROJECT:SUITE"
5455 s = s.split(':')[1]
55- if s == 'slow':
56+ if s == 'slow' or s == 'thorough':
5657 continue
5758 if s.endswith('-slow'):
5859 s = s[:-5]
5960 suites[s].speeds.append('slow')
61+ if s.endswith('-thorough'):
62+ s = s[:-9]
63+ suites[s].speeds.append('thorough')
6064 suites[s].deps.update(deps)
6165
6266 def emit_prolog(suites, prefix):