From 3cd3dcb5bb3b0481812ddd3ff8dc182bdb20be23 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 10 Oct 2016 02:13:47 +0200 Subject: git-receiver: added support to get mirror url from config file this commit also includes some "integration test" in shell script --- build-aux/valgrind.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 build-aux/valgrind.sh (limited to 'build-aux') diff --git a/build-aux/valgrind.sh b/build-aux/valgrind.sh new file mode 100755 index 0000000..4db7477 --- /dev/null +++ b/build-aux/valgrind.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -e + +export TESTS_ENVIRONMENT=" + ${VALGRIND:-valgrind} \ + --tool=memcheck \ + --leak-check=full \ + --leak-resolution=high \ + --num-callers=20 \ + --error-exitcode=1 \ + --show-possibly-lost=no" + +if [[ "${1}" == *.sh ]]; then + exec "${1}" +else + exec ${TESTS_ENVIRONMENT} "${1}" +fi -- cgit v1.2.3-18-g5258