otaylor / rpms / boost

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