2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

CI: Fix more testing configuration issues.

* Disable testing the old mingw32 - it's too broken.
* Add feature dependency checks for new C++11 tests.
* Disable some tests that generate too large object files.
This commit is contained in:
jzmaddock
2017-06-05 09:32:00 +01:00
parent 1cf0598c54
commit 540c93c542
7 changed files with 16 additions and 15 deletions

View File

@@ -36,8 +36,6 @@ environment:
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
- ARGS: --toolset=gcc address-model=32
PATH: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
- ARGS: --toolset=gcc address-model=32 linkflags=-Wl,-allow-multiple-definition
PATH: C:\MinGW\bin;%PATH%
install:

View File

@@ -63,7 +63,7 @@ run geometric_examples.cpp : : : <exception-handling>off:<build>no ;
run hyperexponential_snips.cpp ;
run hyperexponential_more_snips.cpp ;
run inverse_chi_squared_example.cpp ;
run legendre_stieltjes_example.cpp : : : [ requires cxx11_auto_declarations ] ;
run legendre_stieltjes_example.cpp : : : [ requires cxx11_auto_declarations cxx11_defaulted_functions cxx11_lambdas ] ;
# run inverse_chi_squared_find_df_example.cpp ;
run inverse_gamma_example.cpp ;
run inverse_gamma_distribution_example.cpp : : : <exception-handling>off:<build>no ;
@@ -128,6 +128,6 @@ explicit root_n_finding_algorithms ;
run barycentric_interpolation_example.cpp : : : [ requires cxx11_smart_ptr ] ;
run barycentric_interpolation_example_2.cpp : : : [ requires cxx11_smart_ptr ] ;
run cubic_b_spline_example.cpp : : : [ requires cxx11_smart_ptr ] ;
run cubic_b_spline_example.cpp : : : [ requires cxx11_smart_ptr cxx11_hdr_random cxx11_defaulted_functions ] ;

View File

@@ -14,6 +14,7 @@
#include <iterator>
#include <cmath>
#include <random>
#include <cstdint>
#include <boost/random/uniform_real_distribution.hpp>
#include <boost/math/tools/roots.hpp>

View File

