Skip to content

Commit d52fd0c

Browse files
committed
meson: add default test setup running each test once
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 <[email protected]> Signed-off-by: Florian Fischer <[email protected]>
1 parent 7aab035 commit d52fd0c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project('liburing', ['c','cpp'],
22
version: run_command('awk', '/Version:/ { print $2 }', 'liburing.spec', check: true).stdout().strip(),
33
license: ['MIT', 'LGPL-2.1-only', 'GPL-2.0-only WITH Linux-syscall-note'],
4-
meson_version: '>=0.54.0',
4+
meson_version: '>=0.57.0',
55
default_options: ['default_library=both',
66
'buildtype=debugoptimized',
77
'c_std=c11',

test/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ foreach test_source : all_tests
188188
suite : 'parallel')
189189
endforeach
190190

191+
add_test_setup('runtests',
192+
exclude_suites: ['loop', 'parallel'],
193+
is_default: true)
194+
191195
configure_file(input : 'runtests.sh',
192196
output: 'runtests.sh',
193197
copy : true)

0 commit comments

Comments
 (0)