- turn off testing

- tweaks to run_tests
This commit is contained in:
Benjamin Kosnik 2005-11-17 04:46:27 +00:00
parent 7850836a71
commit 6bb05f34a6
2 changed files with 45 additions and 14 deletions

View File

@ -1,5 +1,5 @@
*** tools/regression/run_tests.sh.orig 2005-11-14 17:28:00.000000000 -0600 *** tools/regression/run_tests.sh.orig 2005-11-14 17:28:00.000000000 -0600
--- tools/regression/run_tests.sh 2005-11-15 00:42:12.000000000 -0600 --- tools/regression/run_tests.sh 2005-11-16 18:57:09.000000000 -0600
*************** ***************
*** 15,21 **** *** 15,21 ****
# This can be either a non-exitent directory or an already complete Boost # This can be either a non-exitent directory or an already complete Boost
@ -17,8 +17,27 @@
# #
# Wether to fetch the most current Boost code from CVS (yes/no): # Wether to fetch the most current Boost code from CVS (yes/no):
*************** toolset=gcc
*** 45,51 ****
# "comment_path" is the path to an html-file describing the test environment.
# The content of this file will be embedded in the status pages being produced.
#
! comment_path="$boost_root/../regression_comment.html"
### DEFAULTS ARE OK FOR THESE.
--- 45,51 ----
# "comment_path" is the path to an html-file describing the test environment.
# The content of this file will be embedded in the status pages being produced.
#
! comment_path="$boost_root/tools/regression/regression_comment.html"
### DEFAULTS ARE OK FOR THESE.
*************** for tool in $test_tools ; do *************** for tool in $test_tools ; do
*** 151,157 **** *** 149,157 ****
# STEP 3:
# run the regression tests:
# #
echo running the $tool regression tests: echo running the $tool regression tests:
cd "$boost_root/status" cd "$boost_root/status"
@ -26,29 +45,37 @@
# #
# STEP 4: # STEP 4:
--- 151,157 ---- --- 149,159 ----
# STEP 3:
# run the regression tests:
# #
+ PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
+ PYTHON_FLAGS="-sPYTHON_ROOT=/usr -sPYTHON_VERSION=$PYTHON_VERSION"
echo running the $tool regression tests: echo running the $tool regression tests:
cd "$boost_root/status" cd "$boost_root/status"
! "$bjam" -sTOOLS=$tool -sBUILD=release --dump-tests test 2>&1 | tee regress.log ! "$bjam" $PYTHON_FLAGS -sTOOLS=$tool --dump-tests test 2>&1 | tee regress.log
# #
# STEP 4: # STEP 4:
*************** done *************** done
*** 172,178 **** *** 170,178 ****
# STEP 6:
# create the html table:
# #
uname=`uname` - uname=`uname`
echo generating html tables: echo generating html tables:
! "$compiler_status" --comment "$comment_path" "$boost_root" cs-$uname.html cs-$uname-links.html ! "$compiler_status" --comment "$comment_path" "$boost_root" cs-$uname.html cs-$uname-links.html
if test $? != 0 ; then if test $? != 0 ; then
echo "Failed HTML result table generation." echo "Failed HTML result table generation."
exit 256 exit 256
--- 172,179 ---- --- 172,181 ----
# STEP 6:
# create the html table:
# #
uname=`uname`
echo generating html tables: echo generating html tables:
! echo "$compiler_status $boost_root results.html results-links.html" ! echo ""
! "$compiler_status" "$boost_root" results.html results-links.html ! echo "$compiler_status --comment $comment_path $boost_root results.html results-links.html"
! "$compiler_status" --comment "$comment_path" "$boost_root" results.html results-links.html
if test $? != 0 ; then if test $? != 0 ; then
echo "Failed HTML result table generation." echo "Failed HTML result table generation."
exit 256 exit 256

View File

@ -75,15 +75,19 @@ $BJAM $PYTHON_FLAGS "-sTOOLS=gcc" "-sBUILD=release" stage
BOOST_ROOT=`pwd`; BOOST_ROOT=`pwd`;
cd tools/regression; cd tools/regression;
(cd ./build && $BOOST_ROOT/$BJAM) (cd ./build && $BOOST_ROOT/$BJAM)
echo "<p>" `uname -a` "</p>" > regression_comment.html;
echo "" >> regression_comment.html;
echo "<p>" `g++ --version` "</p>" >> regression_comment.html;
chmod +x ./run_tests.sh; chmod +x ./run_tests.sh;
./run_tests.sh; #./run_tests.sh;
results1=$BOOST_ROOT/status/results.html results1=$BOOST_ROOT/status/results.html
results2=$BOOST_ROOT/status/results-links.html results2=$BOOST_ROOT/status/results-links.html
if [ -e $results1 ]; then if [ -f $results2 ] && [ -f $results2 ]; then
testdate=`date +%Y%m%d`; testdate=`date +%Y%m%d`;
testarch=`uname -m`; testarch=`uname -m`;
mail -s "$testdate boost regression $testarch 1" bkoz@redhat.com < $results1; email=bkoz@redhat.com
mail -s "$testdate boost regression $testarch 2" bkoz@redhat.com < $results2; mail -s "$testdate boost regression $testarch 1" $email < $results1;
mail -s "$testdate boost regression $testarch 2" $email < $results2;
fi fi
cd ../..; cd ../..;