
#  Copyright Daniel James 2005-2006. Use, modification, and distribution are
#  subject to 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)

subproject libs/functional/hash/test ;

import testing ;

DEPENDS all : test ;

rule hash-test ( names + : extras * )
{
    return [
        run $(names).cpp
        : : : <include>$(BOOST_ROOT) $(extras)
        : $(names[1])
        ] ;
}

{
    test-suite functional/hash
        :
            [ hash-test hash_fwd_test_1 ]
            [ hash-test hash_fwd_test_2 ]
            [ hash-test hash_number_test ]
            [ hash-test hash_pointer_test ]
            [ hash-test hash_function_pointer_test ]
            [ hash-test hash_float_test : <test-info>always_show_run_output ]
            [ hash-test hash_string_test ]
            [ hash-test hash_range_test ]
            [ hash-test hash_custom_test ]
            [ hash-test hash_global_namespace_test ]
            [ hash-test hash_friend_test ]
            [ hash-test hash_built_in_array_test ]
            [ hash-test hash_value_array_test ]
            [ hash-test hash_vector_test ]
            [ hash-test hash_list_test ]
            [ hash-test hash_deque_test ]
            [ hash-test hash_set_test ]
            [ hash-test hash_map_test ]
            [ hash-test hash_complex_test ]
            [ hash-test link_test link_test_2 ]
            [ hash-test link_ext_test link_no_ext_test ]
            [ run container_fwd_test.cpp : : : <include>$(BOOST_ROOT) ]
            [ compile-fail hash_no_ext_fail_test.cpp ]
            [ run hash_no_ext_macro_1.cpp ]
            [ run hash_no_ext_macro_2.cpp ]
        ;
}

subinclude libs/functional/hash/examples ;
