| 1 |
# Makefile for GNU tar regression tests. |
| 2 |
|
| 3 |
# Copyright 1996-2023 Free Software Foundation, Inc. |
| 4 |
|
| 5 |
# This file is part of GNU tar. |
| 6 |
|
| 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. |
| 11 |
|
| 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. |
| 16 |
|
| 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/>. |
| 19 |
|
| 20 |
EXTRA_DIST = $(TESTSUITE_AT) \ |
| 21 |
testsuite package.m4 star/README star/quicktest.sh \ |
| 22 |
compress.m4 |
| 23 |
|
| 24 |
DISTCLEANFILES = atconfig $(check_SCRIPTS) |
| 25 |
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE) |
| 26 |
CLEANFILES = |
| 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 |
compress.m4\ |
| 51 |
T-cd.at\ |
| 52 |
T-dir00.at\ |
| 53 |
T-dir01.at\ |
| 54 |
T-empty.at\ |
| 55 |
T-null.at\ |
| 56 |
T-null2.at\ |
| 57 |
T-rec.at\ |
| 58 |
T-recurse.at\ |
| 59 |
T-zfile.at\ |
| 60 |
T-nonl.at\ |
| 61 |
T-mult.at\ |
| 62 |
T-nest.at\ |
| 63 |
add-file.at\ |
| 64 |
append.at\ |
| 65 |
append01.at\ |
| 66 |
append02.at\ |
| 67 |
append03.at\ |
| 68 |
append04.at\ |
| 69 |
append05.at\ |
| 70 |
backup01.at\ |
| 71 |
chtype.at\ |
| 72 |
comprec.at\ |
| 73 |
comperr.at\ |
| 74 |
checkpoint/defaults.at\ |
| 75 |
checkpoint/interval.at\ |
| 76 |
checkpoint/dot.at\ |
| 77 |
checkpoint/dot-compat.at\ |
| 78 |
checkpoint/dot-int.at\ |
| 79 |
delete01.at\ |
| 80 |
delete02.at\ |
| 81 |
delete03.at\ |
| 82 |
delete04.at\ |
| 83 |
delete05.at\ |
| 84 |
delete06.at\ |
| 85 |
difflink.at\ |
| 86 |
exclude.at\ |
| 87 |
exclude01.at\ |
| 88 |
exclude02.at\ |
| 89 |
exclude03.at\ |
| 90 |
exclude04.at\ |
| 91 |
exclude05.at\ |
| 92 |
exclude06.at\ |
| 93 |
exclude07.at\ |
| 94 |
exclude08.at\ |
| 95 |
exclude09.at\ |
| 96 |
exclude10.at\ |
| 97 |
exclude11.at\ |
| 98 |
exclude12.at\ |
| 99 |
exclude13.at\ |
| 100 |
exclude14.at\ |
| 101 |
exclude15.at\ |
| 102 |
exclude16.at\ |
| 103 |
extrac01.at\ |
| 104 |
extrac02.at\ |
| 105 |
extrac03.at\ |
| 106 |
extrac04.at\ |
| 107 |
extrac05.at\ |
| 108 |
extrac06.at\ |
| 109 |
extrac07.at\ |
| 110 |
extrac08.at\ |
| 111 |
extrac09.at\ |
| 112 |
extrac10.at\ |
| 113 |
extrac11.at\ |
| 114 |
extrac12.at\ |
| 115 |
extrac13.at\ |
| 116 |
extrac14.at\ |
| 117 |
extrac15.at\ |
| 118 |
extrac16.at\ |
| 119 |
extrac17.at\ |
| 120 |
extrac18.at\ |
| 121 |
extrac19.at\ |
| 122 |
extrac20.at\ |
| 123 |
extrac21.at\ |
| 124 |
extrac22.at\ |
| 125 |
extrac23.at\ |
| 126 |
extrac24.at\ |
| 127 |
extrac25.at\ |
| 128 |
filerem01.at\ |
| 129 |
filerem02.at\ |
| 130 |
dirrem01.at\ |
| 131 |
dirrem02.at\ |
| 132 |
gzip.at\ |
| 133 |
grow.at\ |
| 134 |
incremental.at\ |
| 135 |
incr01.at\ |
| 136 |
incr02.at\ |
| 137 |
incr03.at\ |
| 138 |
incr04.at\ |
| 139 |
incr05.at\ |
| 140 |
incr06.at\ |
| 141 |
incr07.at\ |
| 142 |
incr08.at\ |
| 143 |
incr09.at\ |
| 144 |
incr10.at\ |
| 145 |
incr11.at\ |
| 146 |
indexfile.at\ |
| 147 |
ignfail.at\ |
| 148 |
label01.at\ |
| 149 |
label02.at\ |
| 150 |
label03.at\ |
| 151 |
label04.at\ |
| 152 |
label05.at\ |
| 153 |
link01.at\ |
| 154 |
link02.at\ |
| 155 |
link03.at\ |
| 156 |
link04.at\ |
| 157 |
listed01.at\ |
| 158 |
listed02.at\ |
| 159 |
listed03.at\ |
| 160 |
listed04.at\ |
| 161 |
listed05.at\ |
| 162 |
long01.at\ |
| 163 |
longv7.at\ |
| 164 |
lustar01.at\ |
| 165 |
lustar02.at\ |
| 166 |
lustar03.at\ |
| 167 |
map.at\ |
| 168 |
multiv01.at\ |
| 169 |
multiv02.at\ |
| 170 |
multiv03.at\ |
| 171 |
multiv04.at\ |
| 172 |
multiv05.at\ |
| 173 |
multiv06.at\ |
| 174 |
multiv07.at\ |
| 175 |
multiv08.at\ |
| 176 |
multiv09.at\ |
| 177 |
multiv10.at\ |
| 178 |
numeric.at\ |
| 179 |
old.at\ |
| 180 |
onetop01.at\ |
| 181 |
onetop02.at\ |
| 182 |
onetop03.at\ |
| 183 |
onetop04.at\ |
| 184 |
onetop05.at\ |
| 185 |
opcomp01.at\ |
| 186 |
opcomp02.at\ |
| 187 |
opcomp03.at\ |
| 188 |
opcomp04.at\ |
| 189 |
opcomp05.at\ |
| 190 |
opcomp06.at\ |
| 191 |
positional01.at\ |
| 192 |
positional02.at\ |
| 193 |
positional03.at\ |
| 194 |
options.at\ |
| 195 |
options02.at\ |
| 196 |
options03.at\ |
| 197 |
owner.at\ |
| 198 |
pipe.at\ |
| 199 |
recurse.at\ |
| 200 |
recurs02.at\ |
| 201 |
rename01.at\ |
| 202 |
rename02.at\ |
| 203 |
rename03.at\ |
| 204 |
rename04.at\ |
| 205 |
rename05.at\ |
| 206 |
rename06.at\ |
| 207 |
remfiles01.at\ |
| 208 |
remfiles02.at\ |
| 209 |
remfiles03.at\ |
| 210 |
remfiles04a.at\ |
| 211 |
remfiles04b.at\ |
| 212 |
remfiles04c.at\ |
| 213 |
remfiles05a.at\ |
| 214 |
remfiles05b.at\ |
| 215 |
remfiles05c.at\ |
| 216 |
remfiles06a.at\ |
| 217 |
remfiles06b.at\ |
| 218 |
remfiles06c.at\ |
| 219 |
remfiles07a.at\ |
| 220 |
remfiles07b.at\ |
| 221 |
remfiles07c.at\ |
| 222 |
remfiles08a.at\ |
| 223 |
remfiles08b.at\ |
| 224 |
remfiles08c.at\ |
| 225 |
remfiles09a.at\ |
| 226 |
remfiles09b.at\ |
| 227 |
remfiles09c.at\ |
| 228 |
remfiles10.at\ |
| 229 |
same-order01.at\ |
| 230 |
same-order02.at\ |
| 231 |
shortfile.at\ |
| 232 |
shortupd.at\ |
| 233 |
shortrec.at\ |
| 234 |
sigpipe.at\ |
| 235 |
sparse01.at\ |
| 236 |
sparse02.at\ |
| 237 |
sparse03.at\ |
| 238 |
sparse04.at\ |
| 239 |
sparse05.at\ |
| 240 |
sparse06.at\ |
| 241 |
sparse07.at\ |
| 242 |
sparsemv.at\ |
| 243 |
sparsemvp.at\ |
| 244 |
spmvp00.at\ |
| 245 |
spmvp01.at\ |
| 246 |
spmvp10.at\ |
| 247 |
sptrcreat.at\ |
| 248 |
sptrdiff00.at\ |
| 249 |
sptrdiff01.at\ |
| 250 |
time01.at\ |
| 251 |
time02.at\ |
| 252 |
truncate.at\ |
| 253 |
update.at\ |
| 254 |
update01.at\ |
| 255 |
update02.at\ |
| 256 |
update03.at\ |
| 257 |
update04.at\ |
| 258 |
volsize.at\ |
| 259 |
volume.at\ |
| 260 |
verbose.at\ |
| 261 |
verify.at\ |
| 262 |
version.at\ |
| 263 |
xform-h.at\ |
| 264 |
xform01.at\ |
| 265 |
xform02.at\ |
| 266 |
xform03.at\ |
| 267 |
star/gtarfail.at\ |
| 268 |
star/gtarfail2.at\ |
| 269 |
star/multi-fail.at\ |
| 270 |
star/ustar-big-2g.at\ |
| 271 |
star/ustar-big-8g.at\ |
| 272 |
star/pax-big-10g.at\ |
| 273 |
xattr01.at\ |
| 274 |
xattr02.at\ |
| 275 |
xattr03.at\ |
| 276 |
xattr04.at\ |
| 277 |
xattr05.at\ |
| 278 |
xattr06.at\ |
| 279 |
xattr07.at\ |
| 280 |
xattr08.at\ |
| 281 |
acls01.at\ |
| 282 |
acls02.at\ |
| 283 |
acls03.at\ |
| 284 |
selnx01.at\ |
| 285 |
selacl01.at\ |
| 286 |
capabs_raw01.at |
| 287 |
|
| 288 |
distclean-local: |
| 289 |
-rm -rf download |
| 290 |
|
| 291 |
TESTSUITE = $(srcdir)/testsuite |
| 292 |
|
| 293 |
AUTOTEST = $(AUTOM4TE) --language=autotest |
| 294 |
$(TESTSUITE): package.m4 $(TESTSUITE_AT) |
| 295 |
$(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected] |
| 296 |
mv [email protected] $@ |
| 297 |
|
| 298 |
atconfig: $(top_builddir)/config.status |
| 299 |
cd $(top_builddir) && ./config.status tests/$@ |
| 300 |
|
| 301 |
clean-local: |
| 302 |
test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean |
| 303 |
|
| 304 |
check-local: atconfig atlocal $(TESTSUITE) |
| 305 |
$(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) |
| 306 |
|
| 307 |
check-full: |
| 308 |
FULL_TEST=1 $(MAKE) check |
| 309 |
|
| 310 |
#check_SCRIPTS = tar |
| 311 |
|
| 312 |
# Run the test suite on the *installed* tree. |
| 313 |
installcheck-local: $(check_PROGRAMS) |
| 314 |
$(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin |
| 315 |
|
| 316 |
|
| 317 |
## ------------ ## |
| 318 |
## genfile ## |
| 319 |
## ------------ ## |
| 320 |
|
| 321 |
check_PROGRAMS = genfile checkseekhole ckmtime |
| 322 |
|
| 323 |
genfile_SOURCES = genfile.c argcv.c argcv.h |
| 324 |
checkseekhole_SOURCES = checkseekhole.c |
| 325 |
|
| 326 |
localedir = $(datadir)/locale |
| 327 |
AM_CPPFLAGS = \ |
| 328 |
-I$(top_srcdir)/gnu\ |
| 329 |
-I../gnu\ |
| 330 |
-I$(top_srcdir)/gnu\ |
| 331 |
-I$(top_srcdir)/lib\ |
| 332 |
-DLOCALEDIR=\"$(localedir)\" |
| 333 |
|
| 334 |
LDADD = ../gnu/libgnu.a\ |
| 335 |
$(LIB_ACL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)\ |
| 336 |
$(LIB_GETRANDOM) $(LIB_HARD_LOCALE) $(FILE_HAS_ACL_LIB) $(LIB_MBRTOWC)\ |
| 337 |
$(LIB_SELINUX) $(LIB_SETLOCALE_NULL) |