1# Boost Ratio Library test Jamfile 2 3# Copyright Beman Dawes 2003, 2006, 2008 4 5# Distributed under the Boost Software License, Version 1.0. 6# See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt 7 8# See library home page at http://www.boost.org/libs/ratio 9 10# uncomment one if the above lines if you build outside the Boost release 11#local BOOST_ROOT = /boost_1_41_0 ; 12#local BOOST_ROOT = c:/cygwin/boost_1_41_0 ; 13 14if ! $(BOOST_ROOT) 15{ 16 BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ; 17} 18 19project 20 : requirements 21 #<os>LINUX:<threading>multi 22 # uncomment the line above if you build outside the Boost release 23 #<include>$(BOOST_ROOT) 24 # uncomment the line above if you build outside the Boost release 25 #<include>../../.. 26 <toolset>msvc:<asynch-exceptions>on 27 <define>BOOST_ENABLE_WARNINGS 28 <define>BOOST_RATIO_USES_MPL_ASSERT 29 <define>BOOST_RATIO_VERSION=2 30 <define>BOOST_MPL_NEXT_PRIOR_EXT 31 #<toolset>sun:<define>BOOST_COMMON_TYPE_DONT_USE_TYPEOF 32 #<toolset>sun:<define>BOOST_TYPEOF_EMULATION 33 <toolset>sun:<define>__typeof__=__typeof__ 34 <warnings>all 35 <toolset>gcc:<cxxflags>-Wextra 36 <toolset>gcc:<cxxflags>-Wno-long-long 37 <toolset>gcc:<cxxflags>-pedantic 38 <toolset>darwin:<cxxflags>-Wextra 39 <toolset>darwin:<cxxflags>-Wno-long-long 40 <toolset>darwin:<cxxflags>-pedantic 41 #<toolset>pathscale:<cxxflags>-Wextra 42 <toolset>pathscale:<cxxflags>-Wno-long-long 43 <toolset>pathscale:<cxxflags>-pedantic 44 <toolset>clang:<cxxflags>-Wextra 45 <toolset>clang:<cxxflags>-pedantic 46 <toolset>clang:<cxxflags>-Wno-long-long 47 #<toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers 48 #<toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option 49 #<toolset>gcc-mingw-4.6.0:<cxxflags>-fdiagnostics-show-option 50 <toolset>msvc:<cxxflags>/wd4127 51# Note: Some of the remarks from the Intel compiler are disabled 52# remark #1418: external function definition with no prior declaration 53# remark #304: access control not specified ("public" by default) 54 <toolset>intel:<cxxflags>-wd304,1418 55 ; 56 57 test-suite "ratio_ratio" 58 : 59 [ compile typedefs_pass.cpp ] 60 [ compile ratio_ratio/ratio_pass.cpp ] 61 [ compile-fail ratio_ratio/ratio1_fail.cpp ] 62 [ compile-fail ratio_ratio/ratio2_fail.cpp ] 63 [ compile-fail ratio_ratio/ratio3_fail.cpp ] 64 [ compile-fail ratio_ratio/ratio4_fail.cpp ] 65 ; 66 67 test-suite "ratio_io" 68 : 69 [ compile-fail ratio_io/ratio_io_fail.cpp ] 70 [ run ratio_io/ratio_io_pass.cpp ] 71 ; 72 73 test-suite "ratio_arithmetic" 74 : 75 [ compile ratio_arithmetic/ratio_add_pass.cpp ] 76 [ compile ratio_arithmetic/ratio_subtract_pass.cpp ] 77 [ compile ratio_arithmetic/ratio_multiply_pass.cpp ] 78 [ compile ratio_arithmetic/ratio_divide_pass.cpp ] 79 [ compile-fail ratio_arithmetic/ratio_add_fail.cpp ] 80 [ compile-fail ratio_arithmetic/ratio_add_2_fail.cpp ] 81 [ compile-fail ratio_arithmetic/ratio_add_3_fail.cpp ] 82 [ compile-fail ratio_arithmetic/ratio_subtract_fail.cpp ] 83 [ compile-fail ratio_arithmetic/ratio_multiply_fail.cpp ] 84 [ compile-fail ratio_arithmetic/ratio_divide_fail.cpp ] 85 [ compile ratio_arithmetic/ratio_negate_pass.cpp ] 86 [ compile ratio_arithmetic/ratio_sign_pass.cpp ] 87 [ compile ratio_arithmetic/ratio_abs_pass.cpp ] 88 [ compile ratio_arithmetic/ratio_power_pass.cpp ] 89 ; 90 91 test-suite "ratio_comparison" 92 : 93 [ compile ratio_comparison/ratio_equal_pass.cpp ] 94 [ compile ratio_comparison/ratio_not_equal_pass.cpp ] 95 [ compile ratio_comparison/ratio_less_pass.cpp ] 96 [ compile ratio_comparison/ratio_less_equal_pass.cpp ] 97 [ compile ratio_comparison/ratio_greater_pass.cpp ] 98 [ compile ratio_comparison/ratio_greater_equal_pass.cpp ] 99 ; 100 101 test-suite "examples" 102 : 103 [ run ../example/si_physics.cpp ] 104 [ run ../example/display_ex.cpp ] 105 ; 106 107 test-suite "ratio_ext" 108 : 109 [ run ratio_extensions/ratio_ext_pass.cpp ] 110 [ compile ratio_extensions/mpl_plus_pass.cpp ] 111 [ compile ratio_extensions/mpl_minus_pass.cpp ] 112 [ compile ratio_extensions/mpl_times_pass.cpp ] 113 [ compile ratio_extensions/mpl_divides_pass.cpp ] 114 [ compile ratio_extensions/mpl_negate_pass.cpp ] 115 [ compile ratio_extensions/mpl_sign_pass.cpp ] 116 [ compile ratio_extensions/mpl_abs_pass.cpp ] 117 [ compile ratio_extensions/mpl_equal_to_pass.cpp ] 118 [ compile ratio_extensions/mpl_not_equal_to_pass.cpp ] 119 [ compile ratio_extensions/mpl_less_pass.cpp ] 120 [ compile ratio_extensions/mpl_less_equal_pass.cpp ] 121 [ compile ratio_extensions/mpl_greater_pass.cpp ] 122 [ compile ratio_extensions/mpl_greater_equal_pass.cpp ] 123 [ compile ratio_extensions/mpl_arithmetic_pass.cpp ] 124 [ compile ratio_extensions/mpl_comparison_pass.cpp ] 125 [ compile ratio_extensions/mpl_rational_constant_pass.cpp ] 126 127 ; 128 129 #test-suite "tickets" 130 # : 131 # [ run test_6498_pass.cpp ] 132 # ; 133