Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
added 'memcheck' and 'ptrcheck' targets to make it easy to run the tests under valgrind.
This commit is contained in:
parent
63e03ebcec
commit
b772c5a5d6
@ -5,6 +5,10 @@
|
||||
all of the existing tests to be based on some simple shell
|
||||
functions. Make distcheck works again.
|
||||
|
||||
Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
|
||||
added 'memcheck' and 'ptrcheck' targets to make it easy to run the
|
||||
tests under valgrind.
|
||||
|
||||
2009-08-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||
|
||||
* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
|
||||
|
@ -27,6 +27,12 @@ AUTOMAKE_OPTIONS = 1.11 color-tests parallel-tests foreign
|
||||
|
||||
LIBTIFF = $(top_builddir)/libtiff/libtiff.la
|
||||
|
||||
# Environment parameters to be used during tests
|
||||
TESTS_ENVIRONMENT = \
|
||||
MAKE="$(MAKE)" \
|
||||
MAKEFLAGS="$(MAKEFLAGS)" \
|
||||
MEMCHECK="$(MEMCHECK)"
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(TESTSCRIPTS) \
|
||||
$(IMAGES_EXTRA_DIST) \
|
||||
@ -155,6 +161,14 @@ rewrite_LDADD = $(LIBTIFF)
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/libtiff
|
||||
|
||||
# memcheck: valgrind's memory access checker
|
||||
memcheck:
|
||||
$(MAKE) MEMCHECK='valgrind --tool=memcheck --leak-check=full --read-var-info=yes --track-origins=yes --num-callers=12 --quiet $(VALGRIND_EXTRA_OPTS)' check
|
||||
|
||||
# ptrcheck: valgrind's experimental pointer checking tool.
|
||||
ptrcheck:
|
||||
$(MAKE) MEMCHECK='valgrind --tool=exp-ptrcheck --quiet $(VALGRIND_EXTRA_OPTS)' check
|
||||
|
||||
generate-tiff2rgba-tests:
|
||||
for file in $(TIFFIMAGES) ; \
|
||||
do \
|
||||
|
@ -365,6 +365,13 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = 1.11 color-tests parallel-tests foreign
|
||||
LIBTIFF = $(top_builddir)/libtiff/libtiff.la
|
||||
|
||||
# Environment parameters to be used during tests
|
||||
TESTS_ENVIRONMENT = \
|
||||
MAKE="$(MAKE)" \
|
||||
MAKEFLAGS="$(MAKEFLAGS)" \
|
||||
MEMCHECK="$(MEMCHECK)"
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(TESTSCRIPTS) \
|
||||
$(IMAGES_EXTRA_DIST) \
|
||||
@ -1102,6 +1109,14 @@ uninstall-am:
|
||||
recheck recheck-html tags uninstall uninstall-am
|
||||
|
||||
|
||||
# memcheck: valgrind's memory access checker
|
||||
memcheck:
|
||||
$(MAKE) MEMCHECK='valgrind --tool=memcheck --leak-check=full --read-var-info=yes --track-origins=yes --num-callers=12 --quiet $(VALGRIND_EXTRA_OPTS)' check
|
||||
|
||||
# ptrcheck: valgrind's experimental pointer checking tool.
|
||||
ptrcheck:
|
||||
$(MAKE) MEMCHECK='valgrind --tool=exp-ptrcheck --quiet $(VALGRIND_EXTRA_OPTS)' check
|
||||
|
||||
generate-tiff2rgba-tests:
|
||||
for file in $(TIFFIMAGES) ; \
|
||||
do \
|
||||
|
Loading…
Reference in New Issue
Block a user