]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Prepare for using valgrind.
authorBruno Haible <bruno@clisp.org>
Thu, 24 Apr 2003 10:56:44 +0000 (10:56 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:24 +0000 (12:10 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/Makefile.am

index 81c6b6d7368ad4853b6e5e29a2680d8d78a343b1..87f0ddda303cd2c3582f0a6f7500b386704d8544 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-14  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.am (CHECKER): New variable.
+       (TESTS_ENVIRONMENT): Use it.
+
 2003-04-12  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.vms: Avoid rules with no lines. Don't use the force target.
index 76f236409b737c9e6b02c71ee1d1c13515b1b0ed..17aaf6f6218d0a1819c5247b41a5e3c8e22e1a04 100644 (file)
@@ -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@' \