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 \ 14JW07022A.mp3.result \ 15JW07022A.mp3.testfile 16 17T = $(top_srcdir)/tests 18check-local: 19 MAGIC=$(top_builddir)/magic/magic ./test 20 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 21