From 6cb798252ee6866fd894e8be29c094d193847e6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 31 Jul 2019 15:38:28 -0400 Subject: [PATCH] meson: Add valgrind setup --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 132a556..20da9a3 100644 --- a/meson.build +++ b/meson.build @@ -270,4 +270,14 @@ if not get_option('examples').disabled() subdir('examples') endif +add_test_setup('valgrind', + exe_wrapper: ['valgrind', + '--leak-check=full', + '--show-reachable=no', + '--error-exitcode=1', + '--suppressions='+meson.current_source_dir()+'/tests/libnice.supp', + '--num-callers=10'], + timeout_multiplier: 10 + ) + configure_file(output : 'config.h', configuration : cdata) -- 2.7.4