1check_PROGRAMS = test 2test_LDADD = $(top_builddir)/src/libmagic.la 3test_CPPFLAGS = -I$(top_builddir)/src 4 5EXTRA_DIST = \ 6escapevel.result \ 7escapevel.testfile \ 8gedcom.result \ 9gedcom.testfile \ 10hddrawcopytool.result \ 11hddrawcopytool.testfile \ 12issue311docx.result \ 13issue311docx.testfile 14 15T = $(top_srcdir)/tests 16check-local: 17 MAGIC=$(top_builddir)/magic/magic ./test 18 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 19