Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-05-28 20:38:11


Author: troy
Date: 2007-05-28 20:38:10 EDT (Mon, 28 May 2007)
New Revision: 4343
URL: http://svn.boost.org/trac/boost/changeset/4343

Log:
have script clean out continuous build dirs every 5 builds

Text files modified:
   sandbox-branches/boost-cmake/unix_testing_node/continuous/run.sh | 36 +++++++++++++++++++++++++++++++-----
   1 files changed, 31 insertions(+), 5 deletions(-)

Modified: sandbox-branches/boost-cmake/unix_testing_node/continuous/run.sh
==============================================================================
--- sandbox-branches/boost-cmake/unix_testing_node/continuous/run.sh (original)
+++ sandbox-branches/boost-cmake/unix_testing_node/continuous/run.sh 2007-05-28 20:38:10 EDT (Mon, 28 May 2007)
@@ -3,12 +3,38 @@
 topdir=`pwd`
 
 # alternately build debug and release
+clean_dirs () {
+ echo "cleaning dirs"
+ for builddir in debug release
+ do
+ dir = $topdir/$builddir/1.34.0/build
+ rm -rf $dir
+ mkdir -p $dir
+ cd $dir
+ cmake ../src
+ done
+}
+
+do_builds () {
+ echo "Doing builds..."
+ cd $topdir/debug/1.34.0/build
+ ctest -D Continuous
+ cd $topdir/release/1.34.0/build
+ ctest -D Continuous
+}
+
+COUNT=0
+
 while true
 do
- cd $topdir/debug/1.34.0/build
- ctest -D Continuous
- cd $topdir/release/1.34.0/build
- ctest -D Continuous
- sleep 180 # wait three minutes
+# sleep 180 # wait three minutes
+ COUNT=`expr $COUNT + 1`
+ echo "COUNT = $COUNT"
+ do_builds
+ if [ $COUNT -eq 5 ]
+ then
+ clean_dirs
+ COUNT=0
+ fi
 done
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk