]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/Jamfile.v2
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / system / test / Jamfile.v2
1 # Boost System Library test Jamfile
2
3 # Copyright Beman Dawes 2003, 2006
4 # Copyright 2017-2019 Peter Dimov
5
6 # Distributed under the Boost Software License, Version 1.0.
7 # See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt
8
9 # See library home page at http://www.boost.org/libs/system
10
11 import testing ;
12
13 rule system-run ( sources + )
14 {
15 local result ;
16
17 result += [ run $(sources) ] ;
18 result += [ run $(sources) : : : <library>/boost/system//boost_system <link>static : $(sources[1]:B)_static ] ;
19 result += [ run $(sources) : : : <library>/boost/system//boost_system <link>shared : $(sources[1]:B)_shared ] ;
20 result += [ run $(sources) : : : <define>BOOST_NO_ANSI_APIS : $(sources[1]:B)_no_ansi ] ;
21 result += [ run $(sources) : : : <define>BOOST_SYSTEM_USE_UTF8 : $(sources[1]:B)_utf8 ] ;
22
23 return $(result) ;
24 }
25
26 system-run error_code_test.cpp ;
27 system-run error_code_user_test.cpp ;
28 system-run system_error_test.cpp ;
29
30 lib throw_test : throw_test.cpp : <link>shared:<define>THROW_DYN_LINK=1 ;
31
32 run dynamic_link_test.cpp throw_test : : : <link>shared : throw_test_shared ;
33
34 system-run initialization_test.cpp ;
35 system-run header_only_test.cpp ;
36
37 run config_test.cpp : : : <test-info>always_show_run_output ;
38
39 system-run std_interop_test.cpp ;
40 system-run std_mismatch_test.cpp ;
41
42 lib single_instance_lib1 : single_instance_1.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
43 lib single_instance_lib2 : single_instance_2.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
44
45 system-run single_instance_test.cpp single_instance_1.cpp single_instance_2.cpp ;
46 run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>static : single_instance_lib_static ;
47 run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>shared : single_instance_lib_shared ;
48
49 system-run before_main_test.cpp ;
50 run-fail throws_assign_fail.cpp ;
51 system-run constexpr_test.cpp ;
52 system-run win32_hresult_test.cpp ;
53
54 system-run error_category_test.cpp ;
55 system-run generic_category_test.cpp ;
56 system-run system_category_test.cpp ;
57 system-run after_main_test.cpp ;
58 system-run failed_test.cpp ;
59 system-run failed_constexpr_test.cpp ;
60
61 # Quick (CI) test
62 run quick.cpp ;
63
64 compile warnings_test.cpp
65 : <warnings>pedantic
66 <toolset>msvc:<warnings-as-errors>on
67 <toolset>gcc:<warnings-as-errors>on
68 <toolset>clang:<warnings-as-errors>on ;
69
70 lib std_single_instance_lib1 : std_single_instance_1.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
71 lib std_single_instance_lib2 : std_single_instance_2.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
72
73 system-run std_single_instance_test.cpp std_single_instance_1.cpp std_single_instance_2.cpp ;
74 run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>static : std_single_instance_lib_static ;
75 run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>shared <define>STD_SINGLE_INSTANCE_SHARED : std_single_instance_lib_shared ;
76
77 run is_error_code_enum_test.cpp ;
78 run is_error_condition_enum_test.cpp ;
79 run errc_test.cpp ;
80 run errc_test2.cpp ;
81 run error_category_test2.cpp ;
82 run error_condition_test.cpp ;
83 run error_condition_test2.cpp ;
84 run generic_category_test2.cpp ;
85 run generic_category_test3.cpp ;
86 run system_category_test2.cpp ;
87 run system_category_test3.cpp ;
88
89 run windows_error_test.cpp ;
90 run cygwin_error_test.cpp ;
91 run linux_error_test.cpp ;