]> Dogcows Code - chaz/tar/commitdiff
(TEST_DATA_URL,STAR_DATA_URL)
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 13 May 2006 11:58:41 +0000 (11:58 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 13 May 2006 11:58:41 +0000 (11:58 +0000)
(STAR_TESTSCRIPTS): Provide default values.
(tarball_prereq): New function

tests/atlocal.in

index 124a28e7d4b4c3de4db1a68398947961c082042c..b56ef627aeddf41dcc99fe54ea22bbafd5eb89d4 100644 (file)
@@ -4,3 +4,26 @@
 
 PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_srcdir@/build-aux:$top_srcdir:$srcdir:$PATH
 
+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=http://download.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 - 
+}
+
+
This page took 0.023698 seconds and 4 git commands to generate.