Re: [PATCH 1/2] meson: Annotate each test() with 'suite'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 18, 2023 at 14:28:56 +0200, Michal Privoznik wrote:
> A test case can be part of a test suite (just like we already
> have 'syntax-check'). This then allows developers to run only a
> subset of tests. For instance - when using valgrind test setup
> (`meson test -C _build/ --setup valgrind`) it makes zero sense to
> run syntax-check tests or other script based tests (e.g.
> check-augeas-*, check-remote_protocol, etc.). What does makes
> sense is to run compiled binaries.
> 
> Strictly speaking, reaching that goal is as trivial as annotating
> only those compiled tests (declared in tests/meson.build) and
> running them selectively:
> 
>   meson test -C _build/ --setup valgrind --suite $TAG
> 
> But it may be also desirable to run test scripts separately.
> 
> Therefore, introduce two new tags: 'bin' for compiled tests, and
> 'script' for script based tests and annotate each test()
> accordingly.

Tbh this annotation feels very arbitrary but since we don't use it and I
don't really see us running anything besides unit tests from this
repository I don't think we'll need to use this any time soon for
anything else.

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux