if test -z $curl; then
echo "curl not found. $PREFIX can not be tested"
- exit 0
+ exit 1
fi
GET='$curl --silent --output $OUT2 "$f"'
POST='$curl --silent --header "Content-Type: text/xml" --data-binary "@$postfile" --output $OUT2 "$f"'
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
# Kill programs
-sleep 1
if test -n "$PP2PID"; then
kill $PP2PID
- sleep 1
+ sleep 2
fi
exit $code