Makefile.am 2.9 KB

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