]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
copy tarball of current checkout if svn is not set for remote test target
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Wed, 14 Feb 2007 17:58:01 +0000 (17:58 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Wed, 14 Feb 2007 17:58:01 +0000 (17:58 +0000)
fix test on lustra when environment was not set

test/01-compile.tpkg
test/testbed/testbed.sh

index 3928c7b2f8494df1fdd3e1937043bf0481dde79f..227c375facebafc4ad747b2b7dcfc6f2a90a02b7 100644 (file)
Binary files a/test/01-compile.tpkg and b/test/01-compile.tpkg differ
index 0d51fb7027d2880c689b87f961a1dd54847b8cbb..1e64aad66610718867fda79cdbb20b57fb8bec04 100755 (executable)
@@ -22,7 +22,7 @@ fi
 
 function echossh() # like ssh but echos.
 {
-       echo "ssh $*"
+       echo "ssh $*"
        ssh $*
 }
 
@@ -35,14 +35,19 @@ function dotest()
        echo "$1 begin on "`date` | tee -a $REPORT_FILE
 
        if test $SVN; then
-               echossh $1 "cd $2; svn up"
+               echossh $1 "cd $2; $SVN up"
 #              echossh $1 "cd $2; if test ! -f configure -o configure.ac -nt configure; then $AC_CMD; fi"
        else
-               echo "NO SVN?"
-               echo "NO SVN?"
-               echo "NO SVN?"
+               # tar and copy this dir
+               echo on
+               cd ..
+               tar -cf ldns_test.tar .
+               scp ldns_test.tar $1:$2
+               echossh $1 "cd $2; tar xf ldns_test.tar"
+               rm -f ldns_test.tar
+               #echo "NO SVN?"
+               #echo "NO SVN?"
                
-               exit
 #              # svn and autoconf locally
 #              echo "fake svn via svnexport, tar, autoconf, bison, flex."
 #              svn export $REPOSITORY $DIR