aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/templating/run-original-tests.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/templating/run-original-tests.sh b/src/templating/run-original-tests.sh
index cc666fd69..f9dbe316c 100755
--- a/src/templating/run-original-tests.sh
+++ b/src/templating/run-original-tests.sh
@@ -1,11 +1,12 @@
#!/bin/bash
# This file is in the public domain.
-set -eu
+set -eux
export CFLAGS="-g"
function build()
{
+ echo "Ensuring clean state on exit ..."
make clean
make
}
@@ -13,6 +14,8 @@ function build()
# Install rebuild-on-exit handler (except for kill -9)
trap build EXIT
+echo "Ensuring clean state on entry to legacy tests ..."
+
make clean
# The build fails if libjson-c-dev is not installed.
@@ -23,3 +26,7 @@ make -f mustach-original-Makefile mustach mustach-json-c.o || exit 77
make -f mustach-original-Makefile clean || true
make -f mustach-original-Makefile basic-tests
make -f mustach-original-Makefile clean || true
+
+echo "Test done"
+
+exit 0