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