2009-01-02 02:57:16 +00:00
|
|
|
check_PROGRAMS = test
|
|
|
|
test_LDADD = $(top_builddir)/src/libmagic.la
|
2017-09-17 15:57:06 +00:00
|
|
|
test_CPPFLAGS = -I$(top_builddir)/src
|
2009-01-02 02:57:16 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2019-11-10 03:44:32 +00:00
|
|
|
regex-eol.magic \
|
|
|
|
CVE-2014-1943.testfile \
|
|
|
|
JW07022A.mp3.testfile \
|
2014-06-24 21:24:48 +00:00
|
|
|
escapevel.testfile \
|
2019-11-10 03:44:32 +00:00
|
|
|
fit-map-data.testfile \
|
2014-06-24 21:24:48 +00:00
|
|
|
gedcom.testfile \
|
2017-09-17 15:57:06 +00:00
|
|
|
hddrawcopytool.testfile \
|
2018-07-29 05:53:49 +00:00
|
|
|
issue311docx.testfile \
|
2019-11-10 03:44:32 +00:00
|
|
|
issue359xlsx.testfile \
|
|
|
|
json1.testfile \
|
|
|
|
json2.testfile \
|
|
|
|
json3.testfile \
|
|
|
|
regex-eol.testfile \
|
|
|
|
zstd-v0.2-FF.testfile \
|
|
|
|
zstd-v0.3-FF.testfile \
|
|
|
|
zstd-v0.4-FF.testfile \
|
|
|
|
zstd-v0.5-FF.testfile \
|
|
|
|
zstd-v0.6-FF.testfile \
|
|
|
|
zstd-v0.7-21.testfile \
|
|
|
|
zstd-v0.7-22.testfile \
|
|
|
|
zstd-v0.8-01.testfile \
|
|
|
|
zstd-v0.8-02.testfile \
|
|
|
|
zstd-v0.8-03.testfile \
|
|
|
|
zstd-v0.8-16.testfile \
|
|
|
|
zstd-v0.8-20.testfile \
|
|
|
|
zstd-v0.8-21.testfile \
|
|
|
|
zstd-v0.8-22.testfile \
|
|
|
|
zstd-v0.8-23.testfile \
|
|
|
|
zstd-v0.8-F4.testfile \
|
|
|
|
zstd-v0.8-FF.testfile \
|
|
|
|
CVE-2014-1943.result \
|
2018-07-29 05:53:49 +00:00
|
|
|
JW07022A.mp3.result \
|
2019-11-10 03:44:32 +00:00
|
|
|
escapevel.result \
|
|
|
|
fit-map-data.result \
|
|
|
|
gedcom.result \
|
|
|
|
hddrawcopytool.result \
|
|
|
|
issue311docx.result \
|
|
|
|
issue359xlsx.result \
|
|
|
|
json1.result \
|
|
|
|
json2.result \
|
|
|
|
json3.result \
|
|
|
|
regex-eol.result \
|
|
|
|
zstd-3-skippable-frames.result \
|
|
|
|
zstd-dictionary-0.result \
|
|
|
|
zstd-dictionary-1.result \
|
|
|
|
zstd-dictionary-2.result \
|
|
|
|
zstd-skippable-frame-0.result \
|
|
|
|
zstd-skippable-frame-4.result \
|
|
|
|
zstd-skippable-frame-8.result \
|
|
|
|
zstd-skippable-frame-C.result \
|
|
|
|
zstd-v0.2-FF.result \
|
|
|
|
zstd-v0.3-FF.result \
|
|
|
|
zstd-v0.4-FF.result \
|
|
|
|
zstd-v0.5-FF.result \
|
|
|
|
zstd-v0.6-FF.result \
|
|
|
|
zstd-v0.7-00.result \
|
|
|
|
zstd-v0.7-21.result \
|
|
|
|
zstd-v0.7-22.result \
|
|
|
|
zstd-v0.8-00.result \
|
|
|
|
zstd-v0.8-01.result \
|
|
|
|
zstd-v0.8-02.result \
|
|
|
|
zstd-v0.8-03.result \
|
|
|
|
zstd-v0.8-16.result \
|
|
|
|
zstd-v0.8-20.result \
|
|
|
|
zstd-v0.8-21.result \
|
|
|
|
zstd-v0.8-22.result \
|
|
|
|
zstd-v0.8-23.result \
|
|
|
|
zstd-v0.8-F4.result \
|
|
|
|
zstd-v0.8-FF.result
|
2009-01-02 02:57:16 +00:00
|
|
|
|
|
|
|
T = $(top_srcdir)/tests
|
|
|
|
check-local:
|
|
|
|
MAGIC=$(top_builddir)/magic/magic ./test
|
2019-11-10 03:44:32 +00:00
|
|
|
set -e; \
|
|
|
|
for i in $T/*.testfile; do \
|
|
|
|
echo Running test: $$i; \
|
|
|
|
if [ -f $${i%%.testfile}.magic ]; then \
|
|
|
|
m=$${i%%.testfile}.magic; \
|
|
|
|
else \
|
|
|
|
m=$(top_builddir)/magic/magic; \
|
|
|
|
fi; \
|
|
|
|
TZ=UTC MAGIC=$$m ./test $$i $${i%%.testfile}.result; \
|
|
|
|
done
|