Jamfile.v2 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # Boost.SafeNumerics Library test Jamfile
  2. #
  3. # Copyright (c) 2017 Robert Ramey
  4. #
  5. # Distributed under the Boost Software License, Version 1.0.
  6. # See accompanying file LICENSE_1_0.txt or copy at
  7. # http://www.boost.org/LICENSE_1_0.txt
  8. import testing ;
  9. import ../../config/checks/config : requires ;
  10. project
  11. : requirements
  12. [ requires cxx14_constexpr ]
  13. # toolset optimizations
  14. <c++-template-depth>1024
  15. ;
  16. # compile and run tests
  17. run test_add_automatic.cpp ;
  18. run test_add_native.cpp ;
  19. run test_and_automatic.cpp ;
  20. run test_and_native.cpp ;
  21. run test_assignment.cpp ;
  22. run test_auto.cpp ;
  23. run test_cast.cpp ;
  24. run test_checked_add.cpp ;
  25. run test_checked_and.cpp ;
  26. run test_checked_cast.cpp ;
  27. run test_checked_divide.cpp ;
  28. run test_checked_equal_to.cpp ;
  29. run test_checked_left_shift.cpp ;
  30. run test_checked_less_than.cpp ;
  31. run test_checked_modulus.cpp ;
  32. run test_checked_multiply.cpp ;
  33. run test_checked_or.cpp ;
  34. run test_checked_right_shift.cpp ;
  35. run test_checked_subtract.cpp ;
  36. run test_checked_xor.cpp ;
  37. run test_construction.cpp ;
  38. run test_cpp.cpp ;
  39. run test_divide_automatic.cpp ;
  40. run test_divide_native.cpp ;
  41. run test_equal_automatic.cpp ;
  42. run test_equal_native.cpp ;
  43. run test_float.cpp ;
  44. run test_interval.cpp ;
  45. run test_left_shift_automatic.cpp ;
  46. run test_left_shift_native.cpp ;
  47. run test_less_than_automatic.cpp ;
  48. run test_less_than_native.cpp ;
  49. run test_modulus_automatic.cpp ;
  50. run test_modulus_native.cpp ;
  51. run test_multiply_automatic.cpp ;
  52. run test_multiply_native.cpp ;
  53. run test_or_automatic.cpp ;
  54. run test_or_native.cpp ;
  55. run test_performance.cpp # sources
  56. : # args
  57. : # input
  58. : <variant>debug:<build>no # requirements
  59. ;
  60. run test_range.cpp ;
  61. run test_rational.cpp ;
  62. run test_right_shift_automatic.cpp ;
  63. run test_right_shift_native.cpp ;
  64. run test_safe_compare.cpp ;
  65. run test_subtract_automatic.cpp ;
  66. run test_subtract_native.cpp ;
  67. run test_xor_automatic.cpp ;
  68. run test_xor_native.cpp ;
  69. run test_z.cpp ;
  70. # compile fail tests
  71. compile-fail test_constexpr.cpp ;
  72. compile-fail test_trap.cpp ;
  73. # safe integer constexpr tests
  74. compile test_add_automatic_constexpr.cpp ;
  75. compile test_add_native_constexpr.cpp ;
  76. compile test_divide_automatic_constexpr.cpp ;
  77. compile test_divide_native_constexpr.cpp ;
  78. compile test_equal_automatic_constexpr.cpp ;
  79. compile test_equal_native_constexpr.cpp ;
  80. compile test_left_shift_automatic_constexpr.cpp ;
  81. compile test_left_shift_native_constexpr.cpp ;
  82. compile test_less_than_automatic_constexpr.cpp ;
  83. compile test_less_than_native_constexpr.cpp ;
  84. compile test_modulus_automatic_constexpr.cpp ;
  85. compile test_modulus_native_constexpr.cpp ;
  86. compile test_multiply_automatic_constexpr.cpp ;
  87. compile test_multiply_native_constexpr.cpp ;
  88. compile test_or_automatic_constexpr.cpp ;
  89. compile test_or_native_constexpr.cpp ;
  90. compile test_right_shift_automatic_constexpr.cpp ;
  91. compile test_right_shift_native_constexpr.cpp ;
  92. compile test_xor_automatic_constexpr.cpp ;
  93. compile test_xor_native_constexpr.cpp ;
  94. compile test_subtract_native_constexpr.cpp ;
  95. compile test_subtract_automatic_constexpr.cpp ;
  96. # checked results constexpr
  97. compile test_checked_add_constexpr.cpp ;
  98. compile test_checked_and_constexpr.cpp ;
  99. compile test_checked_cast_constexpr.cpp ;
  100. compile test_checked_divide_constexpr.cpp ;
  101. compile test_checked_equal_to_constexpr.cpp ;
  102. compile test_checked_left_shift_constexpr.cpp ;
  103. compile test_checked_less_than_constexpr.cpp ;
  104. compile test_checked_modulus_constexpr.cpp ;
  105. compile test_checked_multiply_constexpr.cpp ;
  106. compile test_checked_or_constexpr.cpp ;
  107. compile test_checked_right_shift_constexpr.cpp ;
  108. compile test_checked_subtract_constexpr.cpp ;
  109. compile test_checked_xor_constexpr.cpp ;