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