From a9da6ac95d5bc11689b87ba689aeffbf22c45418 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 6 May 2023 19:23:16 +0200 Subject: add tests to run binaries under Valgrind This was quite a bit of refactoring in test/; everything should be more maintainable and robust in theory. Also, valgrind.sh was fixed to use exec (so that signals are passed to the underlying process); Valgrind command line options have also been tweaked. ./ci.sh fails now, but that should be fixable. --- src/valgrind.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/valgrind.sh b/src/valgrind.sh index 7223092..088c393 100755 --- a/src/valgrind.sh +++ b/src/valgrind.sh @@ -8,4 +8,9 @@ if ! command -v valgrind &> /dev/null; then exit 1 fi -valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose "$@" +exec valgrind \ + --leak-check=full \ + --show-leak-kinds=all \ + --track-origins=yes \ + --trace-children=yes \ + -- "$@" -- cgit v1.2.3