]> Dogcows Code - chaz/tar/blob - tests/Makefile.am
f5b643746d8330865c56a1fb605ab796e99d4432
[chaz/tar] / tests / Makefile.am
1 # Makefile for GNU tar regression tests.
2
3 # Copyright 1996-1997, 1999-2001, 2003-2007, 2009, 2012-2013 Free Software
4
5 # This file is part of GNU tar.
6
7 # GNU tar is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11
12 # GNU tar is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 star/README star/quicktest.sh
21 DISTCLEANFILES = atconfig $(check_SCRIPTS)
22 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
23
24 ## ------------ ##
25 ## package.m4. ##
26 ## ------------ ##
27
28 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
29 { \
30 echo '# Signature of the current package.'; \
31 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
32 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
33 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
34 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
35 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
36 } >$(srcdir)/package.m4
37
38 #
39
40 ## ------------ ##
41 ## Test suite. ##
42 ## ------------ ##
43
44 TESTSUITE_AT = \
45 T-cd.at\
46 T-dir00.at\
47 T-dir01.at\
48 T-empty.at\
49 T-null.at\
50 T-rec.at\
51 T-zfile.at\
52 T-nonl.at\
53 T-mult.at\
54 T-nest.at\
55 testsuite.at\
56 append.at\
57 append01.at\
58 append02.at\
59 append03.at\
60 append04.at\
61 backup01.at\
62 chtype.at\
63 comprec.at\
64 delete01.at\
65 delete02.at\
66 delete03.at\
67 delete04.at\
68 delete05.at\
69 exclude.at\
70 exclude01.at\
71 exclude02.at\
72 exclude03.at\
73 exclude04.at\
74 exclude05.at\
75 exclude06.at\
76 exclude07.at\
77 exclude08.at\
78 exclude09.at\
79 exclude10.at\
80 exclude11.at\
81 exclude12.at\
82 exclude13.at\
83 exclude14.at\
84 exclude15.at\
85 exclude16.at\
86 extrac01.at\
87 extrac02.at\
88 extrac03.at\
89 extrac04.at\
90 extrac05.at\
91 extrac06.at\
92 extrac07.at\
93 extrac08.at\
94 extrac09.at\
95 extrac10.at\
96 extrac11.at\
97 extrac12.at\
98 extrac13.at\
99 extrac14.at\
100 extrac15.at\
101 extrac16.at\
102 extrac17.at\
103 extrac18.at\
104 extrac19.at\
105 filerem01.at\
106 filerem02.at\
107 gzip.at\
108 grow.at\
109 incremental.at\
110 incr01.at\
111 incr02.at\
112 incr03.at\
113 incr04.at\
114 incr05.at\
115 incr06.at\
116 incr07.at\
117 incr08.at\
118 incr09.at\
119 incr10.at\
120 indexfile.at\
121 ignfail.at\
122 iotty.at\
123 label01.at\
124 label02.at\
125 label03.at\
126 label04.at\
127 label05.at\
128 link01.at\
129 link02.at\
130 link03.at\
131 link04.at\
132 listed01.at\
133 listed02.at\
134 listed03.at\
135 listed04.at\
136 listed05.at\
137 long01.at\
138 longv7.at\
139 lustar01.at\
140 lustar02.at\
141 lustar03.at\
142 multiv01.at\
143 multiv02.at\
144 multiv03.at\
145 multiv04.at\
146 multiv05.at\
147 multiv06.at\
148 multiv07.at\
149 multiv08.at\
150 old.at\
151 onetop01.at\
152 onetop02.at\
153 onetop03.at\
154 onetop04.at\
155 opcomp01.at\
156 opcomp02.at\
157 opcomp03.at\
158 opcomp04.at\
159 opcomp05.at\
160 opcomp06.at\
161 options.at\
162 options02.at\
163 owner.at\
164 pipe.at\
165 recurse.at\
166 recurs02.at\
167 rename01.at\
168 rename02.at\
169 rename03.at\
170 rename04.at\
171 rename05.at\
172 remfiles01.at\
173 remfiles02.at\
174 remfiles03.at\
175 remfiles04a.at\
176 remfiles04b.at\
177 remfiles04c.at\
178 remfiles05a.at\
179 remfiles05b.at\
180 remfiles05c.at\
181 remfiles06a.at\
182 remfiles06b.at\
183 remfiles06c.at\
184 remfiles07a.at\
185 remfiles07b.at\
186 remfiles07c.at\
187 remfiles08a.at\
188 remfiles08b.at\
189 remfiles08c.at\
190 remfiles09a.at\
191 remfiles09b.at\
192 remfiles09c.at\
193 remfiles10.at\
194 same-order01.at\
195 same-order02.at\
196 shortfile.at\
197 shortupd.at\
198 shortrec.at\
199 sigpipe.at\
200 sparse01.at\
201 sparse02.at\
202 sparse03.at\
203 sparse04.at\
204 sparse05.at\
205 sparsemv.at\
206 sparsemvp.at\
207 spmvp00.at\
208 spmvp01.at\
209 spmvp10.at\
210 time01.at\
211 truncate.at\
212 update.at\
213 update01.at\
214 update02.at\
215 volsize.at\
216 volume.at\
217 verbose.at\
218 verify.at\
219 version.at\
220 xform-h.at\
221 xform01.at\
222 star/gtarfail.at\
223 star/gtarfail2.at\
224 star/multi-fail.at\
225 star/ustar-big-2g.at\
226 star/ustar-big-8g.at\
227 star/pax-big-10g.at\
228 xattr01.at\
229 xattr02.at\
230 xattr03.at\
231 xattr04.at\
232 xattr05.at\
233 acls01.at\
234 acls02.at\
235 acls03.at\
236 selnx01.at\
237 selacl01.at\
238 capabs_raw01.at
239
240 TESTSUITE = $(srcdir)/testsuite
241
242 AUTOTEST = $(AUTOM4TE) --language=autotest
243 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
244 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
245 mv $@.tmp $@
246
247 atconfig: $(top_builddir)/config.status
248 cd $(top_builddir) && ./config.status tests/$@
249
250 clean-local:
251 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
252
253 check-local: atconfig atlocal $(TESTSUITE)
254 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
255
256 check-full:
257 FULL_TEST=1 $(MAKE) check
258
259 #check_SCRIPTS = tar
260
261 # Run the test suite on the *installed* tree.
262 installcheck-local: $(check_PROGRAMS)
263 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
264
265
266 ## ------------ ##
267 ## genfile ##
268 ## ------------ ##
269
270 check_PROGRAMS = genfile
271
272 if TAR_COND_GRANTPT
273 check_PROGRAMS += ttyemu
274 endif
275
276 genfile_SOURCES = genfile.c argcv.c argcv.h
277
278 ttyemu_SOURCES = ttyemu.c
279
280 localedir = $(datadir)/locale
281 AM_CPPFLAGS = \
282 -I$(top_srcdir)/gnu\
283 -I../gnu\
284 -I$(top_srcdir)/gnu\
285 -I$(top_srcdir)/lib\
286 -DLOCALEDIR=\"$(localedir)\"
287
288 LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)
This page took 0.041713 seconds and 3 git commands to generate.