| 1 | # Makefile for GNU tar regression tests.
 | 
|---|
| 2 | 
 | 
|---|
| 3 | # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005, 
 | 
|---|
| 4 | # 2006 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 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 |  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 |  extrac01.at\
 | 
|---|
| 63 |  extrac02.at\
 | 
|---|
| 64 |  extrac03.at\
 | 
|---|
| 65 |  extrac04.at\
 | 
|---|
| 66 |  extrac05.at\
 | 
|---|
| 67 |  extrac06.at\
 | 
|---|
| 68 |  extrac07.at\
 | 
|---|
| 69 |  gzip.at\
 | 
|---|
| 70 |  grow.at\
 | 
|---|
| 71 |  incremental.at\
 | 
|---|
| 72 |  incr01.at\
 | 
|---|
| 73 |  incr02.at\
 | 
|---|
| 74 |  incr03.at\
 | 
|---|
| 75 |  incr04.at\
 | 
|---|
| 76 |  indexfile.at\
 | 
|---|
| 77 |  ignfail.at\
 | 
|---|
| 78 |  link01.at\
 | 
|---|
| 79 |  listed01.at\
 | 
|---|
| 80 |  listed02.at\
 | 
|---|
| 81 |  long01.at\
 | 
|---|
| 82 |  longv7.at\
 | 
|---|
| 83 |  lustar01.at\
 | 
|---|
| 84 |  lustar02.at\
 | 
|---|
| 85 |  lustar03.at\
 | 
|---|
| 86 |  multiv01.at\
 | 
|---|
| 87 |  multiv02.at\
 | 
|---|
| 88 |  multiv03.at\
 | 
|---|
| 89 |  multiv04.at\
 | 
|---|
| 90 |  multiv05.at\
 | 
|---|
| 91 |  old.at\
 | 
|---|
| 92 |  options.at\
 | 
|---|
| 93 |  options02.at\
 | 
|---|
| 94 |  pipe.at\
 | 
|---|
| 95 |  recurse.at\
 | 
|---|
| 96 |  rename01.at\
 | 
|---|
| 97 |  rename02.at\
 | 
|---|
| 98 |  rename03.at\
 | 
|---|
| 99 |  same-order01.at\
 | 
|---|
| 100 |  same-order02.at\
 | 
|---|
| 101 |  shortrec.at\
 | 
|---|
| 102 |  sparse01.at\
 | 
|---|
| 103 |  sparse02.at\
 | 
|---|
| 104 |  sparse03.at\
 | 
|---|
| 105 |  sparsemv.at\
 | 
|---|
| 106 |  sparsemvp.at\
 | 
|---|
| 107 |  spmvp00.at\
 | 
|---|
| 108 |  spmvp01.at\
 | 
|---|
| 109 |  spmvp10.at\
 | 
|---|
| 110 |  truncate.at\
 | 
|---|
| 111 |  update.at\
 | 
|---|
| 112 |  volsize.at\
 | 
|---|
| 113 |  volume.at\
 | 
|---|
| 114 |  verbose.at\
 | 
|---|
| 115 |  version.at\
 | 
|---|
| 116 |  star/gtarfail.at\
 | 
|---|
| 117 |  star/gtarfail2.at\
 | 
|---|
| 118 |  star/multi-fail.at\
 | 
|---|
| 119 |  star/ustar-big-2g.at\
 | 
|---|
| 120 |  star/ustar-big-8g.at\
 | 
|---|
| 121 |  star/pax-big-10g.at
 | 
|---|
| 122 | 
 | 
|---|
| 123 | TESTSUITE = $(srcdir)/testsuite
 | 
|---|
| 124 | 
 | 
|---|
| 125 | AUTOTEST = $(AUTOM4TE) --language=autotest
 | 
|---|
| 126 | $(TESTSUITE): package.m4 $(TESTSUITE_AT)
 | 
|---|
| 127 |         $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
 | 
|---|
| 128 |         mv $@.tmp $@
 | 
|---|
| 129 | 
 | 
|---|
| 130 | atconfig: $(top_builddir)/config.status
 | 
|---|
| 131 |         cd $(top_builddir) && ./config.status tests/$@
 | 
|---|
| 132 | 
 | 
|---|
| 133 | clean-local:
 | 
|---|
| 134 |         test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
 | 
|---|
| 135 | 
 | 
|---|
| 136 | check-local: atconfig atlocal $(TESTSUITE)
 | 
|---|
| 137 |         $(SHELL) $(TESTSUITE)
 | 
|---|
| 138 | 
 | 
|---|
| 139 | check-full:
 | 
|---|
| 140 |         FULL_TEST=1 $(MAKE) check
 | 
|---|
| 141 | 
 | 
|---|
| 142 | #check_SCRIPTS = tar
 | 
|---|
| 143 | 
 | 
|---|
| 144 | # Run the test suite on the *installed* tree.
 | 
|---|
| 145 | installcheck-local:
 | 
|---|
| 146 |         $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
 | 
|---|
| 147 | 
 | 
|---|
| 148 | 
 | 
|---|
| 149 | ## ------------ ##
 | 
|---|
| 150 | ## genfile      ##
 | 
|---|
| 151 | ## ------------ ##
 | 
|---|
| 152 | 
 | 
|---|
| 153 | check_PROGRAMS = genfile
 | 
|---|
| 154 | 
 | 
|---|
| 155 | genfile_SOURCES = genfile.c argcv.c argcv.h
 | 
|---|
| 156 | 
 | 
|---|
| 157 | localedir = $(datadir)/locale
 | 
|---|
| 158 | INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
 | 
|---|
| 159 | AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
 | 
|---|
| 160 | LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)
 | 
|---|