3 # Copyright (c) 2007-2009
6 # Distributed under the Boost Software License, Version 1.0. (See
7 # accompanying file LICENSE_1_0.txt or copy at
8 # http://www.boost.org/LICENSE_1_0.txt
12 warning-options = <warnings>all <warnings-as-errors>on ;
17 project boost/units/test :
19 <source>/boost//headers
21 <toolset>msvc:<asynch-exceptions>on
22 $(warning-compilers):$(warning-options)
23 # This warning comes from the test library.
24 <toolset>msvc:<cxxflags>"/wd4701"
25 # The comes from the exception library
26 <toolset>msvc,<toolset-msvc:version>7.1:<cxxflags>"/wd4800"
29 alias test_framework : /boost//unit_test_framework/<warnings-as-errors>off ;
31 compile test_predicates.cpp ;
32 compile test_negative_denominator.cpp ;
33 compile test_dimensionless_ice1.cpp ;
34 compile test_dimensionless_ice2.cpp ;
35 compile test_mixed_value_types.cpp ;
36 compile test_complicated_system.cpp ;
37 compile test_reduce_unit.cpp ;
38 compile test_unscale.cpp ;
39 compile test_constants.cpp ;
41 run test_dimensionless_quantity.cpp ;
42 run test_implicit_conversion.cpp ;
43 run test_quantity.cpp ;
45 run test_conversion.cpp test_framework ;
46 run test_base_dimension.cpp ;
47 run test_absolute.cpp ;
48 run test_default_conversion.cpp ;
51 run test_custom_unit.cpp ;
52 run test_scaled_conversion.cpp ;
54 run test_scaled_unit.cpp test_framework ;
55 run test_output.cpp test_framework /boost//regex ;
56 run test_trig.cpp test_framework ;
58 compile-fail fail_implicit_conversion.cpp ;
59 compile-fail fail_quantity_construct.cpp ;
60 compile-fail fail_quantity_assign.cpp ;
61 compile-fail fail_quantity_add.cpp ;
62 compile-fail fail_quantity_subtract.cpp ;
63 compile-fail fail_quantity_add_assign.cpp ;
64 compile-fail fail_quantity_sub_assign.cpp ;
65 compile-fail fail_quantity_scalar_add.cpp ;
66 compile-fail fail_quantity_scalar_sub.cpp ;
67 compile-fail fail_quantity_unit_add.cpp ;
68 compile-fail fail_quantity_unit_subtract.cpp ;
69 compile-fail fail_scalar_quantity_add.cpp ;
70 compile-fail fail_scalar_quantity_sub.cpp ;
71 compile-fail fail_unit_quantity_add.cpp ;
72 compile-fail fail_unit_quantity_subtract.cpp ;
73 compile-fail fail_adl_detail.cpp ;
74 compile-fail fail_heterogeneous_unit.cpp ;
75 compile-fail fail_base_dimension.cpp ;
76 compile-fail fail_add_temperature.cpp ;
77 compile-fail fail_quantity_non_unit.cpp ;