1
0
mirror of https://gitea.quitesimple.org/crtxcr/cgitsb synced 2024-11-23 00:12:10 +01:00
cgitsb/tests/valgrind/bin/cgit
John Keeping 1b1974c45e tests: add Valgrind support
Now running tests with the "--valgrind" option will run cgit under
Valgrind instead of all Git commands.

Signed-off-by: John Keeping <john@keeping.me.uk>
2014-01-12 19:33:03 +01:00

13 lines
374 B
Bash
Executable File

#!/bin/sh
# Note that we currently use Git's suppression file and there are variables
# $GIT_VALGRIND and $CGIT_VALGRIND which point to different places.
exec valgrind -q --error-exitcode=126 \
--suppressions="$GIT_VALGRIND/default.supp" \
--gen-suppressions=all \
--leak-check=no \
--track-origins=yes \
--log-fd=4 \
--input-fd=4 \
"$CGIT_VALGRIND/../../cgit" "$@"