X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2FMakefile.am;h=bb6331421119d0b22b572e6c21e632849ccce779;hb=bb4baf27813652e9689f556e049b856984f2d4ba;hp=6a58363c0eb7356e595ae4430d28d1f7e66da4ad;hpb=31a4189cadf24c423013b2ef0874feb8de7c9169;p=gedcom-parse.git diff --git a/t/Makefile.am b/t/Makefile.am index 6a58363..bb63314 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) test_valgrind untest_valgrind + +TESTS_ENVIRONMENT=ICONV_PATH=@ICONV_PATH@ all-local: - rm -f ../testgedcom.out + @rm -f *.out + +check-% : %.test all + @srcdir=$(srcdir); export srcdir; \ + if $(TESTS_ENVIRONMENT) ./$<; then \ + echo "Test succeeded"; \ + else \ + echo "Test failed"; \ + fi