Jamfile.v2 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # \libs\math\example\jamfile.v2
  2. # Runs statistics and floating-point examples.
  3. # Copyright 2007 John Maddock
  4. # Copyright Paul A. Bristow 2007, 2010, 2011.
  5. # Distributed under the Boost Software License, Version 1.0.
  6. # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. # bring in the rules for testing
  8. import testing ;
  9. import ../../config/checks/config : requires ;
  10. project
  11. : requirements
  12. <toolset>gcc:<cxxflags>-Wno-missing-braces
  13. <toolset>darwin:<cxxflags>-Wno-missing-braces
  14. <toolset>acc:<cxxflags>+W2068,2461,2236,4070
  15. <toolset>intel:<cxxflags>-Qwd264,239
  16. <toolset>msvc:<warnings>all
  17. <toolset>msvc:<asynch-exceptions>on
  18. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  19. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  20. <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
  21. <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
  22. <toolset>msvc:<cxxflags>/wd4996
  23. <toolset>msvc:<cxxflags>/wd4512
  24. <toolset>msvc:<cxxflags>/wd4610
  25. <toolset>msvc:<cxxflags>/wd4510
  26. <toolset>msvc:<cxxflags>/wd4127
  27. <toolset>msvc:<cxxflags>/wd4701
  28. <toolset>msvc:<cxxflags>/wd4127
  29. <toolset>msvc:<cxxflags>/wd4305
  30. <toolset>msvc:<cxxflags>/wd4459
  31. <toolset>msvc:<cxxflags>/wd4456 # declaration of hides previous local declaration.
  32. #-<toolset>msvc:<cxxflags>/Za # nonfinite Serialization examples fail link if disable MS extensions,
  33. # because serialization library is built with MS extensions enabled (default).
  34. <toolset>clang:<cxxflags>-Wno-unknown-pragmas
  35. <toolset>clang:<cxxflags>-Wno-language-extension-token
  36. <include>../../..
  37. <include>../include_private
  38. <exception-handling>off:<source>../test//no_eh
  39. ;
  40. test-suite examples :
  41. [ run bessel_zeros_example_1.cpp : : : <exception-handling>off:<build>no ]
  42. [ run bessel_zeros_interator_example.cpp : : : <exception-handling>off:<build>no ]
  43. [ run neumann_zeros_example_1.cpp : : : <exception-handling>off:<build>no ]
  44. [ run test_cpp_float_close_fraction.cpp ../../test/build//boost_unit_test_framework/<link>static : : : <exception-handling>off:<build>no ]
  45. [ run binomial_coinflip_example.cpp : : : <exception-handling>off:<build>no ]
  46. [ run binomial_confidence_limits.cpp ]
  47. [ run binomial_example_nag.cpp ]
  48. [ run binomial_quiz_example.cpp : : : <exception-handling>off:<build>no ]
  49. [ run binomial_sample_sizes.cpp ]
  50. [ run brent_minimise_example.cpp : : : [ requires cxx11_hdr_tuple ] ]
  51. [ run c_error_policy_example.cpp ]
  52. [ run chi_square_std_dev_test.cpp : : : <exception-handling>off:<build>no ]
  53. [ run distribution_construction.cpp : : : <exception-handling>off:<build>no ]
  54. [ run error_handling_example.cpp : : : <exception-handling>off:<build>no ]
  55. [ run error_policies_example.cpp ]
  56. [ run error_policy_example.cpp : : : <exception-handling>off:<build>no ]
  57. [ run f_test.cpp ]
  58. # [ run fft_sines_table.cpp : : : [ requires cxx11_numeric_limits ] ]
  59. # No need to re-run this routinely as it only creates a table of sines for a documentation example.
  60. [ run find_location_example.cpp : : : <exception-handling>off:<build>no ]
  61. [ run find_mean_and_sd_normal.cpp : : : <exception-handling>off:<build>no ]
  62. [ run find_root_example.cpp : : : <exception-handling>off:<build>no ]
  63. [ run find_scale_example.cpp : : : <exception-handling>off:<build>no ]
  64. [ run geometric_examples.cpp : : : <exception-handling>off:<build>no ]
  65. [ run hyperexponential_snips.cpp ]
  66. [ run hyperexponential_more_snips.cpp ]
  67. [ run inverse_chi_squared_example.cpp ]
  68. [ run legendre_stieltjes_example.cpp : : : [ requires cxx11_auto_declarations cxx11_defaulted_functions cxx11_lambdas ] ]
  69. #[ # run inverse_chi_squared_find_df_example.cpp ]
  70. #[ run lambert_w_basic_example.cpp ]
  71. [ run lambert_w_basic_example.cpp : : : [ requires cxx11_numeric_limits ] ]
  72. [ run lambert_w_simple_examples.cpp : : : [ requires cxx11_numeric_limits ] ]
  73. [ run lambert_w_precision_example.cpp : : : [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>-lquadmath ] [ requires cxx11_numeric_limits cxx11_explicit_conversion_operators ] ]
  74. [ run inverse_gamma_example.cpp ]
  75. [ run inverse_gamma_distribution_example.cpp : : : <exception-handling>off:<build>no ]
  76. [ run laplace_example.cpp : : : <exception-handling>off:<build>no ]
  77. [ run nc_chi_sq_example.cpp ]
  78. [ run neg_binom_confidence_limits.cpp ]
  79. [ run neg_binomial_sample_sizes.cpp ]
  80. [ run negative_binomial_example1.cpp : : : <exception-handling>off:<build>no ]
  81. [ run negative_binomial_example2.cpp ]
  82. [ run nonfinite_num_facet.cpp ]
  83. [ run nonfinite_facet_simple.cpp ]
  84. [ run nonfinite_num_facet_serialization.cpp ../../serialization/build//boost_serialization : : : <exception-handling>off:<build>no <toolset>gcc-mingw:<link>static ]
  85. #[ # run lexical_cast_native.cpp ] # Expected to fail on some (but not all) platforms.
  86. [ run lexical_cast_nonfinite_facets.cpp ]
  87. [ run nonfinite_loopback_ok.cpp ]
  88. [ run nonfinite_serialization_archives.cpp ../../serialization/build//boost_serialization : : : <exception-handling>off:<build>no <toolset>gcc-mingw:<link>static ]
  89. [ run nonfinite_facet_sstream.cpp ]
  90. [ run constants_eg1.cpp ]
  91. [ run normal_misc_examples.cpp : : : <exception-handling>off:<build>no ]
  92. [ run owens_t_example.cpp ]
  93. [ run policy_eg_1.cpp ]
  94. [ run policy_eg_10.cpp : : : <target-os>vxworks:<build>no ] # VxWorks' complex.h has conflicting declaration of real
  95. [ run policy_eg_2.cpp ]
  96. [ run policy_eg_3.cpp ]
  97. [ run policy_eg_4.cpp ]
  98. [ run policy_eg_5.cpp ]
  99. [ run policy_eg_6.cpp ]
  100. [ run policy_eg_7.cpp ]
  101. [ run policy_eg_8.cpp ]
  102. [ run policy_eg_9.cpp ]
  103. [ run policy_ref_snip1.cpp : : : <exception-handling>off:<build>no ]
  104. [ run policy_ref_snip10.cpp ]
  105. [ run policy_ref_snip11.cpp ]
  106. [ run policy_ref_snip12.cpp ]
  107. [ run policy_ref_snip13.cpp : : : <exception-handling>off:<build>no ] # Fails clang-win - thrown exception from no Cauchy mean.
  108. [ run policy_ref_snip2.cpp ]
  109. [ run policy_ref_snip3.cpp : : : <exception-handling>off:<build>no ]
  110. [ run policy_ref_snip4.cpp ]
  111. [ run policy_ref_snip5.cpp : : : <target-os>vxworks:<build>no ]
  112. [ run policy_ref_snip6.cpp ]
  113. [ run policy_ref_snip7.cpp ]
  114. [ run policy_ref_snip8.cpp ]
  115. [ run policy_ref_snip9.cpp ]
  116. [ run skew_normal_example.cpp ]
  117. [ run students_t_example1.cpp ]
  118. [ run students_t_example2.cpp ]
  119. [ run students_t_example3.cpp ]
  120. [ run students_t_single_sample.cpp ]
  121. [ run students_t_two_samples.cpp ]
  122. [ run HSO3SO4.cpp ]
  123. [ run series.cpp ]
  124. [ run continued_fractions.cpp ]
  125. [ run barycentric_interpolation_example.cpp : : : [ requires cxx11_smart_ptr cxx11_function_template_default_args cxx11_unified_initialization_syntax cxx11_defaulted_functions cxx11_allocator cxx11_auto_declarations cxx11_lambdas ] ]
  126. [ run barycentric_interpolation_example_2.cpp : : : [ requires cxx11_smart_ptr cxx11_function_template_default_args cxx11_unified_initialization_syntax cxx11_defaulted_functions cxx11_allocator cxx11_auto_declarations cxx11_lambdas ] ]
  127. [ run cardinal_cubic_b_spline_example.cpp : : : [ requires cxx11_smart_ptr cxx11_hdr_random cxx11_defaulted_functions ] ]
  128. [ compile naive_monte_carlo_example.cpp : [ requires cxx11_auto_declarations cxx11_lambdas cxx11_unified_initialization_syntax cxx11_hdr_thread cxx11_hdr_atomic cxx11_decltype cxx11_hdr_future cxx11_hdr_chrono cxx11_hdr_random cxx11_allocator ] ] # requires user input, can't run it, take a long time too!
  129. [ run catmull_rom_example.cpp : : : [ requires cxx17_if_constexpr cxx11_auto_declarations cxx17_std_apply ] ] # Actually the C++17 features used is std::size, not if constexpr; looks like there isn't yet a test for it.
  130. [ run autodiff_black_scholes_brief.cpp : : : [ requires cxx11_inline_namespaces ] ]
  131. [ run autodiff_black_scholes.cpp : : : [ requires cxx11_inline_namespaces ] ]
  132. [ run autodiff_fourth_power.cpp : : : [ requires cxx11_inline_namespaces ] ]
  133. [ run autodiff_mixed_partials.cpp : : : [ requires cxx11_inline_namespaces ] ]
  134. [ run autodiff_multiprecision.cpp : : : [ requires cxx11_inline_namespaces ] ]
  135. [ run ooura_fourier_integrals_example.cpp : : : [ requires cxx11_hdr_mutex cxx11_lambdas cxx11_inline_namespaces cxx11_auto_declarations ] ]
  136. [ run ooura_fourier_integrals_cosine_example.cpp : : : [ requires cxx11_hdr_mutex cxx11_inline_namespaces cxx11_auto_declarations cxx17_std_apply ] ]
  137. [ run ooura_fourier_integrals_multiprecision_example.cpp : : : [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>-lquadmath ] [ requires cxx11_hdr_mutex cxx11_inline_namespaces cxx11_auto_declarations cxx17_std_apply ] ]
  138. ;
  139. run root_elliptic_finding.cpp /boost/timer : : : release <link>static [ requires cxx11_unified_initialization_syntax cxx11_defaulted_functions ] <target-os>freebsd:<linkflags>"-lrt" <target-os>linux:<linkflags>"-lrt -lpthread" ;
  140. run root_finding_algorithms.cpp /boost/timer : : : release <link>static [ requires cxx11_hdr_tuple cxx11_unified_initialization_syntax ] <target-os>freebsd:<linkflags>"-lrt" <target-os>linux:<linkflags>"-lrt -lpthread" ;
  141. run root_n_finding_algorithms.cpp /boost/timer : : : release <link>static [ requires cxx11_unified_initialization_syntax cxx11_defaulted_functions ] <target-os>freebsd:<linkflags>"-lrt" <target-os>linux:<linkflags>"-lrt -lpthread" ;
  142. explicit root_elliptic_finding ;
  143. explicit root_finding_algorithms ;
  144. explicit root_n_finding_algorithms ;