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