From 03f3b108f3d34b804cc8f37a737fe2d018ba4af0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 15 Oct 2009 09:58:07 +0200 Subject: [PATCH] Use PAZPAR2_USE_VALGRIND for test If PAZPAR2_USE_VALGRIND=true, valgrind will be used for a test, eg PAZPAR2_USE_VALGRIND=true ./test_http.sh . --- test/run_pazpar2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/run_pazpar2.sh b/test/run_pazpar2.sh index cdc6ee4..c44ae92 100755 --- a/test/run_pazpar2.sh +++ b/test/run_pazpar2.sh @@ -41,6 +41,9 @@ URLS=${PREFIX}_urls VALGRINDLOG=${PREFIX}_valgrind.log usevalgrind=false +if test -n "$PAZPAR2_USE_VALGRIND"; then + usevalgrind=$PAZPAR2_USE_VALGRIND; +fi if $usevalgrind; then valgrind --leak-check=full --log-file=$VALGRINDLOG ../src/pazpar2 -X -l pazpar2.log -f ${CFG} >extra_pazpar2.log 2>&1 & else -- 1.7.10.4