@@ -222,7 +222,7 @@ run test_cauchy.cpp ../../test/build//boost_unit_test_framework ;
run test_cbrt.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_chi_squared.cpp ../../test/build//boost_unit_test_framework ;
run test_classify.cpp pch ../../test/build//boost_unit_test_framework ;
run test_cubic_b_spline.cpp ../../test/build//boost_unit_test_framework : : : [ requires cxx11_smart_ptr ] ;
run test_cubic_b_spline.cpp ../../test/build//boost_unit_test_framework : : : [ requires cxx11_smart_ptr cxx11_defaulted_functions ] ;
run test_difference.cpp ../../test/build//boost_unit_test_framework ;
run test_digamma.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_dist_overloads.cpp ../../test/build//boost_unit_test_framework ;
@@ -562,8 +562,8 @@ run test_jacobi.cpp pch_light ../../test/build//boost_unit_test_framework ;
run test_laplace.cpp ../../test/build//boost_unit_test_framework ;
run test_inv_hyp.cpp pch ../../test/build//boost_unit_test_framework ;
run test_laguerre.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_legendre.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run legendre_stieltjes_test.cpp ../../test/build//boost_unit_test_framework : : : [ requires cxx11_auto_declarations ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>"-Bstatic -lquadmath -Bdynamic" ] ;
run test_legendre.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework : : : [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>"-Bstatic -lquadmath -Bdynamic" ] ;
run legendre_stieltjes_test.cpp ../../test/build//boost_unit_test_framework : : : [ requires cxx11_auto_declarations cxx11_range_based_for ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>"-Bstatic -lquadmath -Bdynamic" ] ;
run test_ldouble_simple.cpp ../../test/build//boost_unit_test_framework ;
run test_logistic_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_lognormal.cpp ../../test/build//boost_unit_test_framework ;
@@ -824,8 +824,8 @@ run test_long_double_support.cpp ../../test/build//boost_unit_test_framework
lib compile_test_main : compile_test/main.cpp ;
run compile_test/cubic_spline_incl_test.cpp compile_test_main : : : [ requires cxx11_smart_ptr ] ;
run compile_test/barycentric_rational_incl_test.cpp compile_test_main : : : [ requires cxx11_smart_ptr ] ;
run compile_test/cubic_spline_incl_test.cpp compile_test_main : : : [ requires cxx11_smart_ptr cxx11_defaulted_functions ] ;
run compile_test/barycentric_rational_incl_test.cpp compile_test_main : : : [ requires cxx11_smart_ptr cxx11_defaulted_functions ] ;
run compile_test/common_factor_rt_inc_test.cpp compile_test_main ;
run compile_test/common_factor_ct_inc_test.cpp compile_test_main ;
run compile_test/compl_abs_incl_test.cpp compile_test_main ;
@@ -943,9 +943,9 @@ compile compile_test/tools_stats_inc_test.cpp ;
compile compile_test/tools_test_data_inc_test.cpp ;
compile compile_test/tools_test_inc_test.cpp ;
compile compile_test/tools_toms748_inc_test.cpp ;
compile compile_test/cubic_spline_concept_test.cpp : [ requires cxx11_smart_ptr ] ;
compile compile_test/barycentric_rational_concept_test.cpp : [ requires cxx11_smart_ptr ] ;
compile compile_test/sf_legendre_stieltjes_concept_test.cpp : [ requires cxx11_auto_declarations ] ;
compile compile_test/cubic_spline_concept_test.cpp : [ requires cxx11_smart_ptr cxx11_defaulted_functions ] ;
compile compile_test/barycentric_rational_concept_test.cpp : [ requires cxx11_smart_ptr cxx11_defaulted_functions ] ;
compile compile_test/sf_legendre_stieltjes_concept_test.cpp : [ requires cxx11_auto_declarations cxx11_defaulted_functions cxx11_lambdas ] ;
run octonion_test.cpp
../../test/build//boost_unit_test_framework ;
@@ -966,7 +966,7 @@ run test_nonfinite_trap.cpp ../../test/build//boost_unit_test_framework : : : <e
run test_signed_zero.cpp ../../test/build//boost_unit_test_framework ;
run complex_test.cpp ../../test/build//boost_unit_test_framework ;
run test_polynomial.cpp ../../test/build//boost_unit_test_framework ;
run test_polynomial.cpp ../../test/build//boost_unit_test_framework : : : <toolset>msvc:<cxxflags>-bigobj ;
run test_gcd.cpp ../../test/build//boost_unit_test_framework ;
compile multiprc_concept_check_1.cpp : <debug-symbols>off <toolset>msvc:<cxxflags>/bigobj release <exception-handling>off:<build>no ;

View File

@@ -28,7 +28,7 @@ using namespace boost::multiprecision;
typedef number<cpp_dec_float<50>, et_on> test_type;
#if !(defined(CI_SUPPRESS_KNOWN_ISSUES) && BOOST_WORKAROUND(BOOST_GCC, <= 60200) && BOOST_WORKAROUND(BOOST_GCC, >= 60000))
#if !(defined(CI_SUPPRESS_KNOWN_ISSUES) && BOOST_WORKAROUND(BOOST_GCC, <= 60200))
void foo()
{

View File

@@ -237,7 +237,7 @@ void test_legendre_p_prime()
BOOST_CHECK_CLOSE_FRACTION(::boost::math::legendre_p_prime<T>(8, x), expected, tolerance);
BOOST_CHECK_CLOSE_FRACTION(::boost::math::legendre_p_prime<T>(-9, x), expected, tolerance);
x += static_cast<T>(1)/static_cast<T>(pow(2, 4));
x += static_cast<T>(1)/static_cast<T>(pow(T(2), T(4)));
}
int n = 0;

View File

@@ -228,9 +228,11 @@ typedef boost::mpl::list<char, short, int, long> sp_integral_test_types;
typedef boost::mpl::list<int, long> large_sp_integral_test_types;
typedef boost::mpl::list<
#if !(defined(CI_SUPPRESS_KNOWN_ISSUES) && defined(__MINGW32__)) // Object file too large
#if !BOOST_WORKAROUND(BOOST_MSVC, <= 1500)
boost::multiprecision::cpp_int
#endif
#endif
> mp_integral_test_types;
typedef boost::mpl::joint_view<sp_integral_test_types, mp_integral_test_types> integral_test_types;