1 # Makefile for GNU tar regression tests.
3 # Copyright 1996-2019 Free Software Foundation, Inc.
5 # This file is part of GNU tar.
7 # GNU tar is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU tar is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 EXTRA_DIST = $(TESTSUITE_AT) \
21 testsuite package.m4 star/README star/quicktest.sh \
24 DISTCLEANFILES = atconfig $(check_SCRIPTS)
25 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
74 checkpoint/defaults.at\
75 checkpoint/interval.at\
77 checkpoint/dot-compat.at\
78 checkpoint/dot-int.at\
264 star/ustar-big-2g.at\
265 star/ustar-big-8g.at\
284 TESTSUITE = $(srcdir)/testsuite
286 AUTOTEST = $(AUTOM4TE) --language=autotest
287 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
288 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
291 atconfig: $(top_builddir)/config.status
292 cd $(top_builddir) && ./config.status tests/$@
295 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
297 check-local: atconfig atlocal $(TESTSUITE)
298 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
301 FULL_TEST=1 $(MAKE) check
305 # Run the test suite on the *installed* tree.
306 installcheck-local: $(check_PROGRAMS)
307 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
314 check_PROGRAMS = genfile checkseekhole ckmtime
316 genfile_SOURCES = genfile.c argcv.c argcv.h
317 checkseekhole_SOURCES = checkseekhole.c
319 localedir = $(datadir)/locale
325 -DLOCALEDIR=\"$(localedir)\"
327 LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)