Fewer macros in xheader.c
[tar.git] / tests / Makefile.am
blob5b890b7c5770a27add829c0dca10262d53f3ebe9
1 # Makefile for GNU tar regression tests.
3 # Copyright 1996-2024 Free Software Foundation, Inc.
5 # This file is part of GNU tar.
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.
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.
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/>.
20 EXTRA_DIST = $(TESTSUITE_AT) \
21   testsuite package.m4 star/README star/quicktest.sh \
22   compress.m4
24 DISTCLEANFILES       = atconfig $(check_SCRIPTS)
25 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
26 CLEANFILES =
28 ## ------------ ##
29 ## package.m4.  ##
30 ## ------------ ##
32 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
33         {                                      \
34           echo '# Signature of the current package.'; \
35           echo 'm4_define([AT_PACKAGE_NAME],      [@PACKAGE_NAME@])'; \
36           echo 'm4_define([AT_PACKAGE_TARNAME],   [@PACKAGE_TARNAME@])'; \
37           echo 'm4_define([AT_PACKAGE_VERSION],   [@PACKAGE_VERSION@])'; \
38           echo 'm4_define([AT_PACKAGE_STRING],    [@PACKAGE_STRING@])'; \
39           echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
40         } >$(srcdir)/package.m4
44 ## ------------ ##
45 ## Test suite.  ##
46 ## ------------ ##
48 # You can generate the body of this macro with the following shell command:
49 # LC_ALL=C ls *.at */*.at | sed -e 's/^/ /' -e '$!s/$/\\/'
50 TESTSUITE_AT = \
51  T-cd.at\
52  T-dir00.at\
53  T-dir01.at\
54  T-empty.at\
55  T-mult.at\
56  T-nest.at\
57  T-nonl.at\
58  T-null.at\
59  T-null2.at\
60  T-rec.at\
61  T-recurse.at\
62  T-zfile.at\
63  acls01.at\
64  acls02.at\
65  acls03.at\
66  add-file.at\
67  append.at\
68  append01.at\
69  append02.at\
70  append03.at\
71  append04.at\
72  append05.at\
73  backup01.at\
74  capabs_raw01.at\
75  checkpoint/defaults.at\
76  checkpoint/dot-compat.at\
77  checkpoint/dot-int.at\
78  checkpoint/dot.at\
79  checkpoint/interval.at\
80  chtype.at\
81  comperr.at\
82  comprec.at\
83  delete01.at\
84  delete02.at\
85  delete03.at\
86  delete04.at\
87  delete05.at\
88  delete06.at\
89  difflink.at\
90  dirrem01.at\
91  dirrem02.at\
92  exclude.at\
93  exclude01.at\
94  exclude02.at\
95  exclude03.at\
96  exclude04.at\
97  exclude05.at\
98  exclude06.at\
99  exclude07.at\
100  exclude08.at\
101  exclude09.at\
102  exclude10.at\
103  exclude11.at\
104  exclude12.at\
105  exclude13.at\
106  exclude14.at\
107  exclude15.at\
108  exclude16.at\
109  exclude17.at\
110  exclude18.at\
111  exclude19.at\
112  exclude20.at\
113  extrac01.at\
114  extrac02.at\
115  extrac03.at\
116  extrac04.at\
117  extrac05.at\
118  extrac06.at\
119  extrac07.at\
120  extrac08.at\
121  extrac09.at\
122  extrac10.at\
123  extrac11.at\
124  extrac12.at\
125  extrac13.at\
126  extrac14.at\
127  extrac15.at\
128  extrac16.at\
129  extrac17.at\
130  extrac18.at\
131  extrac19.at\
132  extrac20.at\
133  extrac21.at\
134  extrac22.at\
135  extrac23.at\
136  extrac24.at\
137  extrac25.at\
138  extrac26.at\
139  extrac27.at\
140  filerem01.at\
141  filerem02.at\
142  grow.at\
143  gzip.at\
144  ignfail.at\
145  incr01.at\
146  incr02.at\
147  incr03.at\
148  incr04.at\
149  incr05.at\
150  incr06.at\
151  incr07.at\
152  incr08.at\
153  incr09.at\
154  incr10.at\
155  incr11.at\
156  incremental.at\
157  indexfile.at\
158  label01.at\
159  label02.at\
160  label03.at\
161  label04.at\
162  label05.at\
163  link01.at\
164  link02.at\
165  link03.at\
166  link04.at\
167  listed01.at\
168  listed02.at\
169  listed03.at\
170  listed04.at\
171  listed05.at\
172  long01.at\
173  longv7.at\
174  lustar01.at\
175  lustar02.at\
176  lustar03.at\
177  map.at\
178  multiv01.at\
179  multiv02.at\
180  multiv03.at\
181  multiv04.at\
182  multiv05.at\
183  multiv06.at\
184  multiv07.at\
185  multiv08.at\
186  multiv09.at\
187  multiv10.at\
188  numeric.at\
189  old.at\
190  onetop01.at\
191  onetop02.at\
192  onetop03.at\
193  onetop04.at\
194  onetop05.at\
195  opcomp01.at\
196  opcomp02.at\
197  opcomp03.at\
198  opcomp04.at\
199  opcomp05.at\
200  opcomp06.at\
201  options.at\
202  options02.at\
203  options03.at\
204  owner.at\
205  pipe.at\
206  positional01.at\
207  positional02.at\
208  positional03.at\
209  recurs02.at\
210  recurse.at\
211  remfiles01.at\
212  remfiles02.at\
213  remfiles03.at\
214  remfiles04a.at\
215  remfiles04b.at\
216  remfiles04c.at\
217  remfiles05a.at\
218  remfiles05b.at\
219  remfiles05c.at\
220  remfiles06a.at\
221  remfiles06b.at\
222  remfiles06c.at\
223  remfiles07a.at\
224  remfiles07b.at\
225  remfiles07c.at\
226  remfiles08a.at\
227  remfiles08b.at\
228  remfiles08c.at\
229  remfiles09a.at\
230  remfiles09b.at\
231  remfiles09c.at\
232  remfiles10.at\
233  rename01.at\
234  rename02.at\
235  rename03.at\
236  rename04.at\
237  rename05.at\
238  rename06.at\
239  same-order01.at\
240  same-order02.at\
241  selacl01.at\
242  selnx01.at\
243  shortfile.at\
244  shortrec.at\
245  shortupd.at\
246  sigpipe.at\
247  sparse01.at\
248  sparse02.at\
249  sparse03.at\
250  sparse04.at\
251  sparse05.at\
252  sparse06.at\
253  sparse07.at\
254  sparsemv.at\
255  sparsemvp.at\
256  spmvp00.at\
257  spmvp01.at\
258  spmvp10.at\
259  sptrcreat.at\
260  sptrdiff00.at\
261  sptrdiff01.at\
262  star/gtarfail.at\
263  star/gtarfail2.at\
264  star/multi-fail.at\
265  star/pax-big-10g.at\
266  star/ustar-big-2g.at\
267  star/ustar-big-8g.at\
268  testsuite.at\
269  time01.at\
270  time02.at\
271  truncate.at\
272  update.at\
273  update01.at\
274  update02.at\
275  update03.at\
276  update04.at\
277  verbose.at\
278  verify.at\
279  version.at\
280  volsize.at\
281  volume.at\
282  xattr01.at\
283  xattr02.at\
284  xattr03.at\
285  xattr04.at\
286  xattr05.at\
287  xattr06.at\
288  xattr07.at\
289  xattr08.at\
290  xform-h.at\
291  xform01.at\
292  xform02.at\
293  xform03.at\
294  xform04.at
296 distclean-local:
297         -rm -rf download
299 TESTSUITE = $(srcdir)/testsuite
301 AUTOTEST = $(AUTOM4TE) --language=autotest
302 $(TESTSUITE): compress.m4 package.m4 $(TESTSUITE_AT)
303         $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
304         mv $@.tmp $@
306 atconfig: $(top_builddir)/config.status
307         cd $(top_builddir) && ./config.status tests/$@
309 clean-local:
310         test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
312 check-local: atconfig atlocal $(TESTSUITE)
313         $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
315 check-full:
316         FULL_TEST=1 $(MAKE) check
318 #check_SCRIPTS = tar
320 # Run the test suite on the *installed* tree.
321 installcheck-local: $(check_PROGRAMS)
322         $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
325 ## ------------ ##
326 ## genfile      ##
327 ## ------------ ##
329 check_PROGRAMS = genfile checkseekhole ckmtime
331 genfile_SOURCES = genfile.c argcv.c argcv.h
332 checkseekhole_SOURCES = checkseekhole.c
334 localedir = $(datadir)/locale
335 AM_CPPFLAGS = \
336  -I$(top_srcdir)/gnu\
337  -I../gnu\
338  -I$(top_srcdir)/gnu\
339  -I$(top_srcdir)/lib\
340  -DLOCALEDIR=\"$(localedir)\"
342 LDADD = ../gnu/libgnu.a\
343  $(LIB_ACL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)\
344  $(LIB_GETRANDOM) $(LIB_HARD_LOCALE) $(FILE_HAS_ACL_LIB) $(LIB_MBRTOWC)\
345  $(LIB_SELINUX) $(LIB_SETLOCALE_NULL) \
346  $(LIBINTL) $(LIBICONV)