X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=blobdiff_plain;f=tests%2Fatlocal.in;h=5fbe6a594abd150bedace1854392d474a306fe0f;hp=0f1c66b43a459438e4afd3639390f1cb3a31e95d;hb=45ccda119355a1087450039a250359c1d0de0d08;hpb=631de61428b8b840f3f87022de661f5468576bde diff --git a/tests/atlocal.in b/tests/atlocal.in index 0f1c66b..5fbe6a5 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -1,6 +1,59 @@ # @configure_input@ -*- shell-script -*- # Configurable variable values for tar test suite. -# Copyright (C) 2004, 2006 Free Software Foundation, Inc. +# Copyright 2004, 2006, 2013-2014 Free Software Foundation, Inc. -PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_builddir@/build-aux:$top_srcdir:$srcdir:$PATH +# This file is part of GNU tar. +# GNU tar is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +# GNU tar is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_srcdir@/build-aux:$top_srcdir:$srcdir:$PATH + +XFAILFILE=$abs_builddir/.badversion + +trap "test -r $XFAILFILE && cat $XFAILFILE; exit $?" 1 2 13 15 + +TEST_DATA_URL=ftp://download.gnu.org.ua/pub/tests/tar +if test -z "$TEST_DATA_DIR"; then + TEST_DATA_DIR=$abs_builddir +fi + +STAR_DATA_URL=ftp://ftp.berlios.de/pub/star/testscripts +if test -z "$STAR_TESTSCRIPTS"; then + STAR_TESTSCRIPTS=$TEST_DATA_DIR +fi + +# tarball_prereq file sum dir url +tarball_prereq() { + if test -d "$3"; then + if test -r $3/$1; then + : + elif test -n "$FULL_TEST"; then + wget -q --directory-prefix=$3 $4/$1 + fi + fi + echo "$2 $3/$1" | md5sum --status --check - >/dev/null 2>&1 +} + +decho() { + echo $* + echo >&2 $* +} + +mkexcltest() { + mkdir $1 $1/subdir + genfile --file=$1/top-level-file + genfile --file=$1/subdir/excludeme + genfile --file=$1/subdir/subdir-file +} + \ No newline at end of file