]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/valgrind/bin/cgit
tests: add Valgrind support
[ps-cgit] / tests / valgrind / bin / cgit
diff --git a/tests/valgrind/bin/cgit b/tests/valgrind/bin/cgit
new file mode 100755 (executable)
index 0000000..dcdfbe5
--- /dev/null
@@ -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" "$@"