QEMU-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Fabiano Rosas <farosas@suse.de>
To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Laurent Vivier" <lvivier@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [PATCH] tests: tag slow tests with 'slow' suite for easy filtering
Date: Wed, 13 May 2026 10:45:30 -0300	[thread overview]
Message-ID: <87y0hnwhhh.fsf@suse.de> (raw)
In-Reply-To: <20260512065633.3542562-1-marcandre.lureau@redhat.com>

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


      reply	other threads:[~2026-05-13 13:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y0hnwhhh.fsf@suse.de \
    --to=farosas@suse.de \
    --cc=lvivier@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox