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