Minor fix.
[tar.git] / tests / Makefile.am
blob787b9d0211c5ebdd0644b60cc3212e5806e7cf97
1 # Makefile for GNU tar regression tests.
3 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005, 
4 # 2006, 2007, 2009 Free Software Foundation, Inc.
6 # François Pinard <pinard@iro.umontreal.ca>, 1988.
7 # Sergey Poznyakoff <gray@mirddin.farlep.net>, 2004.
9 ## This program is free software; you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation; either version 3, or (at your option)
12 ## any later version.
14 ## This program is distributed in the hope that it will be useful,
15 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 ## GNU General Public License for more details.
19 ## You should have received a copy of the GNU General Public License
20 ## along with this program; if not, write to the Free Software
21 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 ## 02110-1301, USA.
24 EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 star/README star/quicktest.sh
25 DISTCLEANFILES       = atconfig $(check_SCRIPTS)
26 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
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 TESTSUITE_AT = \
49  T-empty.at\
50  T-null.at\
51  testsuite.at\
52  append.at\
53  append01.at\
54  append02.at\
55  backup01.at\
56  chtype.at\
57  comprec.at\
58  delete01.at\
59  delete02.at\
60  delete03.at\
61  delete04.at\
62  delete05.at\
63  exclude.at\
64  exclude01.at\
65  exclude02.at\
66  exclude03.at\
67  exclude04.at\
68  exclude05.at\
69  extrac01.at\
70  extrac02.at\
71  extrac03.at\
72  extrac04.at\
73  extrac05.at\
74  extrac06.at\
75  extrac07.at\
76  extrac08.at\
77  filerem01.at\
78  filerem02.at\
79  gzip.at\
80  grow.at\
81  incremental.at\
82  incr01.at\
83  incr02.at\
84  incr03.at\
85  incr04.at\
86  incr05.at\
87  incr06.at\
88  indexfile.at\
89  ignfail.at\
90  link01.at\
91  link02.at\
92  link03.at\
93  listed01.at\
94  listed02.at\
95  long01.at\
96  longv7.at\
97  lustar01.at\
98  lustar02.at\
99  lustar03.at\
100  multiv01.at\
101  multiv02.at\
102  multiv03.at\
103  multiv04.at\
104  multiv05.at\
105  multiv06.at\
106  old.at\
107  options.at\
108  options02.at\
109  pipe.at\
110  recurse.at\
111  rename01.at\
112  rename02.at\
113  rename03.at\
114  rename04.at\
115  rename05.at\
116  remfiles01.at\
117  remfiles02.at\
118  same-order01.at\
119  same-order02.at\
120  shortfile.at\
121  shortupd.at\
122  shortrec.at\
123  sparse01.at\
124  sparse02.at\
125  sparse03.at\
126  sparsemv.at\
127  sparsemvp.at\
128  spmvp00.at\
129  spmvp01.at\
130  spmvp10.at\
131  truncate.at\
132  update.at\
133  volsize.at\
134  volume.at\
135  verbose.at\
136  version.at\
137  xform-h.at\
138  star/gtarfail.at\
139  star/gtarfail2.at\
140  star/multi-fail.at\
141  star/ustar-big-2g.at\
142  star/ustar-big-8g.at\
143  star/pax-big-10g.at
145 TESTSUITE = $(srcdir)/testsuite
147 AUTOTEST = $(AUTOM4TE) --language=autotest
148 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
149         $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
150         mv $@.tmp $@
152 atconfig: $(top_builddir)/config.status
153         cd $(top_builddir) && ./config.status tests/$@
155 clean-local:
156         test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
158 check-local: atconfig atlocal $(TESTSUITE)
159         $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
161 check-full:
162         FULL_TEST=1 $(MAKE) check
164 #check_SCRIPTS = tar
166 # Run the test suite on the *installed* tree.
167 installcheck-local:
168         $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
171 ## ------------ ##
172 ## genfile      ##
173 ## ------------ ##
175 check_PROGRAMS = genfile
177 genfile_SOURCES = genfile.c argcv.c argcv.h
179 localedir = $(datadir)/locale
180 INCLUDES = -I$(top_srcdir)/gnu -I../gnu -I$(top_srcdir)/gnu -I$(top_srcdir)/lib
181 AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
182 LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME)