Makefile.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. CVE-2014-1943.result \
  12. CVE-2014-1943.testfile \
  13. JW07022A.mp3.result \
  14. JW07022A.mp3.testfile \
  15. bcachefs.result \
  16. bcachefs.testfile \
  17. cl8m8ocofedso.result \
  18. cl8m8ocofedso.testfile \
  19. cmd1.testfile \
  20. cmd1.result \
  21. cmd2.testfile \
  22. cmd2.result \
  23. cmd3.testfile \
  24. cmd3.result \
  25. cmd4.testfile \
  26. cmd4.result \
  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. hddrawcopytool.result \
  42. hddrawcopytool.testfile \
  43. issue311docx.result \
  44. issue311docx.testfile \
  45. issue359xlsx.result \
  46. issue359xlsx.testfile \
  47. jpeg-text.result \
  48. jpeg-text.testfile \
  49. json1.result \
  50. json1.testfile \
  51. json2.result \
  52. json2.testfile \
  53. json3.result \
  54. json3.testfile \
  55. json4.result \
  56. json4.testfile \
  57. json5.result \
  58. json5.testfile \
  59. json6.result \
  60. json6.testfile \
  61. json7.result \
  62. json7.testfile \
  63. json8.result \
  64. json8.testfile \
  65. jsonlines1.testfile \
  66. jsonlines1.result \
  67. matilde.arm.result \
  68. matilde.arm.testfile \
  69. multiple-A.magic \
  70. multiple-B.magic \
  71. multiple.flags \
  72. multiple.result \
  73. multiple.testfile \
  74. pcjr.result \
  75. pcjr.testfile \
  76. pgp-binary-key-v2-phil.result \
  77. pgp-binary-key-v2-phil.testfile \
  78. pgp-binary-key-v3-lutz.result \
  79. pgp-binary-key-v3-lutz.testfile \
  80. pgp-binary-key-v4-dsa.result \
  81. pgp-binary-key-v4-dsa.testfile \
  82. pgp-binary-key-v4-ecc-no-userid-secret.result \
  83. pgp-binary-key-v4-ecc-no-userid-secret.testfile \
  84. pgp-binary-key-v4-ecc-secret-key.result \
  85. pgp-binary-key-v4-ecc-secret-key.testfile \
  86. pgp-binary-key-v4-rsa-key.result \
  87. pgp-binary-key-v4-rsa-key.testfile \
  88. pgp-binary-key-v4-rsa-no-userid-secret.result \
  89. pgp-binary-key-v4-rsa-no-userid-secret.testfile \
  90. pgp-binary-key-v4-rsa-secret-key.result \
  91. pgp-binary-key-v4-rsa-secret-key.testfile \
  92. pnm1.result \
  93. pnm1.testfile \
  94. pnm2.result \
  95. pnm2.testfile \
  96. pnm3.result \
  97. pnm3.testfile \
  98. regex-eol.magic \
  99. regex-eol.result \
  100. regex-eol.testfile \
  101. uf2.result \
  102. uf2.testfile \
  103. xclbin.result \
  104. xclbin.testfile \
  105. zstd-3-skippable-frames.result \
  106. zstd-dictionary-0.result \
  107. zstd-dictionary-1.result \
  108. zstd-dictionary-2.result \
  109. zstd-skippable-frame-0.result \
  110. zstd-skippable-frame-4.result \
  111. zstd-skippable-frame-8.result \
  112. zstd-skippable-frame-C.result \
  113. zstd-v0.2-FF.result \
  114. zstd-v0.2-FF.testfile \
  115. zstd-v0.3-FF.result \
  116. zstd-v0.3-FF.testfile \
  117. zstd-v0.4-FF.result \
  118. zstd-v0.4-FF.testfile \
  119. zstd-v0.5-FF.result \
  120. zstd-v0.5-FF.testfile \
  121. zstd-v0.6-FF.result \
  122. zstd-v0.6-FF.testfile \
  123. zstd-v0.7-00.result \
  124. zstd-v0.7-21.result \
  125. zstd-v0.7-21.testfile \
  126. zstd-v0.7-22.result \
  127. zstd-v0.7-22.testfile \
  128. zstd-v0.8-00.result \
  129. zstd-v0.8-01.result \
  130. zstd-v0.8-01.testfile \
  131. zstd-v0.8-02.result \
  132. zstd-v0.8-02.testfile \
  133. zstd-v0.8-03.result \
  134. zstd-v0.8-03.testfile \
  135. zstd-v0.8-16.result \
  136. zstd-v0.8-16.testfile \
  137. zstd-v0.8-20.result \
  138. zstd-v0.8-20.testfile \
  139. zstd-v0.8-21.result \
  140. zstd-v0.8-21.testfile \
  141. zstd-v0.8-22.result \
  142. zstd-v0.8-22.testfile \
  143. zstd-v0.8-23.result \
  144. zstd-v0.8-23.testfile \
  145. zstd-v0.8-F4.result \
  146. zstd-v0.8-F4.testfile \
  147. zstd-v0.8-FF.result \
  148. zstd-v0.8-FF.testfile
  149. T = $(top_srcdir)/tests
  150. check-local:
  151. set -e; \
  152. for i in $T/*.testfile; do \
  153. t=$${i%%.testfile}; \
  154. echo Running test: $$t; \
  155. m=; \
  156. for j in $$(eval echo $${t}\*.magic); do \
  157. if [ -f "$$j" ]; then \
  158. if [ -z "$$m" ]; then \
  159. m=$$j; \
  160. else \
  161. m=$$m:$$j; \
  162. fi \
  163. fi \
  164. done; \
  165. if [ -z "$$m" ]; then \
  166. m=$(top_builddir)/magic/magic; \
  167. fi; \
  168. f=-e; \
  169. if [ -f $${t}.flags ]; then \
  170. f=$$f$$(cat $${t}.flags); \
  171. fi; \
  172. echo TZ=UTC MAGIC=$$m ./test $$f $$i $${t}.result; \
  173. TZ=UTC MAGIC=$$m ./test $$f $$i $${t}.result; \
  174. done