mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
test: hook up a valgrind test run in meson
Use with: meson test -C builddir --setup=valgrind
This commit is contained in:
parent
7909c99ead
commit
53215a66b9
1 changed files with 13 additions and 0 deletions
|
|
@ -59,3 +59,16 @@ test('test spa',
|
|||
include_directories: pwtest_inc,
|
||||
link_with: pwtest_lib)
|
||||
)
|
||||
|
||||
valgrind = find_program('valgrind', required: false)
|
||||
if valgrind.found()
|
||||
valgrind_env = environment()
|
||||
add_test_setup('valgrind',
|
||||
exe_wrapper : [ valgrind,
|
||||
'--leak-check=full',
|
||||
'--gen-suppressions=all',
|
||||
'--error-exitcode=3',
|
||||
],
|
||||
env : valgrind_env,
|
||||
timeout_multiplier : 100)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue