]> Dogcows Code - chaz/tar/blob - tests/Makefile.am
Updated
[chaz/tar] / tests / Makefile.am
1 # Makefile for GNU tar regression tests.
2
3 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005 Free Software
4 # 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 comprec.at\
53 delete01.at\
54 delete02.at\
55 delete03.at\
56 delete04.at\
57 delete05.at\
58 extrac01.at\
59 extrac02.at\
60 extrac03.at\
61 extrac04.at\
62 extrac05.at\
63 gzip.at\
64 incremental.at\
65 ignfail.at\
66 link01.at\
67 listed01.at\
68 listed02.at\
69 long01.at\
70 longv7.at\
71 multiv01.at\
72 multiv02.at\
73 multiv03.at\
74 multiv04.at\
75 old.at\
76 options.at\
77 options02.at\
78 pipe.at\
79 recurse.at\
80 same-order01.at\
81 same-order02.at\
82 shortrec.at\
83 sparse01.at\
84 sparse02.at\
85 sparse03.at\
86 truncate.at\
87 update.at\
88 volume.at\
89 version.at\
90 star/gtarfail.at\
91 star/gtarfail2.at\
92 star/multi-fail.at\
93 star/ustar-big-2g.at\
94 star/ustar-big-8g.at\
95 star/pax-big-10g.at
96
97 TESTSUITE = $(srcdir)/testsuite
98
99 AUTOTEST = $(AUTOM4TE) --language=autotest
100 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
101 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
102 mv $@.tmp $@
103
104 atconfig: $(top_builddir)/config.status
105 cd $(top_builddir) && ./config.status tests/$@
106
107 clean-local:
108 $(SHELL) $(TESTSUITE) --clean
109
110 check-local: atconfig atlocal $(TESTSUITE)
111 $(SHELL) $(TESTSUITE)
112
113 #check_SCRIPTS = tar
114
115 # Run the test suite on the *installed* tree.
116 installcheck-local:
117 $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
118
119
120 ## ------------ ##
121 ## genfile ##
122 ## ------------ ##
123
124 check_PROGRAMS = genfile
125
126 genfile_SOURCES = genfile.c argcv.c argcv.h
127
128 localedir = $(datadir)/locale
129 INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
130
131 LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)
132
This page took 0.046285 seconds and 5 git commands to generate.