summaryrefslogtreecommitdiff
path: root/test/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/run.sh')
-rw-r--r--test/run.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/run.sh b/test/run.sh
new file mode 100644
index 0000000..7d72749
--- /dev/null
+++ b/test/run.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+rm -f debug.log
+rm -f child.log
+
+# for shared builds.
+LD_LIBRARY_PATH=../src/.libs:$LD_LIBRARY_PATH
+
+# enable an safety-checking malloc in glibc which will abort() if
+# heap corruption is detected.
+MALLOC_CHECK_=2
+
+export LD_LIBRARY_PATH MALLOC_CHECK_
+
+for f in $*; do
+ if ${HARNESS} ./$f ${SRCDIR}; then
+ :
+ else
+ echo FAILURE
+ [ -z "$CARRYON" ] && exit 1
+ fi
+done
+
+exit 0