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