From: Bruno Haible Date: Thu, 24 Apr 2003 10:56:44 +0000 (+0000) Subject: Prepare for using valgrind. X-Git-Tag: v0.12~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a728032aa6dc8b89814c6a9a2efd2529afcc8420;p=thirdparty%2Fgettext.git Prepare for using valgrind. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 81c6b6d73..87f0ddda3 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2003-04-14 Bruno Haible + + * Makefile.am (CHECKER): New variable. + (TESTS_ENVIRONMENT): Use it. + 2003-04-12 Bruno Haible * Makefile.vms: Avoid rules with no lines. Don't use the force target. diff --git a/gettext-tools/tests/Makefile.am b/gettext-tools/tests/Makefile.am index 76f236409..17aaf6f62 100644 --- a/gettext-tools/tests/Makefile.am +++ b/gettext-tools/tests/Makefile.am @@ -72,23 +72,27 @@ EXTRA_DIST += $(TESTS) \ XGETTEXT = ../src/xgettext +# For debugging memory leaks and memory allocation bugs. +CHECKER = +#CHECKER = valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes + TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) PATH=.:../src:$$PATH \ - GETTEXT=tstgettext \ - NGETTEXT=tstngettext \ - XGETTEXT=xgettext \ - MSGATTRIB=msgattrib \ - MSGCAT=msgcat \ - MSGCMP=msgcmp \ - MSGCOMM=msgcomm \ - MSGCONV=msgconv \ - MSGEN=msgen \ - MSGEXEC=msgexec \ - MSGFILTER=msgfilter \ - MSGFMT=msgfmt \ - MSGGREP=msggrep \ - MSGMERGE=msgmerge \ - MSGUNFMT=msgunfmt \ - MSGUNIQ=msguniq \ + GETTEXT="$(CHECKER) tstgettext" \ + NGETTEXT="$(CHECKER) tstngettext" \ + XGETTEXT="$(CHECKER) xgettext" \ + MSGATTRIB="$(CHECKER) msgattrib" \ + MSGCAT="$(CHECKER) msgcat" \ + MSGCMP="$(CHECKER) msgcmp" \ + MSGCOMM="$(CHECKER) msgcomm" \ + MSGCONV="$(CHECKER) msgconv" \ + MSGEN="$(CHECKER) msgen" \ + MSGEXEC="$(CHECKER) msgexec" \ + MSGFILTER="$(CHECKER) msgfilter" \ + MSGFMT="$(CHECKER) msgfmt" \ + MSGGREP="$(CHECKER) msggrep" \ + MSGMERGE="$(CHECKER) msgmerge" \ + MSGUNFMT="$(CHECKER) msgunfmt" \ + MSGUNIQ="$(CHECKER) msguniq" \ OBJEXT='@OBJEXT@' EXEEXT='@EXEEXT@' \ LIBTOOL='@LIBTOOL@' \ CC='@CC@' CFLAGS='@CFLAGS@' \