Skip to content

Commit

Permalink
Conditionally disable MP testing for pFq
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Mar 7, 2023
1 parent e06292f commit 573057d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
4 changes: 4 additions & 0 deletions test/test_0F1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ BOOST_AUTO_TEST_CASE( test_main )
#endif
#endif
#if !defined(TEST) || (TEST == 3)
#if defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
#endif
#endif
#if !defined(TEST) || (TEST == 4)
#if defined(BOOST_MATH_RUN_MP_TESTS)
typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<40> > dec_40;
test_spots(dec_40(), "dec_40");
#endif
#endif
}

Expand Down
6 changes: 5 additions & 1 deletion test/test_1F0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ BOOST_AUTO_TEST_CASE( test_main )
#endif
#endif
#if !defined(TEST) || (TEST == 2)
#if defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_bin_float_quad());
#endif
#endif
#if !defined(TEST) || (TEST == 3)
#if (!defined(TEST) || (TEST == 3))
#if defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_dec_float_50());
#endif
#endif
}

Expand Down
4 changes: 2 additions & 2 deletions test/test_1F1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ BOOST_AUTO_TEST_CASE( test_main )
//
// These next 2 tests take effectively "forever" to compile with clang:
//
#if (!defined(TEST) || (TEST == 6)) && !defined(__clang__)
#if (!defined(TEST) || (TEST == 6)) && !defined(__clang__) && defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
#endif
#if (!defined(TEST) || (TEST == 7)) && !defined(__clang__)
#if (!defined(TEST) || (TEST == 7)) && !defined(__clang__) && defined(BOOST_MATH_RUN_MP_TESTS)
typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<40> > dec_40;
test_spots(dec_40(), "dec_40");
#endif
Expand Down
4 changes: 2 additions & 2 deletions test/test_1F1_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ BOOST_AUTO_TEST_CASE( test_main )
#endif
#endif
#endif
#if (!defined(TEST) || (TEST == 6)) && !defined(__clang__)
#if (!defined(TEST) || (TEST == 6)) && !defined(__clang__) && defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
#endif
#if (!defined(TEST) || (TEST == 7)) && !defined(__clang__)
#if (!defined(TEST) || (TEST == 7)) && !defined(__clang__) && defined(BOOST_MATH_RUN_MP_TESTS)
typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<40> > dec_40;
test_spots(dec_40(), "dec_40");
#endif
Expand Down
4 changes: 4 additions & 0 deletions test/test_1F1_regularized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,15 @@ BOOST_AUTO_TEST_CASE( test_main )
#endif
#endif
#if (!defined(TEST) || (TEST == 6)) && !defined(__clang__)
#if defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
#endif
#endif
#if (!defined(TEST) || (TEST == 7)) && !defined(__clang__)
#if defined(BOOST_MATH_RUN_MP_TESTS)
typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<40> > dec_40;
test_spots(dec_40(), "dec_40");
#endif
#endif
}

6 changes: 4 additions & 2 deletions test/test_2F0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ BOOST_AUTO_TEST_CASE( test_main )
#define BOOST_MATH_NO_MP_TESTS
#endif

#ifndef BOOST_MATH_NO_MP_TESTS
#if !defined(TEST) || (TEST == 3)
#if defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
#endif
#endif
#if !defined(TEST) || (TEST == 4)
#if defined(BOOST_MATH_RUN_MP_TESTS)
using dec_40 = boost::multiprecision::number<boost::multiprecision::cpp_dec_float<40>>;
test_spots(dec_40(), "dec_40");
#endif
#endif
#endif
}
4 changes: 4 additions & 0 deletions test/test_pFq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ BOOST_AUTO_TEST_CASE( test_main )
#endif
#endif
#if (!defined(TEST) || (TEST == 6)) && !defined(__clang__)
#if defined(BOOST_MATH_RUN_MP_TESTS)
test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
#endif
#endif
#if (!defined(TEST) || (TEST == 7)) && !defined(__clang__)
#if defined(BOOST_MATH_RUN_MP_TESTS)
typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<40> > dec_40;
test_spots(dec_40(), "dec_40");
#endif
#endif
#endif
}
Expand Down

0 comments on commit 573057d

Please sign in to comment.