From: Adam Dickmeiss Date: Thu, 15 Oct 2009 07:58:07 +0000 (+0200) Subject: Use PAZPAR2_USE_VALGRIND for test X-Git-Tag: v1.2.3~19 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=03f3b108f3d34b804cc8f37a737fe2d018ba4af0;p=pazpar2-moved-to-github.git 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 . --- 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