aboutsummaryrefslogtreecommitdiffstats
path: root/tests/valgrind/bin
diff options
context:
space:
mode:
authorGravatar John Keeping <john@keeping.me.uk>2013-04-09 04:12:38 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-01-13 03:33:03 (JST)
commit1b1974c45e5e23e5527aa43c4d9ece423a13dfdc (patch)
tree863ba37c8c25b917e1823ec10db6600a9b41e129 /tests/valgrind/bin
parent382ecf152e1bd9546f6c84ace71c62ca07f6648b (diff)
downloadcgit-1b1974c45e5e23e5527aa43c4d9ece423a13dfdc.zip
cgit-1b1974c45e5e23e5527aa43c4d9ece423a13dfdc.tar.gz
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>
Diffstat (limited to 'tests/valgrind/bin')
-rwxr-xr-xtests/valgrind/bin/cgit12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/valgrind/bin/cgit b/tests/valgrind/bin/cgit
new file mode 100755
index 0000000..dcdfbe5
--- /dev/null
+++ b/tests/valgrind/bin/cgit
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3# Note that we currently use Git's suppression file and there are variables
4# $GIT_VALGRIND and $CGIT_VALGRIND which point to different places.
5exec valgrind -q --error-exitcode=126 \
6 --suppressions="$GIT_VALGRIND/default.supp" \
7 --gen-suppressions=all \
8 --leak-check=no \
9 --track-origins=yes \
10 --log-fd=4 \
11 --input-fd=4 \
12 "$CGIT_VALGRIND/../../cgit" "$@"