]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/serialization/test/Jamfile.v2
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / serialization / test / Jamfile.v2
1 # Boost serialization Library test Jamfile
2
3 # (C) Copyright Robert Ramey 2002-2004.
4 # Use, modification, and distribution are subject to the
5 # Boost Software License, Version 1.0. (See accompanying file
6 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #
8
9 project libs/serialization/test
10 : id serialization_test
11 : requirements <source>/boost/filesystem
12 : requirements <source>/boost/system
13 ;
14
15 # import rules for testing conditional on config file variables
16 import ../../config/checks/config : requires ;
17
18 # import rules from the boost serialization test
19 # import ../util/test : test-bsl-run-no-lib ;
20 import ../util/test :
21 run-template
22 run-invoke
23 run-winvoke
24 test-bsl-run-no-lib
25 test-bsl-run
26 test-bsl-run_archive
27 test-bsl-run_files
28 test-bsl-run_polymorphic_archive
29 ;
30
31 BOOST_ARCHIVE_LIST = [ modules.peek : BOOST_ARCHIVE_LIST ] ;
32
33 lib a
34 :
35 dll_a.cpp
36 ../build//boost_serialization
37 :
38 <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
39 ;
40 lib polymorphic_derived2
41 :
42 polymorphic_derived2.cpp
43 polymorphic_base.cpp
44 ../build//boost_serialization
45 :
46 <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
47 ;
48
49 test-suite "serialization" :
50 [ test-bsl-run_files test_array : A : : [ requires cxx11_hdr_array ] ] # BOOST_NO_CXX11_HDR_ARRAY
51 [ test-bsl-run_files test_boost_array : A ]
52 [ test-bsl-run_files test_native_array : A ]
53 [ test-bsl-run_files test_binary ]
54 [ test-bsl-run_files test_class_info_save ]
55 [ test-bsl-run_files test_class_info_load ]
56 [ test-bsl-run_files test_bitset ]
57 [ test-bsl-run_files test_complex ]
58 [ test-bsl-run_files test_contained_class : A ]
59 [ test-bsl-run_files test_cyclic_ptrs : A ]
60 [ test-bsl-run_files test_delete_pointer ]
61 [ test-bsl-run_files test_deque : A ]
62 [ test-bsl-run_files test_derived ]
63 [ test-bsl-run_files test_derived_class : A ]
64 [ test-bsl-run_files test_derived_class_ptr : A ]
65 [ test-bsl-run_files test_diamond ]
66 [ test-bsl-run_files test_diamond_complex ]
67 [ test-bsl-run_files test_exported : polymorphic_base ]
68 [ test-bsl-run_files test_forward_list : A : : [ requires cxx11_hdr_forward_list ] ] # BOOST_NO_CXX11_HDR_FORWARD_LIST
69 [ test-bsl-run_files test_forward_list_ptrs : A : : [ requires cxx11_hdr_forward_list ] ] # BOOST_NO_CXX11_HDR_FORWARD_LIST
70 [ test-bsl-run_files test_helper_support ]
71 [ test-bsl-run_files test_interrupts ]
72 [ test-bsl-run_files test_list : A ]
73 [ test-bsl-run_files test_list_ptrs : A ]
74 [ test-bsl-run_files test_map : A ]
75 [ test-bsl-run_files test_map_hashed : A : : [ requires hash ] ] # BOOST_HAS_HASH
76 [ test-bsl-run_files test_map_unordered : A : : [ requires cxx11_hdr_unordered_map ] ] # BOOST_NO_CXX11_HDR_UNORDERED_MAP
77 [ test-bsl-run_files test_map_boost_unordered : A ]
78 [ test-bsl-run_files test_mi ]
79 [ test-bsl-run_files test_multiple_ptrs : A ]
80 [ test-bsl-run_files test_multiple_inheritance ]
81 [ test-bsl-run_files test_no_rtti : polymorphic_base polymorphic_derived1 ]
82 [ test-bsl-run_files test_non_intrusive ]
83 [ test-bsl-run_files test_non_default_ctor ]
84 [ test-bsl-run_files test_non_default_ctor2 ]
85 [ test-bsl-run_files test_null_ptr ]
86 [ test-bsl-run_files test_nvp : A ]
87 [ test-bsl-run_files test_object ]
88 [ test-bsl-run_files test_primitive ]
89 [ test-bsl-run_files test_priority_queue : A ]
90 [ test-bsl-run_files test_queue : A ]
91 [ test-bsl-run_files test_recursion : A ]
92 [ test-bsl-run_files test_registered ]
93 [ test-bsl-run_files test_set : A ]
94 [ test-bsl-run_files test_set_hashed : A : : [ requires hash ] ] # BOOST_HAS_HASH
95 [ test-bsl-run_files test_set_unordered : A : : [ requires cxx11_hdr_unordered_set ] ] # BOOST_NO_CXX11_HDR_UNORDERED_SET
96 [ test-bsl-run_files test_set_boost_unordered : A ]
97 [ test-bsl-run_files test_simple_class : A ]
98 [ test-bsl-run_files test_simple_class_ptr : A ]
99 [ test-bsl-run_files test_slist : A : : [ requires slist ] ] # BOOST_HAS_SLIST ]
100 [ test-bsl-run_files test_slist_ptrs : A : : [ requires slist ] ] # BOOST_HAS_SLIST ] ]
101 [ test-bsl-run_files test_split ]
102 [ test-bsl-run_files test_stack : A ]
103 [ test-bsl-run_files test_tracking ]
104 [ test-bsl-run_files test_unregistered ]
105 [ test-bsl-run_files test_unique_ptr ]
106 [ test-bsl-run_files test_valarray ]
107 [ test-bsl-run_files test_variant : A ]
108 [ test-bsl-run_files test_vector : A ]
109 [ test-bsl-run_files test_new_operator : A ]
110 [ test-bsl-run_files test_optional ]
111 [ test-bsl-run_files test_shared_ptr ]
112 [ test-bsl-run_files test_shared_ptr_multi_base ]
113 [ test-bsl-run_files test_shared_ptr_132 : : : [ requires auto_ptr ] ] # BOOST_NO_AUTO_PTR
114 [ test-bsl-run_polymorphic_archive test_polymorphic : test_polymorphic_A A ]
115 [ test-bsl-run_polymorphic_archive test_polymorphic2 : test_polymorphic2imp ]
116 [ test-bsl-run_polymorphic_archive test_polymorphic_helper ]
117
118 # should compile
119 [ compile test_strong_typedef.cpp ]
120 ;
121
122 if ! $(BOOST_ARCHIVE_LIST) {
123 test-suite "serialization2" :
124 [ test-bsl-run test_inclusion ]
125 [ test-bsl-run test_inclusion2 ]
126 # boost build has the feature that the building if libraries vs dll is automatic
127 # in that dependent libraries are built the same way - shared/static - that
128 # the application is. On some platforms (e.g windows) this is required to avoid
129 # problems of linking incompatible versions of the runtime library. So
130 # we suppress tests of our dlls when using static libraries
131 [ test-bsl-run test_dll_exported : : polymorphic_derived2 : <link>static:<build>no ]
132 # [ test-bsl-run test_dll_plugin : : polymorphic_derived2 : <link>static:<build>no <target-os>linux:<linkflags>-ldl ]
133 [ test-bsl-run test_dll_simple : : a : ]
134 [ test-bsl-run test_private_ctor ]
135 [ test-bsl-run test_reset_object_address : A ]
136 [ test-bsl-run test_void_cast ]
137 [ test-bsl-run test_mult_archive_types ]
138 [ test-bsl-run test_iterators ]
139 [ test-bsl-run test_iterators_base64 ]
140 [ test-bsl-run test_smart_cast ]
141 [ test-bsl-run test_codecvt_null ]
142
143 # [ test-bsl-run test_z ]
144
145 # should fail compilation
146 [ compile-fail test_not_serializable.cpp ]
147 [ compile-fail test_traits_fail.cpp ]
148 [ compile-fail test_const_load_fail1.cpp ]
149 [ compile-fail test_const_load_fail2.cpp ]
150 [ compile-fail test_const_load_fail3.cpp ]
151 [ compile-fail test_const_load_fail1_nvp.cpp ]
152 [ compile-fail test_const_load_fail2_nvp.cpp ]
153 [ compile-fail test_const_load_fail3_nvp.cpp ]
154 [ compile-fail test_check.cpp ]
155
156 # should compile with a warning message
157 [ compile test_static_warning.cpp ]
158 [ compile test_const_save_warn1.cpp ]
159 [ compile test_const_save_warn2.cpp ]
160 [ compile test_const_save_warn3.cpp ]
161 # note - library unable to detect these errors for now
162 #[ compile test_const_save_warn1_nvp.cpp ]
163 #[ compile test_const_save_warn2_nvp.cpp ]
164 #[ compile test_const_save_warn3_nvp.cpp ]
165
166 # should compile
167 [ compile test_traits_pass.cpp ]
168 [ compile test_const_pass.cpp ]
169 ;
170 }