1 # Makefile for GNU tar regression tests.
3 # Copyright 1996-2024 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
48 # You can generate the body of this macro with the following shell command:
49 # LC_ALL=C ls *.at */*.at | sed -e 's/^/ /' -e '$!s/$/\\/'
75 checkpoint/defaults.at\
76 checkpoint/dot-compat.at\
77 checkpoint/dot-int.at\
79 checkpoint/interval.at\
266 star/ustar-big-2g.at\
267 star/ustar-big-8g.at\
299 TESTSUITE = $(srcdir)/testsuite
301 AUTOTEST = $(AUTOM4TE) --language=autotest
302 $(TESTSUITE): compress.m4 package.m4 $(TESTSUITE_AT)
303 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
306 atconfig: $(top_builddir)/config.status
307 cd $(top_builddir) && ./config.status tests/$@
310 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
312 check-local: atconfig atlocal $(TESTSUITE)
313 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
316 FULL_TEST=1 $(MAKE) check
320 # Run the test suite on the *installed* tree.
321 installcheck-local: $(check_PROGRAMS)
322 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
329 check_PROGRAMS = genfile checkseekhole ckmtime
331 genfile_SOURCES = genfile.c argcv.c argcv.h
332 checkseekhole_SOURCES = checkseekhole.c
334 localedir = $(datadir)/locale
340 -DLOCALEDIR=\"$(localedir)\"
342 LDADD = ../gnu/libgnu.a\
343 $(LIB_ACL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)\
344 $(LIB_GETRANDOM) $(LIB_HARD_LOCALE) $(FILE_HAS_ACL_LIB) $(LIB_MBRTOWC)\
345 $(LIB_SELINUX) $(LIB_SETLOCALE_NULL) \
346 $(LIBINTL) $(LIBICONV)