Made 'make fullcheck' work for all the new unit tests.

This commit is contained in:
John Wiegley 2009-01-25 01:49:42 -04:00
parent 79a7976600
commit 3f07906e2f
3 changed files with 23 additions and 17 deletions

View file

@ -442,20 +442,14 @@ RegressionTests: $(srcdir)/test/regress.py
echo "$(PYTHON) $(srcdir)/test/regress.py $(top_builddir)/ledger$(EXEEXT) $(srcdir)/test/regress" > $@
chmod 755 $@
if HAVE_VALGRIND
VALGRIND = valgrind
else
VALGRIND =
endif
fullcheck: check
MallocGuardEdges=1 \
MallocScribble=1 \
MallocPreScribble=1 \
MallocCheckHeapStart=100 \
MallocCheckHeapEach=100 \
DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib \
$(VALGRIND) $(top_builddir)/UnitTests$(EXEEXT) --verify
fullcheck: $(TESTS)
sh fullcheck $(top_builddir)/util_tests$(EXEEXT) --verify
sh fullcheck $(top_builddir)/math_tests$(EXEEXT) --verify
sh fullcheck $(top_builddir)/expr_tests$(EXEEXT) --verify
sh fullcheck $(top_builddir)/data_tests$(EXEEXT) --verify
sh fullcheck $(top_builddir)/parse_tests$(EXEEXT) --verify
sh fullcheck $(top_builddir)/report_tests$(EXEEXT) --verify
sh fullcheck $(top_builddir)/extra_tests$(EXEEXT) --verify
######################################################################

View file

@ -19,9 +19,6 @@ AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
AC_CHECK_PROG([VALGRIND_TEST], [valgrind], [true], [false])
AM_CONDITIONAL(HAVE_VALGRIND, test x$VALGRIND_TEST = xtrue)
# Checks for emacs lisp path
AM_PATH_LISPDIR

15
fullcheck Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
VALGRIND=''
if [ -x /usr/bin/valgrind ]; then
VALGRIND=valgrind
fi
export MallocGuardEdges=1
export MallocScribble=1
export MallocPreScribble=1
export MallocCheckHeapStart=100
export MallocCheckHeapEach=100
export DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
exec $VALGRIND $@