Annotation of gforth/testall, revision 1.17
1.17 ! anton 1: #! /bin/bash
1.1 anton 2: #test dist on all MACHINES given in MACHINES
3: #usage: MACHINES="..." testall dirs/gforth-version.tar.gz
1.9 anton 4: if test $# = 0; then
5: echo "usage: `basename $0` gforth-xxx.tar.gz"
6: exit 1
7: fi
1.10 anton 8: test "x$MACHINES" != x ||
1.17 ! anton 9: MACHINES="mips a5 a7 b2 b3 c1 c4 c6 c7 c8 t1000 iyonix ppc64"
1.10 anton 10: SSH_PROTOCOL=-oProtocol=1,2
1.1 anton 11: for i in $MACHINES
12: do
1.17 ! anton 13: if true; then
1.15 anton 14: echo; echo $i
15: /usr/bin/ssh $SSH_PROTOCOL -x $i echo ok
16: else
1.10 anton 17: ( ssh $SSH_PROTOCOL -q -x $i "test -d xxxgforthtest||mkdir xxxgforthtest; cd xxxgforthtest; test -d $i||mkdir $i; rm -rf $i/*" >$i 2>&1; \
18: scp $SSH_PROTOCOL -p -q $1 ../testdist $i:xxxgforthtest/$i >>$i 2>&1; \
19: ssh $SSH_PROTOCOL -q -x $i "cd xxxgforthtest/$i; ./testdist `basename $1`" >>$i 2>&1; \
1.12 anton 20: echo "$i done" "`tail -1 $i`") &
1.15 anton 21: fi
1.1 anton 22: done
23: wait
24: echo all done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>