Add valgrind support in test scripts
[git] / t / valgrind / valgrind.sh
1 #!/bin/sh
2
3 base=$(basename "$0")
4
5 exec valgrind -q --error-exitcode=126 \
6         --leak-check=no \
7         --suppressions="$GIT_VALGRIND/default.supp" \
8         --gen-suppressions=all \
9         --track-origins=yes \
10         --log-fd=4 \
11         --input-fd=4 \
12         $GIT_VALGRIND_OPTIONS \
13         "$GIT_VALGRIND"/../../"$base" "$@"