# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
+#
+
+import os ;
+
+# import rules for testing conditional on config file variables
+import ../../config/checks/config : requires ;
test-suite dynamic_bitset :
- [ run dyn_bitset_unit_tests1.cpp ]
- [ run dyn_bitset_unit_tests2.cpp ]
- [ run dyn_bitset_unit_tests3.cpp ]
- [ run dyn_bitset_unit_tests4.cpp ]
- [ run dyn_bitset_unit_tests5.cpp /boost/serialization//boost_serialization
- : : : <define>_SCL_SECURE_NO_WARNINGS=1 ]
+ [ run dyn_bitset_unit_tests1.cpp : : : <library>/boost/system//boost_system ]
+ [ run dyn_bitset_unit_tests2.cpp : : : <library>/boost/system//boost_system ]
+ [ run dyn_bitset_unit_tests3.cpp : : : <library>/boost/system//boost_system ]
+ [ run dyn_bitset_unit_tests4.cpp : : : <library>/boost/filesystem//boost_filesystem
+ <library>/boost/system//boost_system ]
+ [ run test_ambiguous_set.cpp ]
+ [ run test_lowest_bit.cpp ]
+
+ [ run test_boost_hash.cpp ]
+ [ run test_std_hash.cpp : : : [ requires cxx11_hdr_unordered_set ] ]
+
+ [ compile-fail test_std_hash.cpp : [ requires cxx11_hdr_unordered_set ]
+ <define>BOOST_DYNAMIC_BITSET_NO_STD_HASH
+ : test_std_hash_disabled ]
+ ;
+
+# due to https://github.com/boostorg/serialization/issues/108
+if ! [ os.environ UBSAN_OPTIONS ]
+{
+ test-suite dynamic_bitset_serialization :
+
+ [ run dyn_bitset_unit_tests5.cpp
+ : : : <define>_SCL_SECURE_NO_WARNINGS=1
+ <library>/boost/serialization//boost_serialization
+ <library>/boost/system//boost_system ]
;
+}