Skip to content

Commit 1e76ec6

Browse files
committed
meson: add 'raw' test suite
The 'raw' test suite runs each compiled test without the runtest*.sh wrapper scripts. This is useful to debug tests using meson's gdb support. To debug a test in gdb run `meson test -C build --suite=raw <testname>_raw` Signed-off-by: Florian Fischer <[email protected]>
1 parent 15f7e65 commit 1e76ec6

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

test/meson.build

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,16 @@ fs = import('fs')
168168

169169
foreach test_source: all_tests
170170
test_name = fs.stem(test_source)
171-
executable(test_name,
172-
[test_source, 'helpers.c'],
173-
c_args: xcflags,
174-
cpp_args: xcflags,
175-
include_directories: liburing_internal_includes,
176-
link_with: liburing.get_static_lib(),
177-
dependencies: test_dependencies,
178-
install: true,
179-
install_dir: get_option('datadir') / 'liburing-test',
180-
install_tag: 'tests')
171+
test_exe = executable(test_name,
172+
[test_source, 'helpers.c'],
173+
c_args: xcflags,
174+
cpp_args: xcflags,
175+
include_directories: liburing_internal_includes,
176+
link_with: liburing.get_static_lib(),
177+
dependencies: test_dependencies,
178+
install: true,
179+
install_dir: get_option('datadir') / 'liburing-test',
180+
install_tag: 'tests')
181181

182182
test(test_name,
183183
runtests_sh,
@@ -198,6 +198,10 @@ foreach test_source: all_tests
198198
args: test_name,
199199
workdir: meson.current_build_dir(),
200200
suite: 'parallel')
201+
202+
test(test_name + '_raw',
203+
test_exe,
204+
suite: 'raw')
201205
endforeach
202206

203207
add_test_setup('runtests',

0 commit comments

Comments
 (0)