valgrind_env = environment()
valgrind_env.set('CK_TIMEOUT_MULTIPLIER', '10')
valgrind_env.set('CK_FORK', 'no')
+ valgrind_env.set('RUNNING_ON_VALGRIND', '1')
valgrind_suppressions_file = join_paths(dir_src_test, 'valgrind.suppressions')
add_test_setup('valgrind',
exe_wrapper: [ valgrind,
message('valgrind not found, disabling valgrind test suite')
endif
- # FIXME: static link test
+ test_static_link = find_program('test/test-static-symbols-leak.sh')
+ test('static-symbols-leak', test_static_link,
+ args: [meson.current_build_dir()])
endif
doxygen = find_program('doxygen', required: get_option('documentation'))
# Note the spaces in the expressions! After the first grep, each line
# is " T symbol_name"
+test -z "$RUNNING_ON_VALGRIND" || exit 77
+
builddir="$1"
test -f "$builddir/test-static-link" || (echo "Unable to find test file" && exit 1)