summaryrefslogtreecommitdiff
path: root/test/fullcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/fullcheck.sh')
-rwxr-xr-xtest/fullcheck.sh25
1 files changed, 14 insertions, 11 deletions
diff --git a/test/fullcheck.sh b/test/fullcheck.sh
index f3c20dd2..fc89a13c 100755
--- a/test/fullcheck.sh
+++ b/test/fullcheck.sh
@@ -1,18 +1,21 @@
#!/bin/sh
VALGRIND=''
-if [ -x /usr/bin/valgrind ]; then
- VALGRIND=valgrind
+if [ -x /usr/bin/valgrind -o -x /opt/local/bin/valgrind ]; then
+ VALGRIND="valgrind -q --track-origins=yes"
+ if [ `uname` = "Darwin" ]; then
+ VALGRIND="$VALGRIND --dsymutil=yes"
+ fi
fi
-export MallocGuardEdges=1
-export MallocScribble=1
-export MallocPreScribble=1
-export MallocCheckHeapStart=100
-export MallocCheckHeapEach=100
-export DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
-export MALLOC_PROTECT_BEFORE=1
-export MALLOC_FILL_SPACE=1
-export MALLOC_STRICT_SIZE=1
+#export MallocGuardEdges=1
+#export MallocScribble=1
+#export MallocPreScribble=1
+#export MallocCheckHeapStart=100
+#export MallocCheckHeapEach=100
+#export DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
+#export MALLOC_PROTECT_BEFORE=1
+#export MALLOC_FILL_SPACE=1
+#export MALLOC_STRICT_SIZE=1
exec $VALGRIND $@