New test verbose.at
[debian/tar] / tests / Makefile.am
1 # Makefile for GNU tar regression tests.
2
3 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005, 
4 # 2006 Free Software Foundation, Inc.
5
6 # François Pinard <pinard@iro.umontreal.ca>, 1988.
7 # Sergey Poznyakoff <gray@mirddin.farlep.net>, 2004.
8
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 2, or (at your option)
12 ## any later version.
13
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.
18
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.
23
24 EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 star/README star/quicktest.sh
25 DISTCLEANFILES       = atconfig $(check_SCRIPTS)
26 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
27
28 ## ------------ ##
29 ## package.m4.  ##
30 ## ------------ ##
31
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
41
42 #
43
44 ## ------------ ##
45 ## Test suite.  ##
46 ## ------------ ##
47
48 TESTSUITE_AT = \
49  testsuite.at\
50  append.at\
51  append01.at\
52  append02.at\
53  chtype.at\
54  comprec.at\
55  delete01.at\
56  delete02.at\
57  delete03.at\
58  delete04.at\
59  delete05.at\
60  extrac01.at\
61  extrac02.at\
62  extrac03.at\
63  extrac04.at\
64  extrac05.at\
65  extrac06.at\
66  gzip.at\
67  incremental.at\
68  incr01.at\
69  incr02.at\
70  incr03.at\
71  incr04.at\
72  indexfile.at\
73  ignfail.at\
74  link01.at\
75  listed01.at\
76  listed02.at\
77  long01.at\
78  longv7.at\
79  lustar01.at\
80  lustar02.at\
81  lustar03.at\
82  multiv01.at\
83  multiv02.at\
84  multiv03.at\
85  multiv04.at\
86  multiv05.at\
87  old.at\
88  options.at\
89  options02.at\
90  pipe.at\
91  recurse.at\
92  rename01.at\
93  rename02.at\
94  rename03.at\
95  same-order01.at\
96  same-order02.at\
97  shortrec.at\
98  sparse01.at\
99  sparse02.at\
100  sparse03.at\
101  sparsemv.at\
102  sparsemvp.at\
103  spmvp00.at\
104  spmvp01.at\
105  spmvp10.at\
106  truncate.at\
107  update.at\
108  volsize.at\
109  volume.at\
110  verbose.at\
111  version.at\
112  star/gtarfail.at\
113  star/gtarfail2.at\
114  star/multi-fail.at\
115  star/ustar-big-2g.at\
116  star/ustar-big-8g.at\
117  star/pax-big-10g.at
118
119 TESTSUITE = $(srcdir)/testsuite
120
121 AUTOTEST = $(AUTOM4TE) --language=autotest
122 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
123         $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
124         mv $@.tmp $@
125
126 atconfig: $(top_builddir)/config.status
127         cd $(top_builddir) && ./config.status tests/$@
128
129 clean-local:
130         test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
131
132 check-local: atconfig atlocal $(TESTSUITE)
133         $(SHELL) $(TESTSUITE)
134
135 check-full:
136         FULL_TEST=1 $(MAKE) check
137
138 #check_SCRIPTS = tar
139
140 # Run the test suite on the *installed* tree.
141 installcheck-local:
142         $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
143
144
145 ## ------------ ##
146 ## genfile      ##
147 ## ------------ ##
148
149 check_PROGRAMS = genfile
150
151 genfile_SOURCES = genfile.c argcv.c argcv.h
152
153 localedir = $(datadir)/locale
154 INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
155 AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
156 LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)