|
From: Bart V. A. <bar...@gm...> - 2008-09-07 19:31:35
|
Can someone please review the patch below ? The patch below makes it
possible to run a nightly build on the Georgia Tech Cellbuzz cluster, which
consists of an amd64 host and a PowerPC target architecture.
nightly$ svn diff bin/nightly conf
Index: bin/nightly
===================================================================
--- bin/nightly (revision 8581)
+++ bin/nightly (working copy)
@@ -55,6 +55,12 @@
cd $ABT_TOP
source $ABT_TOP/conf/$ABT_MACHINE.conf
+if [ "${ABT_JOBS}" = "" ]; then
+ ABT_JOBS=1
+fi
+if [ "${ABT_RUN_REGTEST}" = "" ]; then
+ ABT_RUN_REGTEST="cd valgrind && perl test/vg_regtest --all"
+fi
#----------------------------------------------------------------------------
@@ -85,19 +91,19 @@
# Check out, build, run tests
runcmd $logfile \
"Checking out valgrind source tree" \
- "svn co svn://svn.valgrind.org/valgrind/trunk -r {$svn_date}
valgrind" && \
+ "svn co svn://svn.valgrind.org/valgrind/trunk -r {$svn_date}
valgrind && ( cd valgrind && { svn cat svn://
svn.valgrind.org/valgrind/branches/CROSS_COMPILATION/vex-cross-compilation.patch|
patch -p0 -s; } )" && \
\
runcmd $logfile \
"Configuring valgrind " \
- "cd valgrind && ./autogen.sh && ./configure
--prefix=$ABT_TOP/Inst" && \
+ "cd valgrind && ./autogen.sh && ./configure
--prefix=$ABT_TOP/Inst ${ABT_CONFIGURE_OPTIONS}" && \
\
runcmd $logfile \
"Building valgrind " \
- "cd valgrind && make && make install" && \
+ "cd valgrind && make -j ${ABT_JOBS} && make -j ${ABT_JOBS} check
&& make install" && \
\
runcmd $logfile \
"Running regression tests " \
- "cd valgrind && make regtest"
+ "${ABT_RUN_REGTEST}"
# Grab some indicative text for the short log file -- if the regtests
# succeeded, show their results. If we didn't make it that far, show
the
Index: conf/georgia-tech-cellbuzz.sendmail
===================================================================
--- conf/georgia-tech-cellbuzz.sendmail (revision 0)
+++ conf/georgia-tech-cellbuzz.sendmail (revision 0)
@@ -0,0 +1,5 @@
+
+#use: subject file-to-mail
+
+/bin/mailx -s "$1" val...@li... -- -R
bar...@gm... -r bar...@gm... < $2
+
Property changes on: conf/georgia-tech-cellbuzz.sendmail
___________________________________________________________________
Name: svn:executable
+ *
Index: conf/georgia-tech-cellbuzz.conf
===================================================================
--- conf/georgia-tech-cellbuzz.conf (revision 0)
+++ conf/georgia-tech-cellbuzz.conf (revision 0)
@@ -0,0 +1,21 @@
+
+# Specifics for the Georgia Tech Cellbuzz cluster (Fedora Core release 6 on
the host
+# and IBM BladeCenter QS20 target).
+# See also http://wiki.cc.gatech.edu/cellbuzz/index.php/Main_Page.
+
+ABT_DETAILS="IBM BladeCenter QS20"
+ABT_CONFIGURE_OPTIONS="--build=x86_64-linux-gnu
--host=powerpc64-unknown-linux --target=powerpc64-unknown-linux
STRIP=/opt/cell/bin/ppu-strip CC=/opt/cell/bin/ppu-gcc
CPP='/opt/cell/bin/ppu-gcc -E' CXX=/opt/cell/bin/ppu-g++
RANLIB=/opt/cell/bin/ppu-ranlib CCAS=/opt/cell/bin/ppu-gcc"
+ABT_RUN_REGTEST="cellbuzz_run_regtest"
+
+cellbuzz_run_regtest() {
+ cd valgrind || return $?
+ VGDIR=$PWD
+ jobid=`echo "{ cd $VGDIR && perl tests/vg_regtest --all; }
>$VGDIR/regtest-output.txt 2>&1" \
+ | /usr/pbs/bin/qsub`
+ echo "Job ID = ${jobid}"
+ while [ `/usr/pbs/bin/qstat "${jobid}" 2>/dev/null | wc --lines` -gt 0 ]
+ do
+ sleep 10
+ done
+ cat regtest-output.txt
+}
|