5 CURRENTREVISION=$STARTREVISION
6 HOME_DIR='/home/gnunet/FreeBSD7-AMD64-wachs/freebsd7-amd64-wachs/build'
9 CMD_UPDATE="svn up --force --accept theirs-full -r"
10 CMD_CLEANUP="killall -s 31 -r gnunet-*; make distclean;"
11 CMD_PREPARATION="./bootstrap; ./configure --prefix=/tmp/gnb --with-extractor=/usr/local"
13 CMD_TEST="cd src/transport ; make test_transport_api_tcp; ./test_transport_api_tcp"
16 LOGGING=" 1> /dev/null 2> errors.txt"
22 eval echo $1 >> $LOGFILE
26 while [ $CURRENTREVISION -le $ENDREVISION ]; do
27 output 'Testing revision $CURRENTREVISION'
29 output ' -> updating '
31 CMD="$CMD_UPDATE $CURRENTREVISION $LOGGING"
34 if [ $result -eq 0 ]; then
37 output " updating FAILED"
38 (( CURRENTREVISION++ ))
44 CMD="$CMD_CLEANUP $LOGGING"
47 if [ $result -eq 0 ]; then
50 output " cleanup FAILED"
51 (( CURRENTREVISION++ ))
55 output " -> preparation "
56 CMD="$CMD_PREPARATION $LOGGING"
60 if [ $result -eq 0 ]; then
61 output " preparation OK"
63 output " preparation FAILED"
64 (( CURRENTREVISION++ ))
68 output " -> building "
69 CMD="$CMD_BUILD $LOGGING"
73 if [ $result -eq 0 ]; then
76 output " building FAILED"
77 (( CURRENTREVISION++ ))
82 CMD="$CMD_TEST $LOGGING"
87 if [ $result -eq 0 ]; then
90 output " testing FAILED"
91 output 'Revision $CURRENTREVISION FAILED'
93 (( CURRENTREVISION++ ))