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 tests/vg_regtest --all"
+fi
#----------------------------------------------------------------------------
# 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