1 # Boost serialization Library test Jamfile
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)
9 project libs/serialization/test
10 : id serialization_test
11 : requirements <source>/boost/filesystem
14 # import rules from the boost serialization test
15 # import ../util/test : test-bsl-run-no-lib ;
24 test-bsl-run_polymorphic_archive
27 BOOST_ARCHIVE_LIST = [ modules.peek : BOOST_ARCHIVE_LIST ] ;
32 ../build//boost_serialization
39 ../build//boost_serialization
47 ../build//boost_serialization
51 lib dll_polymorphic_derived2_lib
53 polymorphic_derived2.cpp
54 ../build//boost_serialization
58 test-suite "serialization" :
59 [ test-bsl-run_files test_array : A ]
60 [ test-bsl-run_files test_binary ]
61 [ test-bsl-run_files test_class_info_load ]
62 [ test-bsl-run_files test_class_info_save ]
63 [ test-bsl-run_files test_bitset ]
64 [ test-bsl-run_files test_complex ]
65 [ test-bsl-run_files test_contained_class : A ]
66 [ test-bsl-run_files test_cyclic_ptrs : A ]
67 [ test-bsl-run_files test_delete_pointer ]
68 [ test-bsl-run_files test_deque : A ]
69 [ test-bsl-run_files test_derived ]
70 [ test-bsl-run_files test_derived_class : A ]
71 [ test-bsl-run_files test_derived_class_ptr : A ]
72 [ test-bsl-run_files test_diamond ]
73 [ test-bsl-run_files test_diamond_complex ]
74 [ test-bsl-run_files test_exported : polymorphic_base ]
75 [ test-bsl-run_files test_helper_support ]
76 [ test-bsl-run_files test_list : A ]
77 [ test-bsl-run_files test_list_ptrs : A ]
78 [ test-bsl-run_files test_map : A ]
79 [ test-bsl-run_files test_mi ]
80 [ test-bsl-run_files test_multiple_ptrs : A ]
81 [ test-bsl-run_files test_multiple_inheritance ]
82 [ test-bsl-run_files test_no_rtti : polymorphic_base polymorphic_derived1 ]
83 [ test-bsl-run_files test_non_intrusive ]
84 [ test-bsl-run_files test_non_default_ctor ]
85 [ test-bsl-run_files test_non_default_ctor2 ]
86 [ test-bsl-run_files test_null_ptr ]
87 [ test-bsl-run_files test_nvp : A ]
88 [ test-bsl-run_files test_object ]
89 [ test-bsl-run_files test_primitive ]
90 [ test-bsl-run_files test_priority_queue : A ]
91 [ test-bsl-run_files test_queue : A ]
92 [ test-bsl-run_files test_recursion : A ]
93 [ test-bsl-run_files test_registered ]
94 [ test-bsl-run_files test_set : A ]
95 [ test-bsl-run_files test_simple_class : A ]
96 [ test-bsl-run_files test_simple_class_ptr : A ]
97 [ test-bsl-run_files test_split ]
98 [ test-bsl-run_files test_stack : A ]
99 [ test-bsl-run_files test_tracking ]
100 [ test-bsl-run_files test_unregistered ]
101 [ test-bsl-run_files test_unique_ptr ]
102 [ test-bsl-run_files test_valarray ]
103 [ test-bsl-run_files test_variant : A ]
104 [ test-bsl-run_files test_vector : A ]
105 [ test-bsl-run_files test_new_operator : A ]
106 [ test-bsl-run_files test_optional ]
107 [ test-bsl-run_files test_shared_ptr ]
108 [ test-bsl-run_files test_shared_ptr_multi_base ]
109 [ test-bsl-run_files test_shared_ptr_132 ]
110 [ test-bsl-run_polymorphic_archive test_polymorphic : test_polymorphic_A A ]
111 [ test-bsl-run_polymorphic_archive test_polymorphic2 : test_polymorphic2imp ]
114 if ! $(BOOST_ARCHIVE_LIST) {
115 test-suite "serialization2" :
116 [ test-bsl-run test_dll_exported : : dll_polymorphic_derived2_lib ]
117 [ test-bsl-run test_dll_simple : : dll_a_lib ]
118 [ compile test_dll_plugin.cpp ]
119 # Running the following test requires that the test know the directory
120 # in which the dll is stored. I don't know how to extract this from bjam
121 # [ test-bsl-run test_dll_plugin : : dll_polymorphic_derived2_lib ]
122 [ test-bsl-run test_private_ctor ]
123 [ test-bsl-run test_reset_object_address : A ]
124 [ test-bsl-run test_void_cast ]
125 [ test-bsl-run test_mult_archive_types ]
127 [ test-bsl-run-no-lib test_iterators ]
128 [ test-bsl-run-no-lib test_iterators_base64 ]
129 [ test-bsl-run-no-lib test_inclusion ]
130 [ test-bsl-run-no-lib test_smart_cast ]
132 [ test-bsl-run-no-lib test_utf8_codecvt
133 : ../src/utf8_codecvt_facet
134 : <dependency>../../config/test/all//BOOST_NO_STD_WSTREAMBUF
136 [ test-bsl-run-no-lib test_codecvt_null
137 : ../src/codecvt_null
138 : <dependency>../../config/test/all//BOOST_NO_STD_WSTREAMBUF
141 # should fail compilation
142 [ compile-fail test_not_serializable.cpp ]
143 [ compile-fail test_traits_fail.cpp ]
144 [ compile-fail test_const_load_fail1.cpp ]
145 [ compile-fail test_const_load_fail2.cpp ]
146 [ compile-fail test_const_load_fail3.cpp ]
147 [ compile-fail test_const_load_fail1_nvp.cpp ]
148 [ compile-fail test_const_load_fail2_nvp.cpp ]
149 [ compile-fail test_const_load_fail3_nvp.cpp ]
150 [ compile-fail test_check.cpp ]
152 # should compile with a warning message
153 [ compile test_static_warning.cpp ]
154 [ compile test_const_save_warn1.cpp ]
155 [ compile test_const_save_warn2.cpp ]
156 [ compile test_const_save_warn3.cpp ]
157 # note - library unable to detect these errors for now
158 #[ compile test_const_save_warn1_nvp.cpp ]
159 #[ compile test_const_save_warn2_nvp.cpp ]
160 #[ compile test_const_save_warn3_nvp.cpp ]
163 [ compile test_traits_pass.cpp ]
164 [ compile test_const_pass.cpp ]