Files
multiprecision/test/Jamfile.v2
John Maddock 8f18e0b73f Enhance config tests.
Split cpp_int tests into smaller chunks.

[SVN r81440]
2012-11-20 18:50:08 +00:00

1059 lines
29 KiB
Plaintext

# copyright John Maddock 2011
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt.
import modules ;
import path ;
local ntl-path = [ modules.peek : NTL_PATH ] ;
local gmp_path = [ modules.peek : GMP_PATH ] ;
local mpfr_path = [ modules.peek : MPFR_PATH ] ;
local tommath_path = [ modules.peek : TOMMATH_PATH ] ;
project : requirements
<include>$(gmp_path)
<include>$(gmp_path)/mpfr
<include>$(gmp_path)/gmpfrxx
<include>$(mpfr_path)
<include>$(tommath_path)
<include>../../..
<search>$(gmp_path)
<search>$(mpfr_path)
<search>$(mpfr_path)/build.vc10/lib/Win32/Debug
<search>$(tommath_path)
# We set these to make it easier to set up and test GMP and MPFR under Win32:
<toolset>msvc:<runtime-link>static
<toolset>msvc:<link>static
<toolset>msvc:<warnings>all
<toolset>gcc:<cxxflags>-Wall
<toolset>gcc:<cxxflags>-Wextra
;
local enable-specfun = [ MATCH (--enable-specfun) : [ modules.peek : ARGV ] ] ;
local disable-concepts = [ MATCH (--disable-concepts) : [ modules.peek : ARGV ] ] ;
lib gmp ;
lib mpfr ;
if $(tommath_path)
{
TOMMATH = [ GLOB $(tommath_path) : *.c ] ;
}
else
{
lib tommath ;
TOMMATH = tommath ;
}
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_BACKEND
: test_arithmetic_backend_concept ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_arithmetic_cpp_dec_float ;
run test_arithmetic.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_arithmetic_mpf50 ;
run test_arithmetic.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_arithmetic_mpf ;
run test_arithmetic.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPZ
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_arithmetic_mpz ;
run test_arithmetic.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPZ_BOOST_RATIONAL
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_arithmetic_mpz_br ;
run test_arithmetic.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPQ
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_arithmetic_mpq ;
run test_arithmetic.cpp mpfr gmp
: # command line
: # input files
: # requirements
<define>TEST_MPFR
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_arithmetic_mpfr ;
run test_arithmetic.cpp mpfr gmp
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_arithmetic_mpfr_50 ;
run test_arithmetic.cpp $(TOMMATH)
: # command line
: # input files
: # requirements
<define>TEST_TOMMATH
[ check-target-builds ../config//has_tommath : : <build>no ]
: test_arithmetic_tommath ;
run test_arithmetic.cpp $(TOMMATH)
: # command line
: # input files
: # requirements
<define>TEST_TOMMATH_BOOST_RATIONAL
[ check-target-builds ../config//has_tommath : : <build>no ]
: test_arithmetic_tommath_br ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_1
: test_arithmetic_cpp_int_1 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_2
: test_arithmetic_cpp_int_2 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_3
: test_arithmetic_cpp_int_3 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_4
: test_arithmetic_cpp_int_4 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_5
: test_arithmetic_cpp_int_5 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_6
: test_arithmetic_cpp_int_6 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_7
: test_arithmetic_cpp_int_7 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_8
: test_arithmetic_cpp_int_8 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_9
: test_arithmetic_cpp_int_9 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_10
: test_arithmetic_cpp_int_10 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_11
: test_arithmetic_cpp_int_11 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_12
: test_arithmetic_cpp_int_12 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_13
: test_arithmetic_cpp_int_13 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_14
: test_arithmetic_cpp_int_14 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_15
: test_arithmetic_cpp_int_15 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_16
: test_arithmetic_cpp_int_16 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_17
: test_arithmetic_cpp_int_17 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_18
: test_arithmetic_cpp_int_18 ;
run test_arithmetic.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT_BR
: test_arithmetic_cpp_int_br ;
run test_numeric_limits.cpp
: # command line
: # input files
: # requirements
<define>TEST_BACKEND
: test_numeric_limits_backend_concept ;
run test_numeric_limits.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_numeric_limits_mpf50 ;
run test_numeric_limits.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_numeric_limits_mpf ;
run test_numeric_limits.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPZ
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_numeric_limits_mpz ;
run test_numeric_limits.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPQ
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_numeric_limits_mpq ;
run test_numeric_limits.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_numeric_limits_mpfr ;
run test_numeric_limits.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_numeric_limits_mpfr_50 ;
run test_numeric_limits.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_numeric_limits_cpp_dec_float ;
run test_numeric_limits.cpp $(TOMMATH)
: # command line
: # input files
: # requirements
<define>TEST_TOMMATH
[ check-target-builds ../config//has_tommath : : <build>no ]
: test_numeric_limits_tommath ;
run test_numeric_limits.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT
: test_numeric_limits_cpp_int ;
run test_exp.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_exp_mpf50 ;
run test_log.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_log_mpf50 ;
run test_pow.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_pow_mpf50 ;
run test_sinh.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_sinh_mpf50 ;
run test_cosh.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_cosh_mpf50 ;
run test_tanh.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_tanh_mpf50 ;
run test_exp.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_exp_mpfr50 ;
run test_log.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_log_mpfr50 ;
run test_pow.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_pow_mpfr50 ;
run test_sinh.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_sinh_mpfr50 ;
run test_cosh.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_cosh_mpfr50 ;
run test_tanh.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_tanh_mpfr50 ;
run test_exp.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_exp_cpp_dec_float ;
run test_sqrt.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_sqrt_cpp_dec_float ;
run test_log.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_log_cpp_dec_float ;
run test_pow.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_pow_cpp_dec_float ;
run test_sinh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_sinh_cpp_dec_float ;
run test_cosh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_cosh_cpp_dec_float ;
run test_tanh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_tanh_cpp_dec_float ;
run test_sin.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_sin_cpp_dec_float ;
run test_sin.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_sin_mpf50 ;
run test_sin.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_sin_mpfr_50 ;
run test_cos.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_cos_cpp_dec_float ;
run test_cos.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_cos_mpf50 ;
run test_cos.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_cos_mpfr_50 ;
run test_asin.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_asin_cpp_dec_float ;
run test_asin.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_asin_mpf50 ;
run test_asin.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_asin_mpfr_50 ;
run test_acos.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_acos_cpp_dec_float ;
run test_acos.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_acos_mpf50 ;
run test_acos.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_acos_mpfr_50 ;
run test_atan.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_atan_mpf50 ;
run test_atan.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_atan_cpp_dec_float ;
run test_atan.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_atan_mpfr_50 ;
run test_tan.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_tan_mpf50 ;
run test_tan.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_tan_cpp_dec_float ;
run test_tan.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_tan_mpfr_50 ;
run test_gmp_conversions.cpp gmp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ] ;
run test_mpfr_conversions.cpp gmp mpfr
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_mpfr : : <build>no ] ;
run test_round.cpp
: # command line
: # input files
: # requirements
<define>TEST_BACKEND
: test_round_backend_concept ;
run test_round.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_round_mpf50 ;
run test_round.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_round_mpfr_50 ;
run test_round.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_round_cpp_dec_float ;
run test_fpclassify.cpp
: # command line
: # input files
: # requirements
<define>TEST_BACKEND
: test_fpclassify_backend_concept ;
run test_fpclassify.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_fpclassify_mpf50 ;
run test_fpclassify.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_fpclassify_mpfr_50 ;
run test_fpclassify.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_fpclassify_cpp_dec_float ;
run test_constants.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_constants_mpf50 ;
run test_constants.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_constants_mpfr_50 ;
run test_constants.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
: test_constants_cpp_dec_float ;
run test_move.cpp mpfr gmp
: # command line
: # input files
: # requirements
<define>TEST_MPFR
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_move_mpfr ;
run test_move.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_GMP
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_move_gmp ;
run test_move.cpp $(TOMMATH)
: # command line
: # input files
: # requirements
<define>TEST_TOMMATH
[ check-target-builds ../config//has_tommath : : <build>no ]
: test_move_tommath ;
run test_move.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT
: test_move_cpp_int ;
run test_test.cpp ;
compile test_constexpr.cpp ;
run test_float_io.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
#release # Otherwise runtime is slow
: test_float_io_cpp_dec_float ;
run test_float_io.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
release # Otherwise runtime is slow
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_float_io_mpf ;
run test_float_io.cpp mpfr gmp
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
release # Otherwise runtime is slow
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_float_io_mpfr ;
run test_int_io.cpp $(TOMMATH)
: # command line
: # input files
: # requirements
<define>TEST_TOMMATH
release # Otherwise runtime is slow
[ check-target-builds ../config//has_tommath : : <build>no ]
: test_int_io_tommath ;
run test_int_io.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPZ
release # Otherwise runtime is slow
[ check-target-builds ../config//has_gmp : : <build>no ]
: test_int_io_mpz ;
run test_int_io.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT
release # Otherwise runtime is slow
: test_int_io_cpp_int ;
run test_cpp_int.cpp gmp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ]
release # otherwise runtime is too slow!!
<define>TEST1
: test_cpp_int_1
;
run test_cpp_int.cpp gmp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ]
release # otherwise runtime is too slow!!
<define>TEST2
: test_cpp_int_2
;
run test_cpp_int.cpp gmp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ]
release # otherwise runtime is too slow!!
<define>TEST3
: test_cpp_int_3
;
run test_checked_cpp_int.cpp ;
run test_miller_rabin.cpp gmp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ]
release # otherwise runtime is too slow!!
;
run test_rational_io.cpp $(TOMMATH)
: # command line
: # input files
: # requirements
<define>TEST_TOMMATH
[ check-target-builds ../config//has_tommath : : <build>no ]
release # Otherwise runtime is slow
: test_rational_io_tommath ;
run test_rational_io.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPQ
[ check-target-builds ../config//has_gmp : : <build>no ]
release # Otherwise runtime is slow
: test_rational_io_mpz ;
run test_rational_io.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_INT
release # Otherwise runtime is slow
: test_rational_io_cpp_int ;
run test_generic_conv.cpp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : <define>TEST_GMP <source>gmp : ]
[ check-target-builds ../config//has_tommath : <define>TEST_TOMMATH <source>$(TOMMATH) : ]
[ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <source>mpfr : ]
release # Otherwise runtime is slow
;
run ../example/gmp_snips.cpp gmp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ] ;
run ../example/mpfr_snips.cpp mpfr
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_mpfr : : <build>no ] ;
run ../example/cpp_dec_float_snips.cpp ;
run ../example/cpp_int_snips.cpp ;
run ../example/tommath_snips.cpp $(TOMMATH)
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_tommath : : <build>no ] ;
run ../example/floating_point_examples.cpp : : : <toolset>gcc:<cxxflags>-std=c++0x ;
run test_cpp_int_conv.cpp ;
run test_native_integer.cpp ;
run test_mixed_cpp_int.cpp ;
run test_mixed_float.cpp
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : <define>TEST_GMP <library>gmp : ]
[ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <library>mpfr <library>gmp : ] ;
compile include_test/mpfr_include_test.cpp
: # requirements
[ check-target-builds ../config//has_mpfr : : <build>no ] ;
compile include_test/gmp_include_test.cpp
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ] ;
compile include_test/tommath_include_test.cpp
: # requirements
[ check-target-builds ../config//has_tommath : : <build>no ] ;
compile include_test/cpp_int_include_test.cpp ;
compile include_test/cpp_dec_float_include_test.cpp ;
run ublas_interop/test1.cpp ublas_interop/test11.cpp ublas_interop/test12.cpp ublas_interop/test13.cpp ;
run ublas_interop/test2.cpp ublas_interop/test21.cpp ublas_interop/test22.cpp ublas_interop/test23.cpp ;
#run ublas_interop/test3.cpp ublas_interop/test31.cpp ublas_interop/test32.cpp ublas_interop/test33.cpp ;
run ublas_interop/test4.cpp ublas_interop/test42.cpp ublas_interop/test43.cpp ;
run ublas_interop/test5.cpp ublas_interop/test52.cpp ublas_interop/test53.cpp ;
run ublas_interop/test6.cpp ublas_interop/test62.cpp ublas_interop/test63.cpp ;
#run ublas_interop/test7.cpp ublas_interop/test71.cpp ublas_interop/test72.cpp ublas_interop/test73.cpp ;
if $(enable-specfun)
{
for local source in [ glob math/*.cpp ]
{
run $(source) mpfr gmp /boost/test//boost_test_exec_monitor/<link>static /boost/regex//boost_regex/<link>static
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_mpfr : : <build>no ]
<define>TEST_MPFR_50
<optimization>speed
<define>BOOST_ALL_NO_LIB
<toolset>msvc:<cxxflags>-bigobj
release
: $(source:B)_mpfr ;
run $(source) gmp /boost/test//boost_test_exec_monitor/<link>static /boost/regex//boost_regex/<link>static
: # command line
: # input files
: # requirements
[ check-target-builds ../config//has_gmp : : <build>no ]
<optimization>speed
<define>TEST_MPF_50
<define>BOOST_ALL_NO_LIB
<toolset>msvc:<cxxflags>-bigobj
release
: $(source:B)_mpf ;
run $(source) /boost/test//boost_test_exec_monitor/<link>static /boost/regex//boost_regex/<link>static
: # command line
: # input files
: # requirements
<define>TEST_CPP_DEC_FLOAT
<define>BOOST_ALL_NO_LIB
<optimization>speed
<toolset>msvc:<cxxflags>-bigobj
release
: $(source:B)_cpp_dec_float ;
}
}
for local source in [ glob compile_fail/*.cpp ]
{
compile-fail $(source)
:
[ check-target-builds ../config//has_gmp : <define>TEST_GMP <debug-symbols>off : ]
[ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <debug-symbols>off : ]
;
}
if ! $(disable-concepts)
{
for local source in [ glob concepts/*.cpp ]
{
compile $(source) mpfr
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
<debug-symbols>off
: $(source:B)_mpfr_50 ;
compile $(source) mpfr
: # requirements
<define>TEST_MPFR_6
[ check-target-builds ../config//has_mpfr : : <build>no ]
<debug-symbols>off
: $(source:B)_mpfr_6 ;
compile $(source) mpfr
: # requirements
<define>TEST_MPFR_15
[ check-target-builds ../config//has_mpfr : : <build>no ]
<debug-symbols>off
: $(source:B)_mpfr_15 ;
compile $(source) mpfr
: # requirements
<define>TEST_MPFR_17
[ check-target-builds ../config//has_mpfr : : <build>no ]
<debug-symbols>off
: $(source:B)_mpfr_17 ;
compile $(source) mpfr
: # requirements
<define>TEST_MPFR_30
[ check-target-builds ../config//has_mpfr : : <build>no ]
<debug-symbols>off
: $(source:B)_mpfr_30 ;
compile $(source) gmp
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
<debug-symbols>off
: $(source:B)_mpf50 ;
compile $(source)
: # requirements
<define>TEST_CPP_DEC_FLOAT
<debug-symbols>off
: $(source:B)_cpp_dec_float ;
compile $(source)
: # requirements
<define>TEST_CPP_DEC_FLOAT_NO_ET
<debug-symbols>off
: $(source:B)_cpp_dec_float_no_et ;
compile $(source)
: # requirements
<define>TEST_BACKEND
<debug-symbols>off
: $(source:B)_backend_concept ;
}
}