1 # Makefile for GNU tar regression tests.
3 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005,
4 # 2006, 2007 Free Software Foundation, Inc.
6 # François Pinard <pinard@iro.umontreal.ca>, 1988.
7 # Sergey Poznyakoff <gray@mirddin.farlep.net>, 2004.
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)
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.
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
24 EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 star/README star/quicktest.sh
25 DISTCLEANFILES = atconfig $(check_SCRIPTS)
26 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
32 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
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
120 star/ustar-big-2g.at\
121 star/ustar-big-8g.at\
124 TESTSUITE = $(srcdir)/testsuite
126 AUTOTEST = $(AUTOM4TE) --language=autotest
127 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
128 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
131 atconfig: $(top_builddir)/config.status
132 cd $(top_builddir) && ./config.status tests/$@
135 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
137 check-local: atconfig atlocal $(TESTSUITE)
138 $(SHELL) $(TESTSUITE)
141 FULL_TEST=1 $(MAKE) check
145 # Run the test suite on the *installed* tree.
147 $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
154 check_PROGRAMS = genfile
156 genfile_SOURCES = genfile.c argcv.c argcv.h
158 localedir = $(datadir)/locale
159 INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
160 AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
161 LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)