]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Boost Endian Library test Jamfile |
2 | ||
3 | # Copyright Beman Dawes 2006, 2013 | |
92f5a8d4 | 4 | # Copyright 2018, 2019 Peter Dimov |
7c673cae FG |
5 | |
6 | # Distributed under the Boost Software License, Version 1.0. | |
7 | # See http://www.boost.org/LICENSE_1_0.txt | |
8 | ||
9 | # See library home page at http://www.boost.org/libs/endian | |
10 | ||
92f5a8d4 TL |
11 | import testing ; |
12 | ||
7c673cae | 13 | project |
92f5a8d4 TL |
14 | : default-build |
15 | ||
16 | <warnings>all | |
17 | ||
18 | : requirements | |
19 | ||
20 | <toolset>msvc:<warnings-as-errors>on | |
21 | ||
22 | <toolset>gcc:<cxxflags>-Wno-long-long | |
23 | <toolset>gcc-4.4.7:<cxxflags>-Wno-strict-aliasing | |
24 | <toolset>gcc-4.4.7:<cxxflags>-Wno-sign-compare | |
25 | <toolset>gcc:<warnings-as-errors>on | |
26 | ||
27 | <toolset>clang:<cxxflags>-Wno-long-long | |
28 | <toolset>clang:<warnings-as-errors>on | |
29 | ; | |
30 | ||
f67539c2 | 31 | local rule run-ni ( sources + ) |
92f5a8d4 | 32 | { |
f67539c2 TL |
33 | return [ run $(sources) : : : <define>BOOST_ENDIAN_NO_INTRINSICS : $(sources[1]:B)_ni ] ; |
34 | } | |
92f5a8d4 | 35 | |
f67539c2 TL |
36 | run buffer_test.cpp ; |
37 | run-ni buffer_test.cpp ; | |
92f5a8d4 | 38 | |
f67539c2 TL |
39 | run endian_test.cpp ; |
40 | run-ni endian_test.cpp ; | |
92f5a8d4 | 41 | |
f67539c2 TL |
42 | run endian_operations_test.cpp ; |
43 | run-ni endian_operations_test.cpp ; | |
92f5a8d4 TL |
44 | |
45 | run endian_in_union_test.cpp ; | |
46 | ||
f67539c2 TL |
47 | run conversion_test.cpp ; |
48 | run-ni conversion_test.cpp ; | |
92f5a8d4 TL |
49 | |
50 | run intrinsic_test.cpp ; | |
51 | ||
52 | run quick.cpp ; | |
53 | ||
54 | local allow-warnings = | |
55 | "-<toolset>msvc:<warnings-as-errors>on" | |
56 | "-<toolset>gcc:<warnings-as-errors>on" | |
57 | "-<toolset>clang:<warnings-as-errors>on" ; | |
58 | ||
f67539c2 TL |
59 | compile spirit_conflict_test.cpp : $(allow-warnings) ; |
60 | ||
61 | run endian_reverse_test.cpp ; | |
62 | run-ni endian_reverse_test.cpp ; | |
63 | ||
64 | run endian_load_test.cpp ; | |
65 | run-ni endian_load_test.cpp ; | |
92f5a8d4 | 66 | |
f67539c2 TL |
67 | run endian_store_test.cpp ; |
68 | run-ni endian_store_test.cpp ; | |
92f5a8d4 | 69 | |
f67539c2 TL |
70 | run endian_ld_st_roundtrip_test.cpp ; |
71 | run-ni endian_ld_st_roundtrip_test.cpp ; | |
92f5a8d4 | 72 | |
f67539c2 TL |
73 | run endian_arithmetic_test.cpp ; |
74 | run-ni endian_arithmetic_test.cpp ; | |
92f5a8d4 TL |
75 | |
76 | run deprecated_test.cpp ; | |
77 | ||
78 | compile endian_reverse_cx_test.cpp ; | |
79 | compile endian_reverse_cx_test.cpp : <define>BOOST_ENDIAN_NO_INTRINSICS : endian_reverse_cx_test_ni ; | |
80 | ||
f67539c2 TL |
81 | run load_convenience_test.cpp ; |
82 | run-ni load_convenience_test.cpp ; | |
83 | ||
84 | run store_convenience_test.cpp ; | |
85 | run-ni store_convenience_test.cpp ; | |
86 | ||
87 | run float_typedef_test.cpp ; | |
88 | run-ni float_typedef_test.cpp ; | |
89 | ||
90 | run data_test.cpp ; | |
91 | run-ni data_test.cpp ; | |
92f5a8d4 | 92 | |
f67539c2 TL |
93 | run endian_hpp_test.cpp ; |
94 | run-ni endian_hpp_test.cpp ; | |
92f5a8d4 | 95 | |
f67539c2 | 96 | run order_test.cpp ; |
92f5a8d4 | 97 | |
f67539c2 | 98 | run endian_reverse_test2.cpp ; |
20effc67 TL |
99 | run-ni endian_reverse_test2.cpp ; |
100 | ||
101 | run is_scoped_enum_test.cpp ; | |
102 | ||
103 | run endian_reverse_test3.cpp ; | |
104 | run-ni endian_reverse_test3.cpp ; | |
105 | ||
106 | run endian_reverse_test4.cpp ; | |
107 | run-ni endian_reverse_test4.cpp ; | |
108 | ||
109 | run endian_reverse_test5.cpp ; | |
110 | run-ni endian_reverse_test5.cpp ; | |
111 | ||
112 | run packed_buffer_test.cpp ; | |
113 | run arithmetic_buffer_test.cpp ; | |
114 | run packed_arithmetic_test.cpp ; |