diff -r 7c4a911dc066 -r 541af5ee3ed9 sbsv2/raptor/bin/codetest_osbuild.sh
--- a/sbsv2/raptor/bin/codetest_osbuild.sh Fri Aug 13 14:59:05 2010 +0300
+++ b/sbsv2/raptor/bin/codetest_osbuild.sh Wed Aug 18 17:23:33 2010 +0300
@@ -1,174 +1,174 @@
-#!/bin/sh
-
-# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
-# All rights reserved.
-# This component and the accompanying materials are made available
-# under the terms of the License "Eclipse Public License v1.0"
-# which accompanies this distribution, and is available
-# at the URL "http://www.eclipse.org/legal/epl-v10.html".
-#
-# Initial Contributors:
-# Nokia Corporation - initial contribution.
-#
-# Contributors:
-#
-# Description:
-# Build automation for Symbian OS with Raptor
-# Author: Timothy N Murphy
-#
-#
-
-# You can edit these:
-H=/home/tmurphy
-export H
-
-export TESTBASE="$H/baselineos/codetest"
-
-
-export LOGBASEDIR=~/public_html/buildlogs
-export BUILDROOT="$H/baselineos"
-export SOURCEROOT="$H/baselineos/fsupdate"
-export SYSDEF="$H/baselineos/system_definition_fsupdate.xml"
-export PREEXPORTSYSDEF="$SBS_HOME/test/envelope/preexport.xml"
-export PARALLEL=28
-
-genstats() {
-if [ "$1.stats" -ot "$1.log" ]; then
-python "$SBS_HOME/bin/buildstats.py" "$1.log" > "$1.stats" &&
-#python "$SBS_HOME/bin/failedstats.py" -m "$1.log" > "$1.failed";
-(
- cd $EPOCROOT/epoc32 && find "release" > "$1.release_files" && find "build" > "$1.build_files" && find include > "$1.include_files"
-)
-fi;
-}
-
-cd $BUILDROOT
-
-
-# Don't edit the rest:
-###################################################
-export KEY=`date +%d_%m_%y`
-export DAILYDIR="$LOGBASEDIR/$KEY"
-export BUILDNAME="`basename \"$SYSDEF\" | sed 's#\.[^.][^.]*$##'`"
-export LOGNAME="${BUILDNAME}_${KEY}"
-export PLATFORM=armv5
-export TESTLOG="$DAILYDIR/parallel_codetest.log"
-
-for BUILDNUM in {1..50}; do
- if [ ! -d "$DAILYDIR/$BUILDNUM" ]; then
- break
- fi
- if [ ! -f "$DAILYDIR/$BUILDNUM/${LOGNAME}_$BUILDNUM.log" ]; then
- break
- fi
-done
-
-# make the day's directory
-mkdir -p "$DAILYDIR"
-
-echo "testrun: $TESTLOG, build $BUILDNUM of the day:"
-echo '' > "$TESTLOG"
-
-
-# Loop through different cluster loads
-for CODEFACTOR in 1 2 3 4 5; do
-export CODEFACTOR
-echo "CODEFACTOR: $CODEFACTOR"
-(
-
-export EPOCROOTS=""
-j=1;
-while [ $j -le $CODEFACTOR ]; do
- EPOCROOTS=${EPOCROOTS}" $TESTBASE/epocroot$j"
- j=$[ $j + 1 ]
-done
-MAKEFILE=$TESTBASE/test$CODEFACTOR.mk
-
-
-echo ""
-echo " "
-echo " $DAILYDIR/$BUILDNUM/${LOGNAME}_$BUILDNUM.log"
-echo " $EPOCROOTS"
-echo " $MAKEFILE"
-echo ""
-
-OUTDIR="$DAILYDIR/$BUILDNUM"
-TIMELOG="$OUTDIR/${LOGNAME}_$BUILDNUM.time"
-
-echo " $OUTDIR/${LOGNAME}_$BUILDNUM.preexport 2>&1 || {
- echo "Pre-export failed";
- exit 1
- }
-done
-)
-
-echo "Running Make"
-(
- set -x
- echo "Running Make"
- # The build process
-
- time /usr/local/raptor/make-pvm-381/pvmgmake -j$PARALLEL --debug=j -k -f $MAKEFILE > "$OUTDIR/${LOGNAME}_$BUILDNUM.log" 2>&1
- touch "$SIGNALTOSTOPFILE"
-) > "$TIMELOG" 2>&1 &
-(
- set +x
- # Concurrent process to continuously update statistics
- echo ""
-
- while [ 1 -eq 1 ]; do
- sleep 20
- echo -n "."
-
- if [ -e "$SIGNALTOSTOPFILE" ]; then
- rm -f "$SIGNALTOSTOPFILE"
- break
- fi
- done
- echo ""
-)
-set +x
-genstats "$OUTDIR/${LOGNAME}_$BUILDNUM"
-
-echo " ]]>"
-echo ""
-) >> "$TESTLOG" 2>&1
-
-BUILDNUM=$[ $BUILDNUM + 1 ]
-# use a new output directory
-done # CODEFACTOR
-echo -e "" >> "$TESTLOG"
-echo "" >> "$TESTLOG"
+#!/bin/sh
+
+# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+# All rights reserved.
+# This component and the accompanying materials are made available
+# under the terms of the License "Eclipse Public License v1.0"
+# which accompanies this distribution, and is available
+# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+#
+# Initial Contributors:
+# Nokia Corporation - initial contribution.
+#
+# Contributors:
+#
+# Description:
+# Build automation for Symbian OS with Raptor
+# Author: Timothy N Murphy
+#
+#
+
+# You can edit these:
+H=/home/tmurphy
+export H
+
+export TESTBASE="$H/baselineos/codetest"
+
+
+export LOGBASEDIR=~/public_html/buildlogs
+export BUILDROOT="$H/baselineos"
+export SOURCEROOT="$H/baselineos/fsupdate"
+export SYSDEF="$H/baselineos/system_definition_fsupdate.xml"
+export PREEXPORTSYSDEF="$SBS_HOME/test/envelope/preexport.xml"
+export PARALLEL=28
+
+genstats() {
+if [ "$1.stats" -ot "$1.log" ]; then
+python "$SBS_HOME/bin/buildstats.py" "$1.log" > "$1.stats" &&
+#python "$SBS_HOME/bin/failedstats.py" -m "$1.log" > "$1.failed";
+(
+ cd $EPOCROOT/epoc32 && find "release" > "$1.release_files" && find "build" > "$1.build_files" && find include > "$1.include_files"
+)
+fi;
+}
+
+cd $BUILDROOT
+
+
+# Don't edit the rest:
+###################################################
+export KEY=`date +%d_%m_%y`
+export DAILYDIR="$LOGBASEDIR/$KEY"
+export BUILDNAME="`basename \"$SYSDEF\" | sed 's#\.[^.][^.]*$##'`"
+export LOGNAME="${BUILDNAME}_${KEY}"
+export PLATFORM=armv5
+export TESTLOG="$DAILYDIR/parallel_codetest.log"
+
+for BUILDNUM in {1..50}; do
+ if [ ! -d "$DAILYDIR/$BUILDNUM" ]; then
+ break
+ fi
+ if [ ! -f "$DAILYDIR/$BUILDNUM/${LOGNAME}_$BUILDNUM.log" ]; then
+ break
+ fi
+done
+
+# make the day's directory
+mkdir -p "$DAILYDIR"
+
+echo "testrun: $TESTLOG, build $BUILDNUM of the day:"
+echo '' > "$TESTLOG"
+
+
+# Loop through different cluster loads
+for CODEFACTOR in 1 2 3 4 5; do
+export CODEFACTOR
+echo "CODEFACTOR: $CODEFACTOR"
+(
+
+export EPOCROOTS=""
+j=1;
+while [ $j -le $CODEFACTOR ]; do
+ EPOCROOTS=${EPOCROOTS}" $TESTBASE/epocroot$j"
+ j=$[ $j + 1 ]
+done
+MAKEFILE=$TESTBASE/test$CODEFACTOR.mk
+
+
+echo ""
+echo " "
+echo " $DAILYDIR/$BUILDNUM/${LOGNAME}_$BUILDNUM.log"
+echo " $EPOCROOTS"
+echo " $MAKEFILE"
+echo ""
+
+OUTDIR="$DAILYDIR/$BUILDNUM"
+TIMELOG="$OUTDIR/${LOGNAME}_$BUILDNUM.time"
+
+echo " $OUTDIR/${LOGNAME}_$BUILDNUM.preexport 2>&1 || {
+ echo "Pre-export failed";
+ exit 1
+ }
+done
+)
+
+echo "Running Make"
+(
+ set -x
+ echo "Running Make"
+ # The build process
+
+ time /usr/local/raptor/make-pvm-381/pvmgmake -j$PARALLEL --debug=j -k -f $MAKEFILE > "$OUTDIR/${LOGNAME}_$BUILDNUM.log" 2>&1
+ touch "$SIGNALTOSTOPFILE"
+) > "$TIMELOG" 2>&1 &
+(
+ set +x
+ # Concurrent process to continuously update statistics
+ echo ""
+
+ while [ 1 -eq 1 ]; do
+ sleep 20
+ echo -n "."
+
+ if [ -e "$SIGNALTOSTOPFILE" ]; then
+ rm -f "$SIGNALTOSTOPFILE"
+ break
+ fi
+ done
+ echo ""
+)
+set +x
+genstats "$OUTDIR/${LOGNAME}_$BUILDNUM"
+
+echo " ]]>"
+echo ""
+) >> "$TESTLOG" 2>&1
+
+BUILDNUM=$[ $BUILDNUM + 1 ]
+# use a new output directory
+done # CODEFACTOR
+echo -e "" >> "$TESTLOG"
+echo "" >> "$TESTLOG"