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 \ 10arj.result \ 11arj.testfile \ 12bcachefs.result \ 13bcachefs.testfile \ 14bcachefs2.result \ 15bcachefs2.testfile \ 16cl8m8ocofedso.result \ 17cl8m8ocofedso.testfile \ 18cmd1.result \ 19cmd1.testfile \ 20cmd2.result \ 21cmd2.testfile \ 22cmd3.result \ 23cmd3.testfile \ 24cmd4.result \ 25cmd4.testfile \ 26CVE-2014-1943.result \ 27CVE-2014-1943.testfile \ 28dsd64-dff.result \ 29dsd64-dff.testfile \ 30dsd64-dsf.result \ 31dsd64-dsf.testfile \ 32escapevel.result \ 33escapevel.testfile \ 34ext4.result \ 35ext4.testfile \ 36fit-map-data.result \ 37fit-map-data.testfile \ 38gedcom.result \ 39gedcom.testfile \ 40gpkg-1-zst.result \ 41gpkg-1-zst.testfile \ 42hello-racket_rkt.result \ 43hello-racket_rkt.testfile \ 44hddrawcopytool.result \ 45hddrawcopytool.testfile \ 46HWP2016.hwp.result \ 47HWP2016.hwp.testfile \ 48HWP2016.hwpx.zip.result \ 49HWP2016.hwpx.zip.testfile \ 50HWP97.hwp.result \ 51HWP97.hwp.testfile \ 52issue311docx.result \ 53issue311docx.testfile \ 54issue359xlsx.result \ 55issue359xlsx.testfile \ 56jpeg-text.result \ 57jpeg-text.testfile \ 58json1.result \ 59json1.testfile \ 60json2.result \ 61json2.testfile \ 62json3.result \ 63json3.testfile \ 64json4.result \ 65json4.testfile \ 66json5.result \ 67json5.testfile \ 68json6.result \ 69json6.testfile \ 70json7.result \ 71json7.testfile \ 72json8.result \ 73json8.testfile \ 74jsonlines1.result \ 75jsonlines1.testfile \ 76JW07022A.mp3.result \ 77JW07022A.mp3.testfile \ 78keyman-0.result \ 79keyman-0.testfile \ 80keyman-1.result \ 81keyman-1.testfile \ 82keyman-2.result \ 83keyman-2.testfile \ 84matilde.arm.result \ 85matilde.arm.testfile \ 86multiple-A.magic \ 87multiple-B.magic \ 88multiple.flags \ 89multiple.result \ 90multiple.testfile \ 91pcjr.result \ 92pcjr.testfile \ 93pgp-binary-key-v2-phil.result \ 94pgp-binary-key-v2-phil.testfile \ 95pgp-binary-key-v3-lutz.result \ 96pgp-binary-key-v3-lutz.testfile \ 97pgp-binary-key-v4-dsa.result \ 98pgp-binary-key-v4-dsa.testfile \ 99pgp-binary-key-v4-ecc-no-userid-secret.result \ 100pgp-binary-key-v4-ecc-no-userid-secret.testfile \ 101pgp-binary-key-v4-ecc-secret-key.result \ 102pgp-binary-key-v4-ecc-secret-key.testfile \ 103pgp-binary-key-v4-rsa-key.result \ 104pgp-binary-key-v4-rsa-key.testfile \ 105pgp-binary-key-v4-rsa-no-userid-secret.result \ 106pgp-binary-key-v4-rsa-no-userid-secret.testfile \ 107pgp-binary-key-v4-rsa-secret-key.result \ 108pgp-binary-key-v4-rsa-secret-key.testfile \ 109pnm1.result \ 110pnm1.testfile \ 111pnm2.result \ 112pnm2.testfile \ 113pnm3.result \ 114pnm3.testfile \ 115regex-eol.magic \ 116regex-eol.result \ 117regex-eol.testfile \ 118registry-pol.result \ 119registry-pol.testfile \ 120rpm-v3.0-bin-aarch64.result \ 121rpm-v3.0-bin-aarch64.testfile \ 122rpm-v3.0-bin-powerpc64.result \ 123rpm-v3.0-bin-powerpc64.testfile \ 124rpm-v3.0-bin-s390x.result \ 125rpm-v3.0-bin-s390x.testfile \ 126rpm-v3.0-bin-x86_64.result \ 127rpm-v3.0-bin-x86_64.testfile \ 128rpm-v3.0-src.result \ 129rpm-v3.0-src.testfile \ 130searchbug.magic \ 131searchbug.result \ 132searchbug.testfile \ 133uf2.result \ 134uf2.testfile \ 135utf16xmlsvg.testfile \ 136utf16xmlsvg.result \ 137xclbin.result \ 138xclbin.testfile \ 139zstd-3-skippable-frames.result \ 140zstd-dictionary-0.result \ 141zstd-dictionary-1.result \ 142zstd-dictionary-2.result \ 143zstd-skippable-frame-0.result \ 144zstd-skippable-frame-4.result \ 145zstd-skippable-frame-8.result \ 146zstd-skippable-frame-C.result \ 147zstd-v0.2-FF.result \ 148zstd-v0.2-FF.testfile \ 149zstd-v0.3-FF.result \ 150zstd-v0.3-FF.testfile \ 151zstd-v0.4-FF.result \ 152zstd-v0.4-FF.testfile \ 153zstd-v0.5-FF.result \ 154zstd-v0.5-FF.testfile \ 155zstd-v0.6-FF.result \ 156zstd-v0.6-FF.testfile \ 157zstd-v0.7-00.result \ 158zstd-v0.7-21.result \ 159zstd-v0.7-21.testfile \ 160zstd-v0.7-22.result \ 161zstd-v0.7-22.testfile \ 162zstd-v0.8-00.result \ 163zstd-v0.8-01.result \ 164zstd-v0.8-01.testfile \ 165zstd-v0.8-02.result \ 166zstd-v0.8-02.testfile \ 167zstd-v0.8-03.result \ 168zstd-v0.8-03.testfile \ 169zstd-v0.8-16.result \ 170zstd-v0.8-16.testfile \ 171zstd-v0.8-20.result \ 172zstd-v0.8-20.testfile \ 173zstd-v0.8-21.result \ 174zstd-v0.8-21.testfile \ 175zstd-v0.8-22.result \ 176zstd-v0.8-22.testfile \ 177zstd-v0.8-23.result \ 178zstd-v0.8-23.testfile \ 179zstd-v0.8-F4.result \ 180zstd-v0.8-F4.testfile \ 181zstd-v0.8-FF.result \ 182zstd-v0.8-FF.testfile 183 184T = $(top_srcdir)/tests 185check-local: 186 set -e; \ 187 for i in $T/*.testfile; do \ 188 t=$${i%%.testfile}; \ 189 echo Running test: $$t; \ 190 m=; \ 191 for j in $$(eval echo $${t}\*.magic); do \ 192 if [ -f "$$j" ]; then \ 193 if [ -z "$$m" ]; then \ 194 m=$$j; \ 195 else \ 196 m=$$m:$$j; \ 197 fi \ 198 fi \ 199 done; \ 200 if [ -z "$$m" ]; then \ 201 m=$(top_builddir)/magic/magic; \ 202 fi; \ 203 f=-e; \ 204 if [ -f $${t}.flags ]; then \ 205 f=$$f$$(cat $${t}.flags); \ 206 fi; \ 207 echo TZ=UTC MAGIC=$$m ./test $$f $$i $${t}.result; \ 208 TZ=UTC MAGIC=$$m ./test $$f $$i $${t}.result; \ 209 done 210