X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2FMakefile.am;h=a95ff704bb385acad470db4f182306a646038885;hb=a5bd4c3c89f5cb433a615c436947b8b0f44c3661;hp=6a58363c0eb7356e595ae4430d28d1f7e66da4ad;hpb=31a4189cadf24c423013b2ef0874feb8de7c9169;p=gedcom-parse.git diff --git a/t/Makefile.am b/t/Makefile.am index 6a58363..a95ff70 100644 --- a/t/Makefile.am +++ b/t/Makefile.am @@ -2,20 +2,21 @@ # $Id$ # $Name$ -TEST_SCRIPT=test_script +SUBDIRS=src input output . -TESTS_ENVIRONMENT=$(srcdir)/$(TEST_SCRIPT) -TESTS = allged.ged \ - ansel.ged \ - uhlbomcl.ged \ - uhlcl.ged \ - ulhbomcl.ged \ - ulhc.ged \ - ulhcl.ged \ - ulhl.ged \ - ulhlc.ged +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