Commit f4b2607228 for qemu.org
commit f4b26072289084a0b182c1faa28aa338fe861c5d
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: Tue May 12 10:56:33 2026 +0400
tests: tag slow tests with 'slow' suite for easy filtering
Add several RCU and thread-pool unit tests to the slow_tests dict,
and tag all slow tests (both qtest and unit) with a 'slow' suite so
they can be excluded or selected via meson test --suite/--no-suite.
Acked-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260512065633.3542562-1-marcandre.lureau@redhat.com>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 739df71d8d..cbdef5a545 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -510,6 +510,7 @@ foreach dir : target_dirs
protocol: 'tap',
timeout: slow_qtests.get(test, 60),
priority: slow_qtests.get(test, 60),
- suite: ['qtest', 'qtest-' + target_base])
+ suite: ['qtest', 'qtest-' + target_base] +
+ (slow_qtests.has_key(test) ? ['slow'] : []))
endforeach
endforeach
diff --git a/tests/unit/meson.build b/tests/unit/meson.build
index dc3fb954c0..3a9866c1f2 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -184,6 +184,12 @@ slow_tests = {
'test-crypto-tlscredsx509': 90,
'test-crypto-tlssession': 90,
'test-replication': 60,
+ 'rcutorture': 30,
+ 'test-rcu-list': 30,
+ 'test-rcu-simpleq': 30,
+ 'test-rcu-tailq': 30,
+ 'test-rcu-slist': 30,
+ 'test-thread-pool': 30,
}
foreach test_name, extra: tests
@@ -205,5 +211,6 @@ foreach test_name, extra: tests
protocol: 'tap',
timeout: slow_tests.get(test_name, 30),
priority: slow_tests.get(test_name, 30),
- suite: ['unit'])
+ suite: ['unit'] +
+ (slow_tests.has_key(test_name) ? ['slow'] : []))
endforeach