summaryrefslogtreecommitdiff
path: root/src/templating/dotest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/templating/dotest.sh')
-rwxr-xr-xsrc/templating/dotest.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templating/dotest.sh b/src/templating/dotest.sh
index 993a1f266..2dcc25f81 100755
--- a/src/templating/dotest.sh
+++ b/src/templating/dotest.sh
@@ -13,6 +13,7 @@ then
strace -f $mustach "$@"
$mustach "$@" > resu.last || exit_fail "ERROR! mustach command failed ($?)!"
else
+ valgrind $mustach "$@"
valgrind $mustach "$@" > resu.last 2> vg.last || exit_fail "ERROR! valgrind + mustach command failed ($?)!"
sed -i 's:^==[0-9]*== ::' vg.last
awk '/^ *total heap usage: .* allocs, .* frees,.*/{if($$4-$$6)exit(1)}' vg.last || exit_fail "ERROR! Alloc/Free issue"