]> Dogcows Code - chaz/tar/blob - tests/Makefile.am
Options to control option handling in file lists.
[chaz/tar] / tests / Makefile.am
1 # Makefile for GNU tar regression tests.
2
3 # Copyright 1996-1997, 1999-2001, 2003-2007, 2009, 2012-2015 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-null2.at\
51 T-rec.at\
52 T-zfile.at\
53 T-nonl.at\
54 T-mult.at\
55 T-nest.at\
56 testsuite.at\
57 append.at\
58 append01.at\
59 append02.at\
60 append03.at\
61 append04.at\
62 backup01.at\
63 chtype.at\
64 comprec.at\
65 delete01.at\
66 delete02.at\
67 delete03.at\
68 delete04.at\
69 delete05.at\
70 exclude.at\
71 exclude01.at\
72 exclude02.at\
73 exclude03.at\
74 exclude04.at\
75 exclude05.at\
76 exclude06.at\
77 exclude07.at\
78 exclude08.at\
79 exclude09.at\
80 exclude10.at\
81 exclude11.at\
82 exclude12.at\
83 exclude13.at\
84 exclude14.at\
85 exclude15.at\
86 exclude16.at\
87 extrac01.at\
88 extrac02.at\
89 extrac03.at\
90 extrac04.at\
91 extrac05.at\
92 extrac06.at\
93 extrac07.at\
94 extrac08.at\
95 extrac09.at\
96 extrac10.at\
97 extrac11.at\
98 extrac12.at\
99 extrac13.at\
100 extrac14.at\
101 extrac15.at\
102 extrac16.at\
103 extrac17.at\
104 extrac18.at\
105 extrac19.at\
106 filerem01.at\
107 filerem02.at\
108 gzip.at\
109 grow.at\
110 incremental.at\
111 incr01.at\
112 incr02.at\
113 incr03.at\
114 incr04.at\
115 incr05.at\
116 incr06.at\
117 incr07.at\
118 incr08.at\
119 incr09.at\
120 incr10.at\
121 indexfile.at\
122 ignfail.at\
123 iotty.at\
124 label01.at\
125 label02.at\
126 label03.at\
127 label04.at\
128 label05.at\
129 link01.at\
130 link02.at\
131 link03.at\
132 link04.at\
133 listed01.at\
134 listed02.at\
135 listed03.at\
136 listed04.at\
137 listed05.at\
138 long01.at\
139 longv7.at\
140 lustar01.at\
141 lustar02.at\
142 lustar03.at\
143 multiv01.at\
144 multiv02.at\
145 multiv03.at\
146 multiv04.at\
147 multiv05.at\
148 multiv06.at\
149 multiv07.at\
150 multiv08.at\
151 old.at\
152 onetop01.at\
153 onetop02.at\
154 onetop03.at\
155 onetop04.at\
156 opcomp01.at\
157 opcomp02.at\
158 opcomp03.at\
159 opcomp04.at\
160 opcomp05.at\
161 opcomp06.at\
162 options.at\
163 options02.at\
164 owner.at\
165 pipe.at\
166 recurse.at\
167 recurs02.at\
168 rename01.at\
169 rename02.at\
170 rename03.at\
171 rename04.at\
172 rename05.at\
173 remfiles01.at\
174 remfiles02.at\
175 remfiles03.at\
176 remfiles04a.at\
177 remfiles04b.at\
178 remfiles04c.at\
179 remfiles05a.at\
180 remfiles05b.at\
181 remfiles05c.at\
182 remfiles06a.at\
183 remfiles06b.at\
184 remfiles06c.at\
185 remfiles07a.at\
186 remfiles07b.at\
187 remfiles07c.at\
188 remfiles08a.at\
189 remfiles08b.at\
190 remfiles08c.at\
191 remfiles09a.at\
192 remfiles09b.at\
193 remfiles09c.at\
194 remfiles10.at\
195 same-order01.at\
196 same-order02.at\
197 shortfile.at\
198 shortupd.at\
199 shortrec.at\
200 sigpipe.at\
201 sparse01.at\
202 sparse02.at\
203 sparse03.at\
204 sparse04.at\
205 sparse05.at\
206 sparsemv.at\
207 sparsemvp.at\
208 spmvp00.at\
209 spmvp01.at\
210 spmvp10.at\
211 time01.at\
212 truncate.at\
213 update.at\
214 update01.at\
215 update02.at\
216 volsize.at\
217 volume.at\
218 verbose.at\
219 verify.at\
220 version.at\
221 xform-h.at\
222 xform01.at\
223 star/gtarfail.at\
224 star/gtarfail2.at\
225 star/multi-fail.at\
226 star/ustar-big-2g.at\
227 star/ustar-big-8g.at\
228 star/pax-big-10g.at\
229 xattr01.at\
230 xattr02.at\
231 xattr03.at\
232 xattr04.at\
233 xattr05.at\
234 acls01.at\
235 acls02.at\
236 acls03.at\
237 selnx01.at\
238 selacl01.at\
239 capabs_raw01.at
240
241 TESTSUITE = $(srcdir)/testsuite
242
243 AUTOTEST = $(AUTOM4TE) --language=autotest
244 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
245 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
246 mv $@.tmp $@
247
248 atconfig: $(top_builddir)/config.status
249 cd $(top_builddir) && ./config.status tests/$@
250
251 clean-local:
252 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
253
254 check-local: atconfig atlocal $(TESTSUITE)
255 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
256
257 check-full:
258 FULL_TEST=1 $(MAKE) check
259
260 #check_SCRIPTS = tar
261
262 # Run the test suite on the *installed* tree.
263 installcheck-local: $(check_PROGRAMS)
264 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
265
266
267 ## ------------ ##
268 ## genfile ##
269 ## ------------ ##
270
271 check_PROGRAMS = genfile
272
273 if TAR_COND_GRANTPT
274 check_PROGRAMS += ttyemu
275 endif
276
277 genfile_SOURCES = genfile.c argcv.c argcv.h
278
279 ttyemu_SOURCES = ttyemu.c
280
281 localedir = $(datadir)/locale
282 AM_CPPFLAGS = \
283 -I$(top_srcdir)/gnu\
284 -I../gnu\
285 -I$(top_srcdir)/gnu\
286 -I$(top_srcdir)/lib\
287 -DLOCALEDIR=\"$(localedir)\"
288
289 LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)
This page took 0.038224 seconds and 4 git commands to generate.