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