Files
multiprecision/test/Jamfile.v2
John Maddock b653174c77 Add enhanced testing support.
Remove throw statements for BOOST_THROW_EXCEPTION.
Remove throw() qualifiers: they're a dis-optimization.

[SVN r75511]
2011-11-16 17:36:40 +00:00

586 lines
16 KiB
Plaintext

# copyright John Maddock 2008
# 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)
<toolset>msvc:<runtime-link>static
;
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_FLOAT
: test_arithmetic_cpp_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_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_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_FLOAT
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_numeric_limits_cpp_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 mp_number_concept_check.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_50
[ check-target-builds ../config//has_mpfr : : <build>no ]
: mp_number_concept_check_mpfr_50 ;
run mp_number_concept_check.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_6
[ check-target-builds ../config//has_mpfr : : <build>no ]
: mp_number_concept_check_mpfr_6 ;
run mp_number_concept_check.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_15
[ check-target-builds ../config//has_mpfr : : <build>no ]
: mp_number_concept_check_mpfr_15 ;
run mp_number_concept_check.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_17
[ check-target-builds ../config//has_mpfr : : <build>no ]
: mp_number_concept_check_mpfr_17 ;
run mp_number_concept_check.cpp mpfr
: # command line
: # input files
: # requirements
<define>TEST_MPFR_30
[ check-target-builds ../config//has_mpfr : : <build>no ]
: mp_number_concept_check_mpfr_30 ;
run mp_number_concept_check.cpp gmp
: # command line
: # input files
: # requirements
<define>TEST_MPF_50
[ check-target-builds ../config//has_gmp : : <build>no ]
: mp_number_concept_check_mpf50 ;
run mp_number_concept_check.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_FLOAT
: mp_number_concept_check_cpp_float ;
run mp_number_concept_check.cpp
: # command line
: # input files
: # requirements
<define>TEST_BACKEND
: mp_number_concept_check_backend_concept ;
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_FLOAT
: test_exp_cpp_float ;
run test_log.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_FLOAT
: test_log_cpp_float ;
run test_pow.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_FLOAT
: test_pow_cpp_float ;
run test_sinh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_FLOAT
: test_sinh_cpp_float ;
run test_cosh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_FLOAT
: test_cosh_cpp_float ;
run test_tanh.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_FLOAT
: test_tanh_cpp_float ;
run test_sin.cpp
: # command line
: # input files
: # requirements
<define>TEST_CPP_FLOAT
: test_sin_cpp_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_FLOAT
: test_cos_cpp_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_FLOAT
: test_asin_cpp_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_FLOAT
: test_acos_cpp_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_FLOAT
: test_atan_cpp_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_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 ../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_float_snips.cpp ;
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_FLOAT
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_round_cpp_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_FLOAT
[ check-target-builds ../config//has_mpfr : : <build>no ]
: test_fpclassify_cpp_float ;
run test_test.cpp ;