1check_PROGRAMS = test 2test_LDADD = $(top_builddir)/src/libmagic.la 3test_CPPFLAGS = -I$(top_builddir)/src 4 5EXTRA_DIST = \ 6android-vdex-1.result \ 7android-vdex-1.testfile \ 8android-vdex-2.result \ 9android-vdex-2.testfile \ 10CVE-2014-1943.result \ 11CVE-2014-1943.testfile \ 12JW07022A.mp3.result \ 13JW07022A.mp3.testfile \ 14bcachefs.result \ 15bcachefs.testfile \ 16cl8m8ocofedso.result \ 17cl8m8ocofedso.testfile \ 18escapevel.result \ 19escapevel.testfile \ 20ext4.result \ 21ext4.testfile \ 22fit-map-data.result \ 23fit-map-data.testfile \ 24gedcom.result \ 25gedcom.testfile \ 26hddrawcopytool.result \ 27hddrawcopytool.testfile \ 28issue311docx.result \ 29issue311docx.testfile \ 30issue359xlsx.result \ 31issue359xlsx.testfile \ 32json1.result \ 33json1.testfile \ 34json2.result \ 35json2.testfile \ 36json3.result \ 37json3.testfile \ 38matilde.arm.result \ 39matilde.arm.testfile \ 40pcjr.result \ 41pcjr.testfile \ 42pgp-binary-key-v2-phil.result \ 43pgp-binary-key-v2-phil.testfile \ 44pgp-binary-key-v3-lutz.result \ 45pgp-binary-key-v3-lutz.testfile \ 46pgp-binary-key-v4-dsa.result \ 47pgp-binary-key-v4-dsa.testfile \ 48pgp-binary-key-v4-ecc-no-userid-secret.result \ 49pgp-binary-key-v4-ecc-no-userid-secret.testfile \ 50pgp-binary-key-v4-ecc-secret-key.result \ 51pgp-binary-key-v4-ecc-secret-key.testfile \ 52pgp-binary-key-v4-rsa-key.result \ 53pgp-binary-key-v4-rsa-key.testfile \ 54pgp-binary-key-v4-rsa-no-userid-secret.result \ 55pgp-binary-key-v4-rsa-no-userid-secret.testfile \ 56pgp-binary-key-v4-rsa-secret-key.result \ 57pgp-binary-key-v4-rsa-secret-key.testfile \ 58regex-eol.magic \ 59regex-eol.result \ 60regex-eol.testfile \ 61uf2.result \ 62uf2.testfile \ 63zstd-3-skippable-frames.result \ 64zstd-dictionary-0.result \ 65zstd-dictionary-1.result \ 66zstd-dictionary-2.result \ 67zstd-skippable-frame-0.result \ 68zstd-skippable-frame-4.result \ 69zstd-skippable-frame-8.result \ 70zstd-skippable-frame-C.result \ 71zstd-v0.2-FF.result \ 72zstd-v0.2-FF.testfile \ 73zstd-v0.3-FF.result \ 74zstd-v0.3-FF.testfile \ 75zstd-v0.4-FF.result \ 76zstd-v0.4-FF.testfile \ 77zstd-v0.5-FF.result \ 78zstd-v0.5-FF.testfile \ 79zstd-v0.6-FF.result \ 80zstd-v0.6-FF.testfile \ 81zstd-v0.7-00.result \ 82zstd-v0.7-21.result \ 83zstd-v0.7-21.testfile \ 84zstd-v0.7-22.result \ 85zstd-v0.7-22.testfile \ 86zstd-v0.8-00.result \ 87zstd-v0.8-01.result \ 88zstd-v0.8-01.testfile \ 89zstd-v0.8-02.result \ 90zstd-v0.8-02.testfile \ 91zstd-v0.8-03.result \ 92zstd-v0.8-03.testfile \ 93zstd-v0.8-16.result \ 94zstd-v0.8-16.testfile \ 95zstd-v0.8-20.result \ 96zstd-v0.8-20.testfile \ 97zstd-v0.8-21.result \ 98zstd-v0.8-21.testfile \ 99zstd-v0.8-22.result \ 100zstd-v0.8-22.testfile \ 101zstd-v0.8-23.result \ 102zstd-v0.8-23.testfile \ 103zstd-v0.8-F4.result \ 104zstd-v0.8-F4.testfile \ 105zstd-v0.8-FF.result \ 106zstd-v0.8-FF.testfile 107 108T = $(top_srcdir)/tests 109check-local: 110 MAGIC=$(top_builddir)/magic/magic ./test 111 set -e; \ 112 for i in $T/*.testfile; do \ 113 echo Running test: $$i; \ 114 if [ -f $${i%%.testfile}.magic ]; then \ 115 m=$${i%%.testfile}.magic; \ 116 else \ 117 m=$(top_builddir)/magic/magic; \ 118 fi; \ 119 TZ=UTC MAGIC=$$m ./test $$i $${i%%.testfile}.result; \ 120 done 121