Makefile.am 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. dsd64-dff.result \
  20. dsd64-dff.testfile \
  21. dsd64-dsf.result \
  22. dsd64-dsf.testfile \
  23. escapevel.result \
  24. escapevel.testfile \
  25. ext4.result \
  26. ext4.testfile \
  27. fit-map-data.result \
  28. fit-map-data.testfile \
  29. gedcom.result \
  30. gedcom.testfile \
  31. gpkg-1-zst.result \
  32. gpkg-1-zst.testfile \
  33. hddrawcopytool.result \
  34. hddrawcopytool.testfile \
  35. issue311docx.result \
  36. issue311docx.testfile \
  37. issue359xlsx.result \
  38. issue359xlsx.testfile \
  39. json1.result \
  40. json1.testfile \
  41. json2.result \
  42. json2.testfile \
  43. json3.result \
  44. json3.testfile \
  45. json4.result \
  46. json4.testfile \
  47. json5.result \
  48. json5.testfile \
  49. json6.result \
  50. json6.testfile \
  51. json7.result \
  52. json7.testfile \
  53. json8.result \
  54. json8.testfile \
  55. jsonlines1.testfile \
  56. jsonlines1.result \
  57. matilde.arm.result \
  58. matilde.arm.testfile \
  59. pcjr.result \
  60. pcjr.testfile \
  61. pgp-binary-key-v2-phil.result \
  62. pgp-binary-key-v2-phil.testfile \
  63. pgp-binary-key-v3-lutz.result \
  64. pgp-binary-key-v3-lutz.testfile \
  65. pgp-binary-key-v4-dsa.result \
  66. pgp-binary-key-v4-dsa.testfile \
  67. pgp-binary-key-v4-ecc-no-userid-secret.result \
  68. pgp-binary-key-v4-ecc-no-userid-secret.testfile \
  69. pgp-binary-key-v4-ecc-secret-key.result \
  70. pgp-binary-key-v4-ecc-secret-key.testfile \
  71. pgp-binary-key-v4-rsa-key.result \
  72. pgp-binary-key-v4-rsa-key.testfile \
  73. pgp-binary-key-v4-rsa-no-userid-secret.result \
  74. pgp-binary-key-v4-rsa-no-userid-secret.testfile \
  75. pgp-binary-key-v4-rsa-secret-key.result \
  76. pgp-binary-key-v4-rsa-secret-key.testfile \
  77. regex-eol.magic \
  78. regex-eol.result \
  79. regex-eol.testfile \
  80. uf2.result \
  81. uf2.testfile \
  82. zstd-3-skippable-frames.result \
  83. zstd-dictionary-0.result \
  84. zstd-dictionary-1.result \
  85. zstd-dictionary-2.result \
  86. zstd-skippable-frame-0.result \
  87. zstd-skippable-frame-4.result \
  88. zstd-skippable-frame-8.result \
  89. zstd-skippable-frame-C.result \
  90. zstd-v0.2-FF.result \
  91. zstd-v0.2-FF.testfile \
  92. zstd-v0.3-FF.result \
  93. zstd-v0.3-FF.testfile \
  94. zstd-v0.4-FF.result \
  95. zstd-v0.4-FF.testfile \
  96. zstd-v0.5-FF.result \
  97. zstd-v0.5-FF.testfile \
  98. zstd-v0.6-FF.result \
  99. zstd-v0.6-FF.testfile \
  100. zstd-v0.7-00.result \
  101. zstd-v0.7-21.result \
  102. zstd-v0.7-21.testfile \
  103. zstd-v0.7-22.result \
  104. zstd-v0.7-22.testfile \
  105. zstd-v0.8-00.result \
  106. zstd-v0.8-01.result \
  107. zstd-v0.8-01.testfile \
  108. zstd-v0.8-02.result \
  109. zstd-v0.8-02.testfile \
  110. zstd-v0.8-03.result \
  111. zstd-v0.8-03.testfile \
  112. zstd-v0.8-16.result \
  113. zstd-v0.8-16.testfile \
  114. zstd-v0.8-20.result \
  115. zstd-v0.8-20.testfile \
  116. zstd-v0.8-21.result \
  117. zstd-v0.8-21.testfile \
  118. zstd-v0.8-22.result \
  119. zstd-v0.8-22.testfile \
  120. zstd-v0.8-23.result \
  121. zstd-v0.8-23.testfile \
  122. zstd-v0.8-F4.result \
  123. zstd-v0.8-F4.testfile \
  124. zstd-v0.8-FF.result \
  125. zstd-v0.8-FF.testfile
  126. T = $(top_srcdir)/tests
  127. check-local:
  128. MAGIC=$(top_builddir)/magic/magic ./test
  129. set -e; \
  130. for i in $T/*.testfile; do \
  131. echo Running test: $$i; \
  132. if [ -f $${i%%.testfile}.magic ]; then \
  133. m=$${i%%.testfile}.magic; \
  134. else \
  135. m=$(top_builddir)/magic/magic; \
  136. fi; \
  137. TZ=UTC MAGIC=$$m ./test $$i $${i%%.testfile}.result; \
  138. done