X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2FMakefile.am;h=a95ff704bb385acad470db4f182306a646038885;hb=a5bd4c3c89f5cb433a615c436947b8b0f44c3661;hp=2d88839cf327fa85a5cf9a48ca4ba23498309ba0;hpb=65d9238580688605c38a0df217708395c2e77c1f;p=gedcom-parse.git diff --git a/t/Makefile.am b/t/Makefile.am index 2d88839..a95ff70 100644 --- a/t/Makefile.am +++ b/t/Makefile.am @@ -2,12 +2,21 @@ # $Id$ # $Name$ -SUBDIRS=input +SUBDIRS=src input output . -TEST_SCRIPT=test_script TESTS := $(wildcard $(srcdir)/*.test) -EXTRA_DIST=$(TEST_SCRIPT) $(TESTS) +EXTRA_DIST=$(TESTS) + +TESTS_ENVIRONMENT=ICONV_PATH=@ICONV_PATH@ all-local: - rm -f ../testgedcom.out + @rm -f *.out $(DMALLOC_LOG) + +check-% : %.test all-local + @srcdir=$(srcdir); export srcdir; \ + if $(TESTS_ENVIRONMENT) ./$<; then \ + echo "Test succeeded"; \ + else \ + echo "Test failed"; \ + fi