From: Sergey Poznyakoff Date: Mon, 24 Aug 2015 10:04:09 +0000 (+0300) Subject: Improve check-full X-Git-Tag: release_1_29~46 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c440a92627b3ec5fb00c7cd2753abbf23be753f9;p=debian%2Ftar Improve check-full * tests/atlocal.in: Download external archives to $abs_builddir/download. (tarball_prereq): Create destination directory if necessary. * tests/.gitignore: Add download --- diff --git a/tests/.gitignore b/tests/.gitignore index c5382d04..9d836a81 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -8,3 +8,4 @@ argcv.c argcv.h genfile.c genfile +download diff --git a/tests/atlocal.in b/tests/atlocal.in index 01e0bb8f..e887458c 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -25,7 +25,7 @@ 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 + TEST_DATA_DIR=$abs_builddir/download fi STAR_DATA_URL=$TEST_DATA_URL/star @@ -35,12 +35,17 @@ 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 -O $3/$1 $4/$1 - fi + if ! test -d "$3"; then + mkdir "$3" + cat > "$3/README" </dev/null 2>&1 }