diff mbox series

[liburing,5/9] meson: add default test setup running each test once

Message ID 20220727152723.3320169-6-florian.fischer@muhq.space (mailing list archive)
State New
Headers show
Series [liburing,1/9] add Meson build system | expand

Commit Message

Florian Fischer July 27, 2022, 3:27 p.m. UTC
With this patch running `meson test` in the build directory behaves like
`make -C test runtests`.

To execute the other test suites (running the tests in a loop or in
parallel) run: `meson test --suite=loop` or `meson test --suite=parallel`.

Suggested-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Florian Fischer <florian.fischer@muhq.space>
---
 test/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/test/meson.build b/test/meson.build
index 4d9b3f3..af394a4 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -197,6 +197,12 @@  foreach test_source: all_tests
          suite: 'parallel')
 endforeach
 
+if meson.version().version_compare('>=0.57')
+  add_test_setup('runtests',
+                 exclude_suites: ['loop', 'parallel'],
+                 is_default: true)
+endif
+
 test_runners = ['runtests.sh', 'runtests-loop.sh', 'runtests-quiet.sh']
 
 foreach test_runner: test_runners