2006-05-17 17:19:16 +00:00
|
|
|
|
2008-03-27 23:38:01 +00:00
|
|
|
# Copyright 2006-2008 Daniel James.
|
2022-05-20 14:17:43 -07:00
|
|
|
# Copyright 2022 Christian Mazakas
|
2006-07-01 22:31:26 +00:00
|
|
|
# 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)
|
2006-05-17 17:19:16 +00:00
|
|
|
|
2016-07-02 22:11:43 +01:00
|
|
|
import testing ;
|
|
|
|
|
|
2022-02-10 03:58:40 +02:00
|
|
|
# Adding -Wundef is blocked on (at least)
|
|
|
|
|
# https://github.com/boostorg/type_traits/issues/165
|
|
|
|
|
|
|
|
|
|
local gcc-flags = -Wsign-promo -Wconversion -Wsign-conversion -Wfloat-equal -Wshadow -Wno-variadic-macros ;
|
|
|
|
|
local clang-flags = $(gcc-flags) -Wno-c99-extensions ;
|
|
|
|
|
local msvc-flags = /wd4494 ;
|
|
|
|
|
|
|
|
|
|
project
|
2016-07-02 22:11:43 +01:00
|
|
|
: requirements
|
2022-02-10 03:58:40 +02:00
|
|
|
|
2021-12-21 00:46:45 +02:00
|
|
|
<warnings>pedantic
|
2016-07-02 22:11:43 +01:00
|
|
|
<toolset>intel:<warnings>on
|
2022-02-10 03:58:40 +02:00
|
|
|
|
|
|
|
|
<toolset>gcc:<cxxflags>$(gcc-flags)
|
|
|
|
|
<toolset>darwin:<cxxflags>$(gcc-flags)
|
|
|
|
|
<toolset>clang:<cxxflags>$(clang-flags)
|
|
|
|
|
<toolset>msvc:<cxxflags>$(msvc-flags)
|
|
|
|
|
|
2022-02-10 22:31:48 +02:00
|
|
|
<toolset>gcc:<warnings-as-errors>on
|
|
|
|
|
<toolset>clang:<warnings-as-errors>on
|
|
|
|
|
<toolset>msvc:<warnings-as-errors>on
|
2016-07-02 22:11:43 +01:00
|
|
|
;
|
|
|
|
|
|
2016-07-03 08:39:45 +01:00
|
|
|
#alias framework : /boost/test//boost_unit_test_framework ;
|
|
|
|
|
alias framework : ;
|
|
|
|
|
|
2016-07-02 22:11:43 +01:00
|
|
|
test-suite unordered
|
|
|
|
|
:
|
|
|
|
|
[ run unordered/fwd_set_test.cpp ]
|
|
|
|
|
[ run unordered/fwd_map_test.cpp ]
|
|
|
|
|
[ run unordered/allocator_traits.cpp ]
|
|
|
|
|
[ run unordered/minimal_allocator.cpp ]
|
|
|
|
|
[ run unordered/compile_set.cpp ]
|
|
|
|
|
[ run unordered/compile_map.cpp ]
|
|
|
|
|
[ run unordered/noexcept_tests.cpp ]
|
|
|
|
|
[ run unordered/link_test_1.cpp unordered/link_test_2.cpp ]
|
|
|
|
|
[ run unordered/incomplete_test.cpp ]
|
|
|
|
|
[ run unordered/simple_tests.cpp ]
|
|
|
|
|
[ run unordered/equivalent_keys_tests.cpp ]
|
|
|
|
|
[ run unordered/constructor_tests.cpp ]
|
|
|
|
|
[ run unordered/copy_tests.cpp ]
|
|
|
|
|
[ run unordered/move_tests.cpp ]
|
2022-02-11 10:19:33 -08:00
|
|
|
[ run unordered/assign_tests.cpp ]
|
2016-07-02 22:11:43 +01:00
|
|
|
[ run unordered/insert_tests.cpp ]
|
|
|
|
|
[ run unordered/insert_stable_tests.cpp ]
|
2016-08-17 12:08:15 +01:00
|
|
|
[ run unordered/insert_hint_tests.cpp ]
|
2016-11-02 07:30:41 +00:00
|
|
|
[ run unordered/emplace_tests.cpp ]
|
2016-07-02 22:11:43 +01:00
|
|
|
[ run unordered/unnecessary_copy_tests.cpp ]
|
2017-04-15 17:35:09 +01:00
|
|
|
[ run unordered/erase_tests.cpp : : : <define>BOOST_UNORDERED_SUPPRESS_DEPRECATED ]
|
2016-07-02 22:11:43 +01:00
|
|
|
[ run unordered/erase_equiv_tests.cpp ]
|
2017-02-27 03:59:02 +00:00
|
|
|
[ run unordered/extract_tests.cpp ]
|
|
|
|
|
[ run unordered/node_handle_tests.cpp ]
|
2017-02-27 03:59:02 +00:00
|
|
|
[ run unordered/merge_tests.cpp ]
|
2017-02-27 03:59:02 +00:00
|
|
|
[ compile-fail unordered/insert_node_type_fail.cpp : <define>UNORDERED_TEST_MAP : insert_node_type_fail_map ]
|
|
|
|
|
[ compile-fail unordered/insert_node_type_fail.cpp : <define>UNORDERED_TEST_MULTIMAP : insert_node_type_fail_multimap ]
|
|
|
|
|
[ compile-fail unordered/insert_node_type_fail.cpp : <define>UNORDERED_TEST_SET : insert_node_type_fail_set ]
|
|
|
|
|
[ compile-fail unordered/insert_node_type_fail.cpp : <define>UNORDERED_TEST_MULTISET : insert_node_type_fail_multiset ]
|
2016-07-02 22:11:43 +01:00
|
|
|
[ run unordered/find_tests.cpp ]
|
|
|
|
|
[ run unordered/at_tests.cpp ]
|
|
|
|
|
[ run unordered/bucket_tests.cpp ]
|
|
|
|
|
[ run unordered/load_factor_tests.cpp ]
|
|
|
|
|
[ run unordered/rehash_tests.cpp ]
|
|
|
|
|
[ run unordered/equality_tests.cpp ]
|
|
|
|
|
[ run unordered/swap_tests.cpp ]
|
2017-12-19 12:11:36 +00:00
|
|
|
[ run unordered/deduction_tests.cpp ]
|
2022-02-09 09:49:34 -08:00
|
|
|
[ run unordered/scoped_allocator.cpp : : : <toolset>msvc-14.0:<build>no ]
|
2021-11-19 15:29:57 -08:00
|
|
|
[ run unordered/transparent_tests.cpp ]
|
2021-12-15 09:42:33 -08:00
|
|
|
[ run unordered/reserve_tests.cpp ]
|
2022-01-11 09:40:31 -08:00
|
|
|
[ run unordered/contains_tests.cpp ]
|
2022-02-22 15:12:55 -08:00
|
|
|
[ run unordered/erase_if.cpp ]
|
2022-05-20 14:17:43 -07:00
|
|
|
[ run unordered/scary_tests.cpp ]
|
2016-07-02 22:11:43 +01:00
|
|
|
|
|
|
|
|
[ run unordered/compile_set.cpp : :
|
|
|
|
|
: <define>BOOST_UNORDERED_USE_MOVE
|
|
|
|
|
: bmove_compile_set ]
|
|
|
|
|
[ run unordered/compile_map.cpp : :
|
|
|
|
|
: <define>BOOST_UNORDERED_USE_MOVE
|
|
|
|
|
: bmove_compile_map ]
|
|
|
|
|
[ run unordered/copy_tests.cpp : :
|
|
|
|
|
: <define>BOOST_UNORDERED_USE_MOVE
|
|
|
|
|
: bmove_copy ]
|
|
|
|
|
[ run unordered/move_tests.cpp : :
|
|
|
|
|
: <define>BOOST_UNORDERED_USE_MOVE
|
|
|
|
|
: bmove_move ]
|
|
|
|
|
[ run unordered/assign_tests.cpp : :
|
2022-02-11 10:19:33 -08:00
|
|
|
: <define>BOOST_UNORDERED_USE_MOVE
|
2016-07-02 22:11:43 +01:00
|
|
|
: bmove_assign ]
|
|
|
|
|
;
|
|
|
|
|
|
2016-07-03 08:39:45 +01:00
|
|
|
test-suite unordered-exception
|
|
|
|
|
:
|
|
|
|
|
[ run exception/constructor_exception_tests.cpp framework ]
|
|
|
|
|
[ run exception/copy_exception_tests.cpp framework ]
|
2022-02-11 10:19:33 -08:00
|
|
|
[ run exception/assign_exception_tests.cpp framework ]
|
2016-10-02 13:04:25 +01:00
|
|
|
[ run exception/move_assign_exception_tests.cpp framework ]
|
2016-07-03 08:39:45 +01:00
|
|
|
[ run exception/insert_exception_tests.cpp framework ]
|
|
|
|
|
[ run exception/erase_exception_tests.cpp framework ]
|
|
|
|
|
[ run exception/rehash_exception_tests.cpp framework ]
|
|
|
|
|
[ run exception/swap_exception_tests.cpp framework : : :
|
|
|
|
|
<define>BOOST_UNORDERED_SWAP_METHOD=2 ]
|
2017-05-07 17:54:34 +01:00
|
|
|
[ run exception/merge_exception_tests.cpp framework ]
|
2016-07-03 08:39:45 +01:00
|
|
|
;
|