]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | |
b32b8144 | 12 | : requirements <source>/boost/system |
7c673cae FG |
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 ] ; | |
b32b8144 FG |
32 | |
33 | lib a | |
7c673cae FG |
34 | : |
35 | dll_a.cpp | |
36 | ../build//boost_serialization | |
37 | : | |
b32b8144 | 38 | <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 |
7c673cae | 39 | ; |
b32b8144 | 40 | lib polymorphic_derived2 |
7c673cae | 41 | : |
b32b8144 FG |
42 | polymorphic_derived2.cpp |
43 | polymorphic_base.cpp | |
7c673cae FG |
44 | ../build//boost_serialization |
45 | : | |
b32b8144 | 46 | <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 |
7c673cae FG |
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 ] | |
b32b8144 | 75 | [ test-bsl-run_files test_map_hashed : A : : [ requires hash ] ] # BOOST_HAS_HASH |
7c673cae FG |
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 ] | |
b32b8144 FG |
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 ] ] | |
7c673cae FG |
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 ] | |
b32b8144 | 113 | [ test-bsl-run_files test_shared_ptr_132 : : : [ requires auto_ptr ] ] # BOOST_NO_AUTO_PTR |
7c673cae FG |
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 ] | |
b32b8144 FG |
117 | |
118 | # should compile | |
119 | [ compile test_strong_typedef.cpp ] | |
7c673cae FG |
120 | ; |
121 | ||
122 | if ! $(BOOST_ARCHIVE_LIST) { | |
123 | test-suite "serialization2" : | |
b32b8144 FG |
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 : ] | |
7c673cae FG |
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 ] | |
b32b8144 | 141 | [ test-bsl-run test_codecvt_null ] |
7c673cae | 142 | |
b32b8144 | 143 | # [ test-bsl-run test_z ] |
7c673cae FG |
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 | } |