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