]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/Jamfile.v2
import new upstream nautilus stable release 14.2.8
[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 run warnings_test.cpp : : : <warnings>all <warnings-as-errors>on <toolset>gcc:<cxxflags>-Wnon-virtual-dtor <toolset>clang:<cxxflags>-Wnon-virtual-dtor ;
65
66 lib std_single_instance_lib1 : std_single_instance_1.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
67 lib std_single_instance_lib2 : std_single_instance_2.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
68
69 system-run std_single_instance_test.cpp std_single_instance_1.cpp std_single_instance_2.cpp ;
70 run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>static : std_single_instance_lib_static ;
71 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 ;