Makefile.am 4.1 KB

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