# Boost Ratio Library test Jamfile # Copyright Beman Dawes 2003, 2006, 2008 # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt # See library home page at http://www.boost.org/libs/ratio # uncomment one if the above lines if you build outside the Boost release #local BOOST_ROOT = /boost_1_41_0 ; #local BOOST_ROOT = c:/cygwin/boost_1_41_0 ; if ! $(BOOST_ROOT) { BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ; } project : requirements #LINUX:multi # uncomment the line above if you build outside the Boost release #$(BOOST_ROOT) # uncomment the line above if you build outside the Boost release #../../.. msvc:on BOOST_ENABLE_WARNINGS BOOST_RATIO_USES_MPL_ASSERT BOOST_RATIO_VERSION=2 BOOST_MPL_NEXT_PRIOR_EXT #sun:BOOST_COMMON_TYPE_DONT_USE_TYPEOF #sun:BOOST_TYPEOF_EMULATION sun:__typeof__=__typeof__ all gcc:-Wextra gcc:-Wno-long-long gcc:-pedantic darwin:-Wextra darwin:-Wno-long-long darwin:-pedantic #pathscale:-Wextra pathscale:-Wno-long-long pathscale:-pedantic clang:-Wextra clang:-pedantic clang:-Wno-long-long #gcc-mingw-4.5.0:-Wno-missing-field-initializers #gcc-mingw-4.5.0:-fdiagnostics-show-option #gcc-mingw-4.6.0:-fdiagnostics-show-option msvc:/wd4127 # Note: Some of the remarks from the Intel compiler are disabled # remark #1418: external function definition with no prior declaration # remark #304: access control not specified ("public" by default) intel:-wd304,1418 ; test-suite "ratio_ratio" : [ compile typedefs_pass.cpp ] [ compile ratio_ratio/ratio_pass.cpp ] [ compile-fail ratio_ratio/ratio1_fail.cpp ] [ compile-fail ratio_ratio/ratio2_fail.cpp ] [ compile-fail ratio_ratio/ratio3_fail.cpp ] [ compile-fail ratio_ratio/ratio4_fail.cpp ] ; test-suite "ratio_io" : [ compile-fail ratio_io/ratio_io_fail.cpp ] [ run ratio_io/ratio_io_pass.cpp ] ; test-suite "ratio_arithmetic" : [ compile ratio_arithmetic/ratio_add_pass.cpp ] [ compile ratio_arithmetic/ratio_subtract_pass.cpp ] [ compile ratio_arithmetic/ratio_multiply_pass.cpp ] [ compile ratio_arithmetic/ratio_divide_pass.cpp ] [ compile-fail ratio_arithmetic/ratio_add_fail.cpp ] [ compile-fail ratio_arithmetic/ratio_add_2_fail.cpp ] [ compile-fail ratio_arithmetic/ratio_add_3_fail.cpp ] [ compile-fail ratio_arithmetic/ratio_subtract_fail.cpp ] [ compile-fail ratio_arithmetic/ratio_multiply_fail.cpp ] [ compile-fail ratio_arithmetic/ratio_divide_fail.cpp ] [ compile ratio_arithmetic/ratio_negate_pass.cpp ] [ compile ratio_arithmetic/ratio_sign_pass.cpp ] [ compile ratio_arithmetic/ratio_abs_pass.cpp ] [ compile ratio_arithmetic/ratio_power_pass.cpp ] ; test-suite "ratio_comparison" : [ compile ratio_comparison/ratio_equal_pass.cpp ] [ compile ratio_comparison/ratio_not_equal_pass.cpp ] [ compile ratio_comparison/ratio_less_pass.cpp ] [ compile ratio_comparison/ratio_less_equal_pass.cpp ] [ compile ratio_comparison/ratio_greater_pass.cpp ] [ compile ratio_comparison/ratio_greater_equal_pass.cpp ] ; test-suite "examples" : [ run ../example/si_physics.cpp ] [ run ../example/display_ex.cpp ] ; test-suite "ratio_ext" : [ run ratio_extensions/ratio_ext_pass.cpp ] [ compile ratio_extensions/mpl_plus_pass.cpp ] [ compile ratio_extensions/mpl_minus_pass.cpp ] [ compile ratio_extensions/mpl_times_pass.cpp ] [ compile ratio_extensions/mpl_divides_pass.cpp ] [ compile ratio_extensions/mpl_negate_pass.cpp ] [ compile ratio_extensions/mpl_sign_pass.cpp ] [ compile ratio_extensions/mpl_abs_pass.cpp ] [ compile ratio_extensions/mpl_equal_to_pass.cpp ] [ compile ratio_extensions/mpl_not_equal_to_pass.cpp ] [ compile ratio_extensions/mpl_less_pass.cpp ] [ compile ratio_extensions/mpl_less_equal_pass.cpp ] [ compile ratio_extensions/mpl_greater_pass.cpp ] [ compile ratio_extensions/mpl_greater_equal_pass.cpp ] [ compile ratio_extensions/mpl_arithmetic_pass.cpp ] [ compile ratio_extensions/mpl_comparison_pass.cpp ] [ compile ratio_extensions/mpl_rational_constant_pass.cpp ] ; #test-suite "tickets" # : # [ run test_6498_pass.cpp ] # ;