[gforth] / gforth / testall  

gforth: gforth/testall


1 : anton 1.17 #! /bin/bash
2 : anton 1.1 #test dist on all MACHINES given in MACHINES
3 :     #usage: MACHINES="..." testall dirs/gforth-version.tar.gz
4 : anton 1.9 if test $# = 0; then
5 :     echo "usage: `basename $0` gforth-xxx.tar.gz"
6 :     exit 1
7 :     fi
8 : anton 1.10 test "x$MACHINES" != x ||
9 : anton 1.18 MACHINES="a5 a7 b2 b3 c1 c4 c6 c7 c8 iyonix mips ppc64 t1000"
10 : anton 1.10 SSH_PROTOCOL=-oProtocol=1,2
11 : anton 1.1 for i in $MACHINES
12 :     do
13 : anton 1.18 if false; then
14 : anton 1.15 echo; echo $i
15 :     /usr/bin/ssh $SSH_PROTOCOL -x $i echo ok
16 :     else
17 : anton 1.10 ( 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; \
20 : anton 1.18 echo "$i done" "`tail -1 $i`" `grep "checking host system type..." a7|sed 's/checking host system type... //'` `grep "^gcc.*ok" $i`
21 :     grep -A 2 "sieve bubble matrix fib" $i) &
22 : anton 1.15 fi
23 : anton 1.1 done
24 :     wait
25 :     echo all done

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help