Put STDERR of iconv into the logfile.
[gedcom-parse.git] / t / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # $Id$
3 # $Name$
4
5 SUBDIRS=src input output .
6
7 DMALLOC_LOG = dmalloc.log
8 TESTS := $(wildcard $(srcdir)/*.test)
9
10 EXTRA_DIST=$(TESTS)
11
12 TESTS_ENVIRONMENT=ICONV_PATH=@ICONV_PATH@
13
14 all-local:
15         @rm -f *.out $(DMALLOC_LOG)
16
17 check-% :       %.test all-local
18         @srcdir=$(srcdir); export srcdir; \
19         if $(TESTS_ENVIRONMENT) ./$<; then \
20           echo "Test succeeded"; \
21         else \
22           echo "Test failed"; \
23         fi
24
25 check-dmalloc-%:        %.test all-local
26         @if [ "@EXTRA_PROGS@" = "" ]; then \
27           echo "Please run './configure --with-dmalloc' first"; \
28           exit; \
29         fi; \
30         srcdir=$(srcdir); export srcdir; \
31         GOM_DMALLOC_TEST=$(DMALLOC_LOG); export GOM_DMALLOC_TEST; \
32         if $(TESTS_ENVIRONMENT) ./$<; then \
33           echo "Test succeeded"; \
34         else \
35           echo "Test failed"; \
36         fi
37