Blame boost-run-tests.patch

8aa88ea
*** tools/regression/src/run_tests.sh.orig	2007-07-31 19:44:25.000000000 -0500
8aa88ea
--- tools/regression/src/run_tests.sh	2007-08-01 12:17:25.000000000 -0500
8aa88ea
***************
8aa88ea
*** 15,21 ****
8aa88ea
  # This can be either a non-exitent directory or an already complete Boost
8aa88ea
  # source tree.
8aa88ea
  #
8aa88ea
! boost_root="$HOME/CVSROOTs/Boost/boost_regression"
8aa88ea
  
8aa88ea
  #
8aa88ea
  # Wether to fetch the most current Boost code from CVS (yes/no):
8aa88ea
--- 15,21 ----
8aa88ea
  # This can be either a non-exitent directory or an already complete Boost
8aa88ea
  # source tree.
8aa88ea
  #
8aa88ea
! boost_root="/usr/src/redhat/BUILD/boost_1_34_1"
8aa88ea
  
8aa88ea
  #
8aa88ea
  # Wether to fetch the most current Boost code from CVS (yes/no):
8aa88ea
*************** test_tools=gcc
8aa88ea
*** 42,58 ****
8aa88ea
  toolset=gcc
8aa88ea
  
8aa88ea
  #
8aa88ea
- # "comment_path" is the path to an html-file describing the test environment.
8aa88ea
- # The content of this file will be embedded in the status pages being produced.
8aa88ea
- #
8aa88ea
- comment_path="$boost_root/../regression_comment.html"
8aa88ea
- #
8aa88ea
  # "test_dir" is the relative path to the directory to run the tests in,
8aa88ea
  # defaults to "status" and runs all the tests, but could be a sub-directory
8aa88ea
  # for example "libs/regex/test" to run the regex tests alone.
8aa88ea
  #
8aa88ea
  test_dir="status"
8aa88ea
  
8aa88ea
  
8aa88ea
  ### DEFAULTS ARE OK FOR THESE.
8aa88ea
  
8aa88ea
--- 42,59 ----
8aa88ea
  toolset=gcc
8aa88ea
  
8aa88ea
  #
8aa88ea
  # "test_dir" is the relative path to the directory to run the tests in,
8aa88ea
  # defaults to "status" and runs all the tests, but could be a sub-directory
8aa88ea
  # for example "libs/regex/test" to run the regex tests alone.
8aa88ea
  #
8aa88ea
  test_dir="status"
8aa88ea
  
8aa88ea
+ #
8aa88ea
+ # "comment_path" is the path to an html-file describing the test environment.
8aa88ea
+ # The content of this file will be embedded in the status pages being produced.
8aa88ea
+ #
8aa88ea
+ comment_path="$boost_root/$test_dir/regression_comment.html"
8aa88ea
+ 
8aa88ea
  
8aa88ea
  ### DEFAULTS ARE OK FOR THESE.
8aa88ea
  
8aa88ea
*************** exe_suffix=
8aa88ea
*** 71,76 ****
8aa88ea
--- 72,80 ----
8aa88ea
  #
8aa88ea
  bjam="$boost_root/tools/jam/src/bin/bjam$exe_suffix"
8aa88ea
  
8aa88ea
+ # bjam options
8aa88ea
+ bjam_flags="--layout=system variant=release -sICU_PATH=/usr --user-config=$boost_root/user-config.jam"
8aa88ea
+ 
8aa88ea
  #
8aa88ea
  # "process_jam_log", and "compiler_status" paths to built helper programs:
8aa88ea
  # The location of the executables of the regression help programs. These
8aa88ea
*************** else
8aa88ea
*** 98,103 ****
8aa88ea
--- 102,115 ----
8aa88ea
  fi
8aa88ea
  export BOOST_BUILD_PATH
8aa88ea
  
8aa88ea
+ # For shared objects.
8aa88ea
+ old_ld_library_path=$LD_LIBRARY_PATH
8aa88ea
+ old_ld_run_path=$LD_RUN_PATH
8aa88ea
+ LD_LIBRARY_PATH="$boost_root/stage/lib:$old_ld_library_path"
8aa88ea
+ LD_RUN_PATH="$boost_root/stage/lib:$old_ld_run_path"
8aa88ea
+ export LD_LIBRARY_PATH
8aa88ea
+ export LD_RUN_PATH
8aa88ea
+ 
8aa88ea
  #
