Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74685 - trunk/libs/chrono/test
From: vicente.botet_at_[hidden]
Date: 2011-10-04 03:29:32


Author: viboes
Date: 2011-10-04 03:29:30 EDT (Tue, 04 Oct 2011)
New Revision: 74685
URL: http://svn.boost.org/trac/boost/changeset/74685

Log:
Chrono: reduce the combinations of header-only, shared, static link to reduce test time by 50%.
Text files modified:
   trunk/libs/chrono/test/Jamfile.v2 | 158 +++++++++++++++++++++++++++++----------
   1 files changed, 115 insertions(+), 43 deletions(-)

Modified: trunk/libs/chrono/test/Jamfile.v2
==============================================================================
--- trunk/libs/chrono/test/Jamfile.v2 (original)
+++ trunk/libs/chrono/test/Jamfile.v2 2011-10-04 03:29:30 EDT (Tue, 04 Oct 2011)
@@ -51,11 +51,11 @@
         :
             <library>/boost/system//boost_system
         : $(sources[1]:B)_shared ]
- [ run $(sources) ../build//boost_chrono/<link>static
- : :
- :
- <library>/boost/system//boost_system
- : $(sources[1]:B)_static ]
+ #[ run $(sources) ../build//boost_chrono/<link>static
+ # : :
+ # :
+ # <library>/boost/system//boost_system
+ # : $(sources[1]:B)_static ]
     [ run $(sources)
         : :
         : <define>BOOST_CHRONO_HEADER_ONLY
@@ -73,11 +73,11 @@
         :
             <library>/boost/system//boost_system
         : $(name)_shared ]
- [ run $(sources) ../build//boost_chrono/<link>static
- : :
- :
- <library>/boost/system//boost_system
- : $(name)_static ]
+ #[ run $(sources) ../build//boost_chrono/<link>static
+ # : :
+ # :
+ # <library>/boost/system//boost_system
+ # : $(name)_static ]
     [ run $(sources)
         : :
         : <define>BOOST_CHRONO_HEADER_ONLY
@@ -97,11 +97,56 @@
         :
             <library>/boost/system//boost_system
         : $(sources[1]:B)_shared ]
- [ run $(sources) ../build//boost_chrono/<link>static
+ #[ run $(sources) ../build//boost_chrono/<link>static
+ # : :
+ # :
+ # <library>/boost/system//boost_system
+ # : $(sources[1]:B)_static ]
+ [ run $(sources)
+ : :
+ : <define>BOOST_CHRONO_HEADER_ONLY
+ # comment one of the following lines
+ #<define>BOOST_SYSTEM_INLINED
+ <library>/boost/system//boost_system
+ : $(sources[1]:B)_header ]
+ ;
+}
+rule chrono-run2-mt ( sources : name )
+{
+ return
+ [ run $(sources) ../build//boost_chrono
+ : :
+ :
+ <library>/boost/system//boost_system
+ : $(name)_shared ]
+ #[ run $(sources) ../build//boost_chrono/<link>static
+ # : :
+ # :
+ # <library>/boost/system//boost_system
+ # : $(name)_static ]
+ [ run $(sources)
+ : :
+ : <define>BOOST_CHRONO_HEADER_ONLY
+ # comment one of the following lines
+ #<define>BOOST_SYSTEM_INLINED
+ <library>/boost/system//boost_system
+ : $(name)_header ]
+ ;
+}
+
+rule chrono-run-check ( sources )
+{
+ return
+ [ run $(sources)
+ : :
+ :
+ <library>/boost/system//boost_system
+ : $(sources[1]:B)_shared ]
+ [ run $(sources)
         : :
         :
             <library>/boost/system//boost_system
- : $(sources[1]:B)_static ]
+ : $(sources[1]:B)_static ]
     [ run $(sources)
         : :
         : <define>BOOST_CHRONO_HEADER_ONLY
@@ -111,15 +156,16 @@
         : $(sources[1]:B)_header ]
     ;
 }
