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