1check_PROGRAMS = test 2test_LDADD = $(top_builddir)/src/libmagic.la 3test_CPPFLAGS = -I$(top_srcdir)/src 4 5EXTRA_DIST = \ 6escapevel.result \ 7escapevel.testfile \ 8gedcom.result \ 9gedcom.testfile \ 10issue311docx.result \ 11issue311docx.testfile 12 13T = $(top_srcdir)/tests 14check-local: 15 MAGIC=$(top_builddir)/magic/magic ./test 16 set -e; for i in $T/*.testfile; do echo Running test: $$i; TZ=UTC MAGIC=$(top_builddir)/magic/magic ./test $$i $${i%%.testfile}.result; done 17