Makefile.am 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. check_PROGRAMS = test
  2. test_LDADD = $(top_builddir)/src/libmagic.la
  3. test_CPPFLAGS = -I$(top_builddir)/src
  4. EXTRA_DIST = \
  5. regex-eol.magic \
  6. CVE-2014-1943.testfile \
  7. JW07022A.mp3.testfile \
  8. escapevel.testfile \
  9. fit-map-data.testfile \
  10. gedcom.testfile \
  11. hddrawcopytool.testfile \
  12. issue311docx.testfile \
  13. issue359xlsx.testfile \
  14. json1.testfile \
  15. json2.testfile \
  16. json3.testfile \
  17. regex-eol.testfile \
  18. zstd-v0.2-FF.testfile \
  19. zstd-v0.3-FF.testfile \
  20. zstd-v0.4-FF.testfile \
  21. zstd-v0.5-FF.testfile \
  22. zstd-v0.6-FF.testfile \
  23. zstd-v0.7-21.testfile \
  24. zstd-v0.7-22.testfile \
  25. zstd-v0.8-01.testfile \
  26. zstd-v0.8-02.testfile \
  27. zstd-v0.8-03.testfile \
  28. zstd-v0.8-16.testfile \
  29. zstd-v0.8-20.testfile \
  30. zstd-v0.8-21.testfile \
  31. zstd-v0.8-22.testfile \
  32. zstd-v0.8-23.testfile \
  33. zstd-v0.8-F4.testfile \
  34. zstd-v0.8-FF.testfile \
  35. CVE-2014-1943.result \
  36. JW07022A.mp3.result \
  37. escapevel.result \
  38. fit-map-data.result \
  39. gedcom.result \
  40. hddrawcopytool.result \
  41. issue311docx.result \
  42. issue359xlsx.result \
  43. json1.result \
  44. json2.result \
  45. json3.result \
  46. regex-eol.result \
  47. zstd-3-skippable-frames.result \
  48. zstd-dictionary-0.result \
  49. zstd-dictionary-1.result \
  50. zstd-dictionary-2.result \
  51. zstd-skippable-frame-0.result \
  52. zstd-skippable-frame-4.result \
  53. zstd-skippable-frame-8.result \
  54. zstd-skippable-frame-C.result \
  55. zstd-v0.2-FF.result \
  56. zstd-v0.3-FF.result \
  57. zstd-v0.4-FF.result \
  58. zstd-v0.5-FF.result \
  59. zstd-v0.6-FF.result \
  60. zstd-v0.7-00.result \
  61. zstd-v0.7-21.result \
  62. zstd-v0.7-22.result \
  63. zstd-v0.8-00.result \
  64. zstd-v0.8-01.result \
  65. zstd-v0.8-02.result \
  66. zstd-v0.8-03.result \
  67. zstd-v0.8-16.result \
  68. zstd-v0.8-20.result \
  69. zstd-v0.8-21.result \
  70. zstd-v0.8-22.result \
  71. zstd-v0.8-23.result \
  72. zstd-v0.8-F4.result \
  73. zstd-v0.8-FF.result
  74. T = $(top_srcdir)/tests
  75. check-local:
  76. MAGIC=$(top_builddir)/magic/magic ./test
  77. set -e; \
  78. for i in $T/*.testfile; do \
  79. echo Running test: $$i; \
  80. if [ -f $${i%%.testfile}.magic ]; then \
  81. m=$${i%%.testfile}.magic; \
  82. else \
  83. m=$(top_builddir)/magic/magic; \
  84. fi; \
  85. TZ=UTC MAGIC=$$m ./test $$i $${i%%.testfile}.result; \
  86. done