Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / endian / test / Jamfile.v2
1 # Boost Endian Library test Jamfile
2
3 # Copyright Beman Dawes 2006, 2013
4 # Copyright 2018, 2019 Peter Dimov
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
11 import testing ;
12
13 project
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
31 local rule endian-run ( sources + )
32 {
33     local result ;
34
35     result += [ run $(sources) ] ;
36     result += [ run $(sources) : : : <define>BOOST_ENDIAN_NO_INTRINSICS : $(sources[1]:B)_ni ] ;
37
38     return $(result) ;
39 }
40
41 endian-run buffer_test.cpp ;
42 endian-run endian_test.cpp ;
43 endian-run endian_operations_test.cpp ;
44
45 run endian_in_union_test.cpp ;
46
47 endian-run conversion_test.cpp ;
48
49 run intrinsic_test.cpp ;
50
51 run quick.cpp ;
52
53 local allow-warnings =
54     "-<toolset>msvc:<warnings-as-errors>on"
55     "-<toolset>gcc:<warnings-as-errors>on"
56     "-<toolset>clang:<warnings-as-errors>on" ;
57
58 compile spirit_conflict_test.cpp
59   : $(allow-warnings) ;
60
61 endian-run endian_reverse_test.cpp ;
62
63 endian-run endian_load_test.cpp ;
64 endian-run endian_store_test.cpp ;
65 endian-run endian_ld_st_roundtrip_test.cpp ;
66
67 endian-run endian_arithmetic_test.cpp ;
68
69 run deprecated_test.cpp ;
70
71 compile endian_reverse_cx_test.cpp ;
72 compile endian_reverse_cx_test.cpp : <define>BOOST_ENDIAN_NO_INTRINSICS : endian_reverse_cx_test_ni ;
73
74 endian-run load_convenience_test.cpp ;
75 endian-run store_convenience_test.cpp ;
76
77 endian-run float_typedef_test.cpp ;
78
79 endian-run data_test.cpp ;
80
81 endian-run endian_hpp_test.cpp ;