--- gforth/testall 2000/07/26 15:29:54 1.7 +++ gforth/testall 2008/10/25 17:18:42 1.17 @@ -1,14 +1,24 @@ -#! /usr/local/bin/bash +#! /bin/bash #test dist on all MACHINES given in MACHINES #usage: MACHINES="..." testall dirs/gforth-version.tar.gz -test "x$MACHINES" != x || MACHINES="jupiter pcs d0 mips aertl@fpr.zserv.tuwien.ac.at aertl@fbma.tuwien.ac.at aertl@stat.zserv.tuwien.ac.at a5 w4.infosys.tuwien.ac.at samhain.ifs.tuwien.ac.at" -#taken out: hpws03.infosys.tuwien.ac.at a8 calis +if test $# = 0; then + echo "usage: `basename $0` gforth-xxx.tar.gz" + exit 1 +fi +test "x$MACHINES" != x || +MACHINES="mips a5 a7 b2 b3 c1 c4 c6 c7 c8 t1000 iyonix ppc64" +SSH_PROTOCOL=-oProtocol=1,2 for i in $MACHINES do - ( ssh $i "test -d xxxgforthtest||mkdir xxxgforthtest; cd xxxgforthtest; test -d $i||mkdir $i; rm -rf $i/*"; \ - scp -pq $1 testdist $i:xxxgforthtest/$i; \ - ssh $i "cd xxxgforthtest/$i; ./testdist `basename $1`" >$i 2>&1; \ - echo "$i done" `tail -1 $i`) & + if true; then + echo; echo $i + /usr/bin/ssh $SSH_PROTOCOL -x $i echo ok + else + ( ssh $SSH_PROTOCOL -q -x $i "test -d xxxgforthtest||mkdir xxxgforthtest; cd xxxgforthtest; test -d $i||mkdir $i; rm -rf $i/*" >$i 2>&1; \ + scp $SSH_PROTOCOL -p -q $1 ../testdist $i:xxxgforthtest/$i >>$i 2>&1; \ + ssh $SSH_PROTOCOL -q -x $i "cd xxxgforthtest/$i; ./testdist `basename $1`" >>$i 2>&1; \ + echo "$i done" "`tail -1 $i`") & + fi done wait echo all done