1## Makefile for the tests subdirectory of GNU libunistring. 2## Copyright (C) 2009 Free Software Foundation, Inc. 3## 4## This program is free software: you can redistribute it and/or modify 5## it under the terms of the GNU General Public License as published by 6## the Free Software Foundation; either version 3 of the License, or 7## (at your option) any later version. 8## 9## This program is distributed in the hope that it will be useful, 10## but WITHOUT ANY WARRANTY; without even the implied warranty of 11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12## GNU General Public License for more details. 13## 14## You should have received a copy of the GNU General Public License 15## along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17## Process this file with automake to produce Makefile.in. 18 19# Rules generated and collected by gnulib-tool. 20include Makefile.gnulib 21 22AUTOMAKE_OPTIONS += 1.11 subdir-objects color-tests 23 24# Ensure that ../lib/config.h is seen before ../config.h. 25DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/lib -I$(top_builddir) 26 27# The test suite uses the 'localcharset' module. 28TESTS_ENVIRONMENT += @LOCALCHARSET_TESTS_ENVIRONMENT@ 29 30 31# For debugging memory leaks and memory allocation bugs. 32# You should build with --disable-shared when using valgrind. 33CHECKER = 34#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../lib/malloca.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes 35#CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no 36CHECKER_END_OF_COMMENTS = 37 38# This must be the last thing that gets added to TESTS_ENVIRONMENT. 39TESTS_ENVIRONMENT += $(SHELL) $(top_srcdir)/build-aux/run-test '$(CHECKER)' 40