1 *** tools/regression/run_tests.sh.orig 2007-07-31 19:44:25.000000000 -0500
2 --- tools/regression/run_tests.sh 2007-08-01 12:17:25.000000000 -0500
5 # This can be either a non-exitent directory or an already complete Boost
8 ! boost_root="$HOME/CVSROOTs/Boost/boost_regression"
11 # Wether to fetch the most current Boost code from CVS (yes/no):
13 # This can be either a non-exitent directory or an already complete Boost
16 ! boost_root="/usr/src/redhat/BUILD/boost_1_34_1"
19 # Wether to fetch the most current Boost code from CVS (yes/no):
20 *************** test_tools=gcc
25 - # "comment_path" is the path to an html-file describing the test environment.
26 - # The content of this file will be embedded in the status pages being produced.
28 - comment_path="$boost_root/../regression_comment.html"
30 # "test_dir" is the relative path to the directory to run the tests in,
31 # defaults to "status" and runs all the tests, but could be a sub-directory
32 # for example "libs/regex/test" to run the regex tests alone.
37 ### DEFAULTS ARE OK FOR THESE.
43 # "test_dir" is the relative path to the directory to run the tests in,
44 # defaults to "status" and runs all the tests, but could be a sub-directory
45 # for example "libs/regex/test" to run the regex tests alone.
50 + # "comment_path" is the path to an html-file describing the test environment.
51 + # The content of this file will be embedded in the status pages being produced.
53 + comment_path="$boost_root/$test_dir/regression_comment.html"
56 ### DEFAULTS ARE OK FOR THESE.
58 *************** exe_suffix=
62 bjam="$boost_root/tools/jam/src/bin/bjam$exe_suffix"
65 + bjam_flags="--layout=system variant=release -sICU_PATH=/usr --user-config=$boost_root/user-config.jam"
68 # "process_jam_log", and "compiler_status" paths to built helper programs:
69 # The location of the executables of the regression help programs. These
74 export BOOST_BUILD_PATH
76 + # For shared objects.
77 + old_ld_library_path=$LD_LIBRARY_PATH
78 + old_ld_run_path=$LD_RUN_PATH
79 + LD_LIBRARY_PATH="$boost_root/stage/lib:$old_ld_library_path"
80 + LD_RUN_PATH="$boost_root/stage/lib:$old_ld_run_path"
81 + export LD_LIBRARY_PATH
90 # rebuild bjam if required:
93 ! cd "$boost_root/tools/jam/src" && \
94 ! LOCATE_TARGET=bin sh ./build.sh
95 ! if test $? != 0 ; then
96 ! echo "bjam build failed."
103 # rebuild bjam if required:
105 ! echo "finding or building bjam":
106 ! if test ! -f "$bjam" ; then
107 ! echo "building bjam":
108 ! cd "$boost_root/tools/jam/src" && \
109 ! LOCATE_TARGET=bin sh ./build.sh
110 ! if test $? != 0 ; then
111 ! echo "bjam build failed."
119 # rebuild the regression test helper programs if required:
121 echo building regression test helper programs:
122 ! cd "$boost_root/tools/regression/build" && \
123 ! "$bjam" $toolset release
124 if test $? != 0 ; then
125 echo "helper program build failed."
128 # rebuild the regression test helper programs if required:
130 echo building regression test helper programs:
131 ! cd "$boost_root/tools/regression/build" && "$bjam" $bjam_flags $toolset
132 if test $? != 0 ; then
133 echo "helper program build failed."
135 *************** for tool in $test_tools ; do
138 echo running the $tool regression tests:
139 cd "$boost_root/$test_dir"
140 ! "$bjam" $tool --dump-tests 2>&1 | tee regress.log
146 echo running the $tool regression tests:
147 cd "$boost_root/$test_dir"
148 ! echo "<p> begin time: " `date` "</p>" >> "$comment_path"
149 ! "$bjam" $bjam_flags $tool --dump-tests 2>&1 | tee regress.log
150 ! echo "<p> end time: " `date` "</p>" >> "$comment_path"
154 *************** if test $? != 0 ; then
161 + LD_LIBRARY_PATH="$old_ld_library_path"
162 + LD_RUN_PATH="$old_ld_run_path"
163 + export LD_LIBRARY_PATH