From: Jérémie Astor Date: Fri, 6 Dec 2019 15:27:28 +0000 (+0100) Subject: :art: Update tests X-Git-Tag: nightly~2069^2~4 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b65dfa56cc7f3082ecb9983431b20e3ce7cffe36;p=gwion.git :art: Update tests --- diff --git a/tests/sh/common.sh b/tests/sh/common.sh index 68b45243..150c2c1a 100644 --- a/tests/sh/common.sh +++ b/tests/sh/common.sh @@ -9,10 +9,14 @@ run() { local good n ok good="All heap blocks were freed -- no leaks are possible" n=$(printf "% 4i" "$1") - eval valgrind ./gwion "$GWOPT" -d "$DRIVER" "$3" &> "$4" - if [ -f "$4" ] - then grep "$good" "$4" > /dev/null && ok=1 - else ok=1 + if [ "$VALGRIND" == "NO_VALGRIND" ] + then ./gwion "$GWOPT" -d "$DRIVER" "$3" &> "$4" && ok=1 + else + eval valgrind ./gwion "$GWOPT" -d "$DRIVER" "$3" &> "$4" + if [ -f "$4" ] + then grep "$good" "$4" > /dev/null && ok=1 + else ok=1 + fi fi if [ $ok ] then echo "ok $n $2"