8aa88ea
  # STEP 0:
8aa88ea
  #
8aa88ea
*************** fi
8aa88ea
*** 126,137 ****
8aa88ea
  # STEP 1:
8aa88ea
  # rebuild bjam if required:
8aa88ea
  #
8aa88ea
! echo building bjam:
8aa88ea
! cd "$boost_root/tools/jam/src" && \
8aa88ea
! LOCATE_TARGET=bin sh ./build.sh
8aa88ea
! if test $? != 0 ; then
8aa88ea
!     echo "bjam build failed."
8aa88ea
!     exit 256
8aa88ea
  fi
8aa88ea
  
8aa88ea
  #
8aa88ea
--- 138,152 ----
8aa88ea
  # STEP 1:
8aa88ea
  # rebuild bjam if required:
8aa88ea
  #
8aa88ea
! echo "finding or building bjam":
8aa88ea
! if test ! -f "$bjam" ; then
8aa88ea
!   echo "building bjam":
8aa88ea
!     cd "$boost_root/tools/jam/src" && \
8aa88ea
!     LOCATE_TARGET=bin sh ./build.sh
8aa88ea
!     if test $? != 0 ; then
8aa88ea
!       echo "bjam build failed."
8aa88ea
!       exit 256
8aa88ea
!     fi
8aa88ea
  fi
8aa88ea
  
8aa88ea
  #
8aa88ea
*************** fi
8aa88ea
*** 139,146 ****
8aa88ea
  # rebuild the regression test helper programs if required:
8aa88ea
  #
8aa88ea
  echo building regression test helper programs:
8aa88ea
! cd "$boost_root/tools/regression/build" && \
8aa88ea
! "$bjam" $toolset release
8aa88ea
  if test $? != 0 ; then
8aa88ea
      echo "helper program build failed."
8aa88ea
      exit 256
8aa88ea
--- 154,160 ----
8aa88ea
  # rebuild the regression test helper programs if required:
8aa88ea
  #
8aa88ea
  echo building regression test helper programs:
8aa88ea
! cd "$boost_root/tools/regression/build" && "$bjam" $bjam_flags $toolset
8aa88ea
  if test $? != 0 ; then
8aa88ea
      echo "helper program build failed."
8aa88ea
      exit 256
8aa88ea
*************** for tool in $test_tools ; do
8aa88ea
*** 158,164 ****
8aa88ea
  #
8aa88ea
  echo running the $tool regression tests:
8aa88ea
  cd "$boost_root/$test_dir"
8aa88ea
! "$bjam" $tool --dump-tests 2>&1 | tee regress.log
8aa88ea
  
8aa88ea
  #
8aa88ea
  # STEP 4:
8aa88ea
--- 172,180 ----
8aa88ea
  #
8aa88ea
  echo running the $tool regression tests:
8aa88ea
  cd "$boost_root/$test_dir"
8aa88ea
! echo "

begin time: " `date` "

" >> "$comment_path"
8aa88ea
! "$bjam" $bjam_flags $tool --dump-tests 2>&1 | tee regress.log
8aa88ea
! echo "

end time: " `date` "

" >> "$comment_path"
8aa88ea
  
8aa88ea
  #
8aa88ea
  # STEP 4:
8aa88ea
*************** if test $? != 0 ; then
8aa88ea
*** 185,190 ****
8aa88ea
--- 201,212 ----
8aa88ea
      exit 256
8aa88ea
  fi
8aa88ea
  
8aa88ea
+ # cleanup
8aa88ea
+ LD_LIBRARY_PATH="$old_ld_library_path"
8aa88ea
+ LD_RUN_PATH="$old_ld_run_path"
8aa88ea
+ export LD_LIBRARY_PATH
8aa88ea
+ export LD_RUN_PATH
8aa88ea
+ 
8aa88ea
  echo "done!"
8aa88ea
  
8aa88ea