From 1b1974c45e5e23e5527aa43c4d9ece423a13dfdc Mon Sep 17 00:00:00 2001 From: John Keeping Date: Mon, 8 Apr 2013 20:12:38 +0100 Subject: 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 --- tests/valgrind/bin/cgit | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tests/valgrind/bin/cgit (limited to 'tests/valgrind/bin') 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 @@ +#!/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" "$@" -- cgit v1.2.3-57-g22cb