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

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

 



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@xxxxxxxxxxxxx>
Signed-off-by: Florian Fischer <florian.fischer@muhq.space>
---
 test/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)

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
-- 
2.37.1




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux