3 # Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
5 # Jansson is free software; you can redistribute it and/or modify
6 # it under the terms of the MIT license. See LICENSE for details.
10 *.c|*.cpp|check-exports)
20 if [ "$test_name" = "check-exports" ]; then
21 test_log=$test_log $test_path >$test_log/stdout 2>$test_log/stderr
25 test_bin=${test_name%.c}
28 test_bin=${test_name%.cpp}
31 $test_runner $suite_builddir/$test_bin \
35 valgrind_check $test_log/stderr || return 1
40 valgrind_show_error && return
44 . $top_srcdir/test/scripts/run-tests.sh