]>
Commit | Line | Data |
---|---|---|
92f5a8d4 TL |
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 | ||
9 | import testing ; | |
10 | import ../../config/checks/config : requires ; | |
11 | project | |
12 | : requirements | |
13 | [ requires cxx14_constexpr ] | |
14 | # toolset optimizations | |
20effc67 | 15 | <c++-template-depth>256 |
f67539c2 | 16 | <warnings>extra |
20effc67 | 17 | <toolset>clang:<cxxflags>-fbracket-depth=2048 |
92f5a8d4 TL |
18 | ; |
19 | ||
20 | # compile and run tests | |
21 | ||
22 | run test_add_automatic.cpp ; | |
23 | run test_add_native.cpp ; | |
24 | run test_and_automatic.cpp ; | |
25 | run test_and_native.cpp ; | |
26 | run test_assignment.cpp ; | |
27 | run test_auto.cpp ; | |
28 | run test_cast.cpp ; | |
29 | ||
30 | run test_checked_add.cpp ; | |
31 | run test_checked_and.cpp ; | |
32 | run test_checked_cast.cpp ; | |
33 | run test_checked_divide.cpp ; | |
34 | run test_checked_equal_to.cpp ; | |
35 | run test_checked_left_shift.cpp ; | |
36 | run test_checked_less_than.cpp ; | |
37 | run test_checked_modulus.cpp ; | |
38 | run test_checked_multiply.cpp ; | |
39 | run test_checked_or.cpp ; | |
40 | run test_checked_right_shift.cpp ; | |
41 | run test_checked_subtract.cpp ; | |
42 | run test_checked_xor.cpp ; | |
43 | ||
44 | run test_construction.cpp ; | |
45 | run test_cpp.cpp ; | |
46 | run test_divide_automatic.cpp ; | |
47 | run test_divide_native.cpp ; | |
48 | run test_equal_automatic.cpp ; | |
49 | run test_equal_native.cpp ; | |
50 | run test_float.cpp ; | |
51 | run test_interval.cpp ; | |
52 | run test_left_shift_automatic.cpp ; | |
53 | run test_left_shift_native.cpp ; | |
54 | run test_less_than_automatic.cpp ; | |
55 | run test_less_than_native.cpp ; | |
56 | run test_modulus_automatic.cpp ; | |
57 | run test_modulus_native.cpp ; | |
58 | run test_multiply_automatic.cpp ; | |
59 | run test_multiply_native.cpp ; | |
60 | run test_or_automatic.cpp ; | |
61 | run test_or_native.cpp ; | |
62 | run test_performance.cpp # sources | |
63 | : # args | |
64 | : # input | |
65 | : <variant>debug:<build>no # requirements | |
66 | ; | |
67 | run test_range.cpp ; | |
68 | run test_rational.cpp ; | |
69 | run test_right_shift_automatic.cpp ; | |
70 | run test_right_shift_native.cpp ; | |
71 | run test_safe_compare.cpp ; | |
72 | run test_subtract_automatic.cpp ; | |
73 | run test_subtract_native.cpp ; | |
74 | run test_xor_automatic.cpp ; | |
75 | run test_xor_native.cpp ; | |
20effc67 | 76 | run test_custom_exception.cpp ; |
92f5a8d4 TL |
77 | run test_z.cpp ; |
78 | ||
79 | # compile fail tests | |
80 | ||
92f5a8d4 | 81 | compile-fail test_trap.cpp ; |
1e59de90 TL |
82 | compile-fail test_constexpr.cpp ; |
83 | ||
84 | # compile success tests | |
85 | ||
86 | compile test_concept_numeric.cpp ; | |
87 | compile test_concept_integer.cpp ; | |
92f5a8d4 TL |
88 | |
89 | # safe integer constexpr tests | |
90 | ||
f67539c2 | 91 | compile test_cast_constexpr.cpp ; |
92f5a8d4 TL |
92 | compile test_add_automatic_constexpr.cpp ; |
93 | compile test_add_native_constexpr.cpp ; | |
94 | compile test_divide_automatic_constexpr.cpp ; | |
95 | compile test_divide_native_constexpr.cpp ; | |
96 | compile test_equal_automatic_constexpr.cpp ; | |
97 | compile test_equal_native_constexpr.cpp ; | |
98 | compile test_left_shift_automatic_constexpr.cpp ; | |
99 | compile test_left_shift_native_constexpr.cpp ; | |
100 | compile test_less_than_automatic_constexpr.cpp ; | |
101 | compile test_less_than_native_constexpr.cpp ; | |
102 | compile test_modulus_automatic_constexpr.cpp ; | |
103 | compile test_modulus_native_constexpr.cpp ; | |
104 | compile test_multiply_automatic_constexpr.cpp ; | |
105 | compile test_multiply_native_constexpr.cpp ; | |
106 | compile test_or_automatic_constexpr.cpp ; | |
107 | compile test_or_native_constexpr.cpp ; | |
1e59de90 | 108 | compile test_stream_overload.cpp ; |
92f5a8d4 TL |
109 | compile test_right_shift_automatic_constexpr.cpp ; |
110 | compile test_right_shift_native_constexpr.cpp ; | |
111 | compile test_xor_automatic_constexpr.cpp ; | |
112 | compile test_xor_native_constexpr.cpp ; | |
113 | compile test_subtract_native_constexpr.cpp ; | |
114 | compile test_subtract_automatic_constexpr.cpp ; | |
115 | ||
116 | # checked results constexpr | |
117 | ||
118 | compile test_checked_add_constexpr.cpp ; | |
119 | compile test_checked_and_constexpr.cpp ; | |
120 | compile test_checked_cast_constexpr.cpp ; | |
121 | compile test_checked_divide_constexpr.cpp ; | |
122 | compile test_checked_equal_to_constexpr.cpp ; | |
123 | compile test_checked_left_shift_constexpr.cpp ; | |
124 | compile test_checked_less_than_constexpr.cpp ; | |
125 | compile test_checked_modulus_constexpr.cpp ; | |
126 | compile test_checked_multiply_constexpr.cpp ; | |
127 | compile test_checked_or_constexpr.cpp ; | |
128 | compile test_checked_right_shift_constexpr.cpp ; | |
129 | compile test_checked_subtract_constexpr.cpp ; | |
130 | compile test_checked_xor_constexpr.cpp ; | |
131 |