]> Dogcows Code - chaz/tar/blob - tests/Makefile.am
Fix exclusion of long file names when extracting from pax format archives.
[chaz/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, 2007, 2009 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 3, 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 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 exclude06.at\
70 extrac01.at\
71 extrac02.at\
72 extrac03.at\
73 extrac04.at\
74 extrac05.at\
75 extrac06.at\
76 extrac07.at\
77 extrac08.at\
78 filerem01.at\
79 filerem02.at\
80 gzip.at\
81 grow.at\
82 incremental.at\
83 incr01.at\
84 incr02.at\
85 incr03.at\
86 incr04.at\
87 incr05.at\
88 incr06.at\
89 indexfile.at\
90 ignfail.at\
91 label01.at\
92 label02.at\
93 label03.at\
94 label04.at\
95 label05.at\
96 link01.at\
97 link02.at\
98 link03.at\
99 listed01.at\
100 listed02.at\
101 long01.at\
102 longv7.at\
103 lustar01.at\
104 lustar02.at\
105 lustar03.at\
106 multiv01.at\
107 multiv02.at\
108 multiv03.at\
109 multiv04.at\
110 multiv05.at\
111 multiv06.at\
112 multiv07.at\
113 old.at\
114 options.at\
115 options02.at\
116 pipe.at\
117 recurse.at\
118 rename01.at\
119 rename02.at\
120 rename03.at\
121 rename04.at\
122 rename05.at\
123 remfiles01.at\
124 remfiles02.at\
125 remfiles03.at\
126 same-order01.at\
127 same-order02.at\
128 shortfile.at\
129 shortupd.at\
130 shortrec.at\
131 sigpipe.at\
132 sparse01.at\
133 sparse02.at\
134 sparse03.at\
135 sparsemv.at\
136 sparsemvp.at\
137 spmvp00.at\
138 spmvp01.at\
139 spmvp10.at\
140 truncate.at\
141 update.at\
142 update01.at\
143 update02.at\
144 volsize.at\
145 volume.at\
146 verbose.at\
147 version.at\
148 xform-h.at\
149 star/gtarfail.at\
150 star/gtarfail2.at\
151 star/multi-fail.at\
152 star/ustar-big-2g.at\
153 star/ustar-big-8g.at\
154 star/pax-big-10g.at
155
156 TESTSUITE = $(srcdir)/testsuite
157
158 AUTOTEST = $(AUTOM4TE) --language=autotest
159 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
160 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
161 mv $@.tmp $@
162
163 atconfig: $(top_builddir)/config.status
164 cd $(top_builddir) && ./config.status tests/$@
165
166 clean-local:
167 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
168
169 check-local: atconfig atlocal $(TESTSUITE)
170 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
171
172 check-full:
173 FULL_TEST=1 $(MAKE) check
174
175 #check_SCRIPTS = tar
176
177 # Run the test suite on the *installed* tree.
178 installcheck-local:
179 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
180
181
182 ## ------------ ##
183 ## genfile ##
184 ## ------------ ##
185
186 check_PROGRAMS = genfile
187
188 genfile_SOURCES = genfile.c argcv.c argcv.h
189
190 localedir = $(datadir)/locale
191 INCLUDES = -I$(top_srcdir)/gnu -I../gnu -I$(top_srcdir)/gnu -I$(top_srcdir)/lib
192 AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
193 LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME)
This page took 0.043215 seconds and 5 git commands to generate.