diff --git a/hash/test/Jamfile.v2 b/hash/test/Jamfile.v2 index ab6f2fa..7b3ccd9 100644 --- a/hash/test/Jamfile.v2 +++ b/hash/test/Jamfile.v2 @@ -1,5 +1,5 @@ -# Copyright 2005-2008 Daniel James. +# Copyright 2005-2011 Daniel James. # 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) @@ -7,7 +7,6 @@ import testing ; project hash-tests : requirements - BOOST_HASH_NO_IMPLICIT_CASTS all intel:on intel:-strict-ansi @@ -20,42 +19,49 @@ project hash-tests test-suite functional/hash : - [ run hash_fwd_test_1.cpp ] - [ run hash_fwd_test_2.cpp ] - [ run hash_number_test.cpp ] - [ run hash_pointer_test.cpp ] - [ run hash_function_pointer_test.cpp ] - [ run hash_float_test.cpp ] - [ run hash_long_double_test.cpp ] - [ run hash_string_test.cpp ] - [ run hash_range_test.cpp ] - [ run hash_custom_test.cpp ] - [ run hash_global_namespace_test.cpp ] - [ run hash_friend_test.cpp ] - [ run hash_built_in_array_test.cpp ] - [ run hash_value_array_test.cpp ] - [ run hash_vector_test.cpp ] - [ run hash_list_test.cpp ] - [ run hash_deque_test.cpp ] - [ run hash_set_test.cpp ] - [ run hash_map_test.cpp ] - [ run hash_complex_test.cpp ] - [ run hash_type_index_test.cpp ] - [ run link_test.cpp link_test_2.cpp ] - [ run link_ext_test.cpp link_no_ext_test.cpp ] - [ run extensions_hpp_test.cpp ] - [ run container_fwd_test.cpp ] - [ run container_fwd_test.cpp : : - : gcc:_GLIBCXX_DEBUG - darwin:_GLIBCXX_DEBUG - : container_fwd_gcc_debug ] - [ run container_no_fwd_test.cpp ] - [ compile-fail hash_no_ext_fail_test.cpp ] - [ compile-fail namespace_fail_test.cpp ] - [ compile-fail implicit_fail_test.cpp ] - [ compile-fail shared_ptr_fail_test.cpp ] - [ run hash_no_ext_macro_1.cpp ] - [ run hash_no_ext_macro_2.cpp ] + [ run hash_fwd_test_1.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_fwd_test_2.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_number_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_pointer_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_function_pointer_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_float_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_long_double_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_string_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_range_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_custom_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_global_namespace_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_friend_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_built_in_array_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_value_array_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_vector_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_list_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_deque_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_set_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_map_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_complex_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_type_index_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run link_test.cpp link_test_2.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run link_ext_test.cpp link_no_ext_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run extensions_hpp_test.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ compile-fail hash_no_ext_fail_test.cpp : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ compile-fail namespace_fail_test.cpp : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ compile-fail implicit_fail_test.cpp : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_no_ext_macro_1.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + [ run hash_no_ext_macro_2.cpp : : : BOOST_HASH_NO_IMPLICIT_CASTS ] + ; + +test-suite functional/hash_implicit_casts + : + [ run hash_number_test.cpp : : : : implicit_number ] + [ run hash_pointer_test.cpp : : : : implicit_pointer ] + [ run hash_function_pointer_test.cpp : : : : implicit_function_pointer ] + [ run hash_float_test.cpp : : : : implicit_float ] + [ run hash_string_test.cpp : : : : implicit_string ] + [ run hash_range_test.cpp : : : : implicit_range ] + [ run hash_custom_test.cpp : : : : implicit_custom ] + [ run hash_built_in_array_test.cpp : : : : implicit_built_in_array ] + [ run link_test.cpp link_test_2.cpp : : : : implicit_link ] + [ run implicit_fail_test.cpp : : : : implicit_test ] ; test-suite functional/hash_no_ext diff --git a/hash/test/container_fwd_test.cpp b/hash/test/container_fwd_test.cpp deleted file mode 100644 index ec8cc54..0000000 --- a/hash/test/container_fwd_test.cpp +++ /dev/null @@ -1,114 +0,0 @@ - -// Copyright 2005-2009 Daniel James. -// 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) - -#include "./config.hpp" - -#include - -#if BOOST_WORKAROUND(__GNUC__, < 3) && \ - !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) -template -static void test( - std::basic_string, Allocator> const&) -{ -} -#else -template -static void test( - std::basic_string, Allocator> const&) -{ -} -#endif - -template -static void test(std::deque const&) -{ -} - -template -static void test(std::list const&) -{ -} - -template -static void test(std::vector const&) -{ -} - -template -static void test(std::map const&) -{ -} - -template -static void test(std::multimap const&) -{ -} - -template -static void test(std::set const&) -{ -} - -template -static void test(std::multiset const&) -{ -} - -template -static void test(std::bitset const&) -{ -} - -template -static void test(std::complex const&) -{ -} - -template -static void test(std::pair const&) -{ -} - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -int main() -{ - std::deque x1; - std::list x2; - std::vector x3; - std::vector x4; - std::map x5; - std::multimap x6; - std::set x7; - std::multiset > x8; - std::bitset<10> x9; - std::string x10; - std::complex x11; - std::pair, char***> x12; - - test(x1); - test(x2); - test(x3); - test(x4); - test(x5); - test(x6); - test(x7); - test(x8); - test(x9); - test(x10); - test(x11); - test(x12); - - return 0; -} diff --git a/hash/test/container_no_fwd_test.cpp b/hash/test/container_no_fwd_test.cpp deleted file mode 100644 index 9da09da..0000000 --- a/hash/test/container_no_fwd_test.cpp +++ /dev/null @@ -1,14 +0,0 @@ - -// Copyright 2010 Daniel James. -// 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) - -#define BOOST_DETAIL_NO_CONTAINER_FWD - -#include - -int main() -{ - std::set x; - std::vector y; -} diff --git a/hash/test/shared_ptr_fail_test.cpp b/hash/test/shared_ptr_fail_test.cpp deleted file mode 100644 index b0e045f..0000000 --- a/hash/test/shared_ptr_fail_test.cpp +++ /dev/null @@ -1,16 +0,0 @@ - -// Copyright 2010 Daniel James. -// 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) - -#include -#include - -// This should obviously pass if shared_ptr ever supports Boost.Hash. - -int main() { - boost::hash > hash; - boost::shared_ptr x(new int(10)); - - hash(x); -}