[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15269 - gnunet/contrib
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15269 - gnunet/contrib |
Date: |
Fri, 20 May 2011 13:32:55 +0200 |
Author: wachs
Date: 2011-05-20 13:32:55 +0200 (Fri, 20 May 2011)
New Revision: 15269
Added:
gnunet/contrib/revisionary.sh
Log:
the "we have the time but not the people" way of regression testing
Added: gnunet/contrib/revisionary.sh
===================================================================
--- gnunet/contrib/revisionary.sh (rev 0)
+++ gnunet/contrib/revisionary.sh 2011-05-20 11:32:55 UTC (rev 15269)
@@ -0,0 +1,98 @@
+#!/usr/local/bin/bash
+
+STARTREVISION=14033
+ENDREVISION=15268
+CURRENTREVISION=$STARTREVISION
+HOME_DIR='/home/gnunet/FreeBSD7-AMD64-wachs/freebsd7-amd64-wachs/build'
+
+
+CMD_UPDATE="svn up --force --accept theirs-full -r"
+CMD_CLEANUP="killall -s 31 -r gnunet-*; make distclean;"
+CMD_PREPARATION="./bootstrap; ./configure --prefix=/tmp/gnb
--with-extractor=/usr/local"
+CMD_BUILD="make all"
+CMD_TEST="cd src/transport ; make test_transport_api_tcp;
./test_transport_api_tcp"
+
+#LOGGING=""
+LOGGING=" 1> /dev/null 2> errors.txt"
+LOGFILE="log.txt"
+
+function output ()
+{
+ eval echo $1
+ eval echo $1 >> $LOGFILE
+}
+
+
+while [ $CURRENTREVISION -le $ENDREVISION ]; do
+ output 'Testing revision $CURRENTREVISION'
+# updating
+ output ' -> updating '
+ eval cd $HOME_DIR
+ CMD="$CMD_UPDATE $CURRENTREVISION $LOGGING"
+ eval $CMD
+ result=$?
+ if [ $result -eq 0 ]; then
+ output " updating OK"
+ else
+ output " updating FAILED"
+ (( CURRENTREVISION++ ))
+ continue
+ fi
+
+# clean up
+ output " -> cleanup "
+ CMD="$CMD_CLEANUP $LOGGING"
+ eval $CMD
+ result=$?
+ if [ $result -eq 0 ]; then
+ output " cleanup OK"
+ else
+ output " cleanup FAILED"
+ (( CURRENTREVISION++ ))
+ continue
+ fi
+# preparing
+ output " -> preparation "
+ CMD="$CMD_PREPARATION $LOGGING"
+ #echo $CMD
+ eval $CMD
+ result=$?
+ if [ $result -eq 0 ]; then
+ output " preparation OK"
+ else
+ output " preparation FAILED"
+ (( CURRENTREVISION++ ))
+ continue
+ fi
+# building
+ output " -> building "
+ CMD="$CMD_BUILD $LOGGING"
+ #echo $CMD
+ eval $CMD
+ result=$?
+ if [ $result -eq 0 ]; then
+ output " building OK"
+ else
+ output " building FAILED"
+ (( CURRENTREVISION++ ))
+ continue
+ fi
+# testing
+ output " -> testing "
+ CMD="$CMD_TEST $LOGGING"
+ #echo $CMD
+ eval $CMD
+ result=$?
+ testresult=result
+ if [ $result -eq 0 ]; then
+ output " testing OK"
+ else
+ output " testing FAILED"
+ output 'Revision $CURRENTREVISION FAILED'
+ fi
+ (( CURRENTREVISION++ ))
+done
+
+exit
+
+
Property changes on: gnunet/contrib/revisionary.sh
___________________________________________________________________
Added: svn:executable
+ *
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15269 - gnunet/contrib,
gnunet <=