aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-04-01 14:27:31 +0200
committerChristian Grothoff <christian@grothoff.org>2024-04-01 14:27:31 +0200
commit50ab7137c083b3d8ea0157b3824b48172f2b91ce (patch)
tree959a454c505c70569de4d22b61aa7d831b876c9c
parent22c13c1f0839695c22b64acee00606a7200c3bf0 (diff)
downloadexchange-50ab7137c083b3d8ea0157b3824b48172f2b91ce.tar.xz
-add strace for debugging
-rw-r--r--contrib/ci/Containerfile1
-rwxr-xr-xsrc/templating/dotest.sh3
2 files changed, 3 insertions, 1 deletions
diff --git a/contrib/ci/Containerfile b/contrib/ci/Containerfile
index ac31c7ade..cee2620e3 100644
--- a/contrib/ci/Containerfile
+++ b/contrib/ci/Containerfile
@@ -10,6 +10,7 @@ RUN apt-get update -yqq && \
bash \
coreutils \
git \
+ strace \
libcurl4-gnutls-dev \
libgcrypt-dev \
libidn11-dev \
diff --git a/src/templating/dotest.sh b/src/templating/dotest.sh
index 13688f3e9..993a1f266 100755
--- a/src/templating/dotest.sh
+++ b/src/templating/dotest.sh
@@ -10,9 +10,10 @@ mustach="../mustach"
echo "starting test"
if test "$NOVALGRIND" = 1
then
+ strace -f $mustach "$@"
$mustach "$@" > resu.last || exit_fail "ERROR! mustach command failed ($?)!"
else
- valgrind $mustach "$@" > resu.last 2> vg.last || exit_fail "ERROR! mustach command failed ($?)!"
+ 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"
fi