1 # Boost Endian Library test Jamfile
3 # Copyright Beman Dawes 2006, 2013
4 # Copyright 2018, 2019 Peter Dimov
6 # Distributed under the Boost Software License, Version 1.0.
7 # See http://www.boost.org/LICENSE_1_0.txt
9 # See library home page at http://www.boost.org/libs/endian
20 <toolset>msvc:<warnings-as-errors>on
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
27 <toolset>clang:<cxxflags>-Wno-long-long
28 <toolset>clang:<warnings-as-errors>on
31 local rule endian-run ( sources + )
35 result += [ run $(sources) ] ;
36 result += [ run $(sources) : : : <define>BOOST_ENDIAN_NO_INTRINSICS : $(sources[1]:B)_ni ] ;
41 endian-run buffer_test.cpp ;
42 endian-run endian_test.cpp ;
43 endian-run endian_operations_test.cpp ;
45 run endian_in_union_test.cpp ;
47 endian-run conversion_test.cpp ;
49 run intrinsic_test.cpp ;
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" ;
58 compile spirit_conflict_test.cpp
61 endian-run endian_reverse_test.cpp ;
63 endian-run endian_load_test.cpp ;
64 endian-run endian_store_test.cpp ;
65 endian-run endian_ld_st_roundtrip_test.cpp ;
67 endian-run endian_arithmetic_test.cpp ;
69 run deprecated_test.cpp ;
71 compile endian_reverse_cx_test.cpp ;
72 compile endian_reverse_cx_test.cpp : <define>BOOST_ENDIAN_NO_INTRINSICS : endian_reverse_cx_test_ni ;
74 endian-run load_convenience_test.cpp ;
75 endian-run store_convenience_test.cpp ;
77 endian-run float_typedef_test.cpp ;
79 endian-run data_test.cpp ;
81 endian-run endian_hpp_test.cpp ;