-rule chrono-run2-mt ( sources : name )
+
+rule chrono-run-check2 ( sources : name )
 {
     return
- [ run $(sources) ../build//boost_chrono
+ [ run $(sources)
         : :
         :
             <library>/boost/system//boost_system
         : $(name)_shared ]
- [ run $(sources) ../build//boost_chrono/<link>static
+ [ run $(sources)
         : :
         :
             <library>/boost/system//boost_system
@@ -133,6 +179,31 @@
         : $(name)_header ]
     ;
 }
+
+rule chrono-run-header ( sources )
+{
+ return
+ [ run $(sources)
+ : :
+ :
+ <library>/boost/system//boost_system
+ : $(sources[1]:B)_shared ]
+ ;
+}
+
+rule chrono-run-header2 ( sources : name )
+{
+ return
+ [ run $(sources)
+ : :
+ : <define>BOOST_CHRONO_HEADER_ONLY
+ # comment one of the following lines
+ #<define>BOOST_SYSTEM_INLINED
+ <library>/boost/system//boost_system
+ : $(name)_header ]
+ ;
+}
+
 rule chrono-compile ( sources )
 {
     return
@@ -161,27 +232,28 @@
     ;
 }
 
+
     test-suite "examples"
         :
- [ chrono-run ../example/cycle_count.cpp ]
- [ chrono-run ../example/runtime_resolution.cpp ]
- [ chrono-run ../example/xtime.cpp ]
- [ chrono-run ../example/saturating.cpp ]
+ [ chrono-run-header ../example/cycle_count.cpp ]
+ [ chrono-run-header ../example/runtime_resolution.cpp ]
+ [ chrono-run-header ../example/xtime.cpp ]
+ [ chrono-run-header ../example/saturating.cpp ]
         [ chrono-run ../example/min_time_point.cpp ]
- [ chrono-run ../example/i_dont_like_the_default_duration_behavior.cpp ]
+ [ chrono-run-header ../example/i_dont_like_the_default_duration_behavior.cpp ]
         [ chrono-run ../example/simulated_thread_interface_demo.cpp ]
- [ chrono-run ../example/timeval_demo.cpp ]
+ [ chrono-run-header ../example/timeval_demo.cpp ]
         [ chrono-run ../example/chrono_unit_test.cpp ]
- [ chrono-run ../example/explore_limits.cpp ]
- [ chrono-run ../example/test_duration.cpp ]
+ [ chrono-run-header ../example/explore_limits.cpp ]
+ [ chrono-run-header ../example/test_duration.cpp ]
         [ chrono-run ../example/test_clock.cpp ]
- [ chrono-run ../example/miscellaneous.cpp ]
- [ chrono-run ../example/test_special_values.cpp ]
+ [ chrono-run-header ../example/miscellaneous.cpp ]
+ [ chrono-run-header ../example/test_special_values.cpp ]
         [ chrono-run ../example/manipulate_clock_object.cpp ]
         #[ chrono-run ../example/chrono_accuracy_test.cpp ]
         [ chrono-run-mt ../example/test_thread_clock.cpp ]
         [ chrono-run ../example/french.cpp ]
- [ chrono-run ../example/rounding.cpp ]
+ [ chrono-run-header ../example/rounding.cpp ]
         #[ chrono-run ../example/await_keystroke.cpp ]
         ;
 
@@ -190,7 +262,7 @@
         [ chrono-compile2 traits/common_type_duration_pass.cpp : traits_common_type_duration_pass ]
         [ chrono-compile2 traits/common_type_time_point_pass.cpp : traits_common_type_time_point_pass ]
         [ chrono-compile2 traits/treat_as_floating_point_pass.cpp : traits_treat_as_floating_point_pass ]
- [ chrono-run2 traits/duration_values_pass.cpp : traits_duration_values_pass ]
+ [ chrono-run-header2 traits/duration_values_pass.cpp : traits_duration_values_pass ]
         ;
 
     test-suite "duration"
@@ -202,11 +274,11 @@
         [ chrono-compile duration/types_pass.cpp ]
         [ chrono-compile duration/ratio_alias_pass.cpp ]
         [ chrono-compile duration/typedefs_pass.cpp ]
- [ chrono-run duration/arithmetic_pass.cpp ]
- [ chrono-run duration/duration_cast_pass.cpp ]
+ [ chrono-run-header duration/arithmetic_pass.cpp ]
+ [ chrono-run-header duration/duration_cast_pass.cpp ]
         [ compile-fail duration/duration_cast_int_fail.cpp ]
- [ chrono-run duration/comparisons_pass.cpp ]
- [ chrono-run duration/constructor_pass.cpp ]
+ [ chrono-run-header duration/comparisons_pass.cpp ]
+ [ chrono-run-header duration/constructor_pass.cpp ]
         [ compile-fail duration/cons/convert_float_to_int_fail.cpp ]
         [ compile-fail duration/cons/convert_inexact_fail.cpp ]
         [ compile-fail duration/cons/implicit_constructot_fail.cpp ]
@@ -216,24 +288,24 @@
         [ compile-fail duration/nonmember/modulus_rep2_fail.cpp ]
         [ compile-fail duration/nonmember/times_rep2_lhs_fail.cpp ]
         [ compile-fail duration/nonmember/times_rep2_rhs_fail.cpp ]
- [ chrono-run duration/duration_values_pass.cpp ]
+ [ chrono-run-header duration/duration_values_pass.cpp ]
         ;
 
     test-suite "time_point"
         :
         [ chrono-compile2 time_point/default_duration_pass.cpp : time_point_default_duration_pass ]
         [ compile-fail time_point/not_duration_fail.cpp : : time_point_not_duration_fail ]
- [ chrono-run2 time_point/arithmetic_pass.cpp : time_point_arithmetic_pass ]
- [ chrono-run2 time_point/arithmetic_ext_pass.cpp : time_point_arithmetic_ext_pass ]
- [ chrono-run2 time_point/time_point_cast_pass.cpp : time_point_time_point_cast_pass ]
+ [ chrono-run-header2 time_point/arithmetic_pass.cpp : time_point_arithmetic_pass ]
+ [ chrono-run-header2 time_point/arithmetic_ext_pass.cpp : time_point_arithmetic_ext_pass ]
+ [ chrono-run-header2 time_point/time_point_cast_pass.cpp : time_point_time_point_cast_pass ]
         [ compile-fail time_point/time_point_cast_int_fail.cpp : : time_point_time_point_cast_int_fail ]
- [ chrono-run2 time_point/comparisons_pass.cpp : time_point_comparisons_pass ]
+ [ chrono-run-header2 time_point/comparisons_pass.cpp : time_point_comparisons_pass ]
         [ compile-fail time_point/comparisons/equal_fail.cpp : : time_point_equal_fail ]
         [ compile-fail time_point/comparisons/less_fail.cpp : : time_point_less_fail ]
- [ chrono-run2 time_point/constructor_pass.cpp : time_point_constructor_pass ]
+ [ chrono-run-header2 time_point/constructor_pass.cpp : time_point_constructor_pass ]
         [ compile-fail time_point/cons/implicit_fail.cpp : : time_point_implicit_fail ]
         [ compile-fail time_point/cons/non_implicit_convertible_duration_fail.cpp : : time_point_non_implicit_convertible_duration_fail ]
- [ chrono-run2 time_point/min_max_pass.cpp : time_point_min_max_pass ]
+ [ chrono-run-header2 time_point/min_max_pass.cpp : time_point_min_max_pass ]
         ;
 
     test-suite "clock"
@@ -272,7 +344,7 @@
     test-suite "io_ex"
         :
         [ chrono-run-mt ../example/io_ex1.cpp ]
- [ chrono-run ../example/io_ex2.cpp ]
+ [ chrono-run-header ../example/io_ex2.cpp ]
         [ chrono-run ../example/io_ex3.cpp ]
         [ chrono-run ../example/io_ex4.cpp ]
         [ chrono-run ../example/io_ex5.cpp ]
@@ -280,10 +352,10 @@
 
     test-suite "io"
         :
- [ chrono-run io/duration_input.cpp ]
- [ chrono-run io/duration_output.cpp ]
- [ chrono-run io/time_point_input.cpp ]
- [ chrono-run io/time_point_output.cpp ]
+ [ chrono-run-header io/duration_input.cpp ]
+ [ chrono-run-header io/duration_output.cpp ]
+ [ chrono-run-header io/time_point_input.cpp ]
+ [ chrono-run-header io/time_point_output.cpp ]
         ;
 
     test-suite "win32"


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk