QEMU-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests: tag slow tests with 'slow' suite for easy filtering
@ 2026-05-12  6:56 marcandre.lureau
  2026-05-13 13:45 ` Fabiano Rosas
  0 siblings, 1 reply; 2+ messages in thread
From: marcandre.lureau @ 2026-05-12  6:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Marc-André Lureau, Fabiano Rosas, Laurent Vivier,
	Paolo Bonzini

From: Marc-André Lureau <marcandre.lureau@redhat.com>

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.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 tests/qtest/meson.build | 3 ++-
 tests/unit/meson.build  | 9 ++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 728dde54b3f..2c5dcf2340f 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -493,6 +493,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 03d36748c73..ed1172a107c 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -176,6 +176,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
@@ -197,5 +203,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
-- 
2.54.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tests: tag slow tests with 'slow' suite for easy filtering
  2026-05-12  6:56 [PATCH] tests: tag slow tests with 'slow' suite for easy filtering marcandre.lureau
@ 2026-05-13 13:45 ` Fabiano Rosas
  0 siblings, 0 replies; 2+ messages in thread
From: Fabiano Rosas @ 2026-05-13 13:45 UTC (permalink / raw)
  To: marcandre.lureau, qemu-devel
  Cc: Marc-André Lureau, Laurent Vivier, Paolo Bonzini

marcandre.lureau@redhat.com writes:

> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> 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.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  tests/qtest/meson.build | 3 ++-
>  tests/unit/meson.build  | 9 ++++++++-
>  2 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
> index 728dde54b3f..2c5dcf2340f 100644
> --- a/tests/qtest/meson.build
> +++ b/tests/qtest/meson.build
> @@ -493,6 +493,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'] : []))

The change looks ok. 

Acked-by: Fabiano Rosas <farosas@suse.de>

And I'll not rant about meson output.

qtest+qtest-s390x+slow - qemu:qtest-s390x/device-introspect-test
^1x   ^2x   ^            ^why ^3x   ^

>    endforeach
>  endforeach
> diff --git a/tests/unit/meson.build b/tests/unit/meson.build
> index 03d36748c73..ed1172a107c 100644
> --- a/tests/unit/meson.build
> +++ b/tests/unit/meson.build
> @@ -176,6 +176,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
> @@ -197,5 +203,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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-13 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12  6:56 [PATCH] tests: tag slow tests with 'slow' suite for easy filtering marcandre.lureau
2026-05-13 13:45 ` Fabiano Rosas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox