@samitouri / QOSamiQemu / commits / f4b2607228

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>

Marc-André Lureau committed May 12, 2026 at 10:56 UTC f4b26072289084a0b182c1faa28aa338fe861c5d
2 files changed +10 -2
tests/qtest/meson.build
+2 -1
@@ -510,6 +510,7 @@ foreach dir : target_dirs
510 protocol: 'tap',
511 timeout: slow_qtests.get(test, 60),
512 priority: slow_qtests.get(test, 60),
513 - suite: ['qtest', 'qtest-' + target_base])
513 + suite: ['qtest', 'qtest-' + target_base] +
514 + (slow_qtests.has_key(test) ? ['slow'] : []))
515 endforeach
516 endforeach
tests/unit/meson.build
+8 -1
@@ -184,6 +184,12 @@ slow_tests = {
184 'test-crypto-tlscredsx509': 90,
185 'test-crypto-tlssession': 90,
186 'test-replication': 60,
187 + 'rcutorture': 30,
188 + 'test-rcu-list': 30,
189 + 'test-rcu-simpleq': 30,
190 + 'test-rcu-tailq': 30,
191 + 'test-rcu-slist': 30,
192 + 'test-thread-pool': 30,
193 }
194
195 foreach test_name, extra: tests
@@ -205,5 +211,6 @@ foreach test_name, extra: tests
211 protocol: 'tap',
212 timeout: slow_tests.get(test_name, 30),
213 priority: slow_tests.get(test_name, 30),
208 - suite: ['unit'])
214 + suite: ['unit'] +
215 + (slow_tests.has_key(test_name) ? ['slow'] : []))
216 endforeach