forked from boostorg/unordered
Copy the unordered and hash CMake files from release.
[SVN r56704]
This commit is contained in:
@ -17,7 +17,7 @@ set (lib_headers
|
|||||||
boost_library_project(
|
boost_library_project(
|
||||||
unordered
|
unordered
|
||||||
# SRCDIRS
|
# SRCDIRS
|
||||||
# TESTDIRS
|
TESTDIRS test
|
||||||
HEADERS ${lib_headers}
|
HEADERS ${lib_headers}
|
||||||
# DOCDIRS
|
# DOCDIRS
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
@ -18,64 +18,7 @@ ENDIF( ${CMAKE_CXX_COMPILER} MATCHES "icpc" )
|
|||||||
|
|
||||||
set (swap_compile_flags "${test_compile_flags} -DBOOST_UNORDERED_SWAP_METHOD=2")
|
set (swap_compile_flags "${test_compile_flags} -DBOOST_UNORDERED_SWAP_METHOD=2")
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Unordered Tests
|
|
||||||
set (unordered_tests
|
|
||||||
fwd_set_test
|
|
||||||
fwd_map_test
|
|
||||||
compile_set
|
|
||||||
compile_map
|
|
||||||
link_test_1
|
|
||||||
link_test_2
|
|
||||||
simple_tests
|
|
||||||
equivalent_keys_tests
|
|
||||||
constructor_tests
|
|
||||||
copy_tests
|
|
||||||
move_tests.cpp
|
|
||||||
assign_tests
|
|
||||||
insert_tests
|
|
||||||
insert_stable_tests
|
|
||||||
unnecessary_copy_tests
|
|
||||||
erase_tests
|
|
||||||
erase_equiv_tests
|
|
||||||
find_tests
|
|
||||||
at_tests
|
|
||||||
bucket_tests
|
|
||||||
load_factor_tests
|
|
||||||
rehash_tests
|
|
||||||
equality_tests
|
|
||||||
)
|
|
||||||
#-- Create an executable test for each source
|
|
||||||
foreach(test ${unordered_tests})
|
|
||||||
boost_test_run(${test} "unordered/${test}.cpp"
|
|
||||||
COMPILE_FLAGS ${test_compile_flags}
|
|
||||||
DEPENDS boost_unit_test_framework)
|
|
||||||
endforeach(test ${unordered_tests})
|
|
||||||
|
|
||||||
#-- run the swap test
|
|
||||||
boost_test_run(swap_tests
|
|
||||||
COMPILE_FLAGS ${swap_compile_flags}
|
|
||||||
DEPENDS boost_unit_test_framework)
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
add_subdirectory(exception)
|
||||||
# Exception Tests
|
add_subdirectory(unordered)
|
||||||
set (exception_tests
|
|
||||||
constructor_exception_tests
|
|
||||||
copy_exception_tests
|
|
||||||
assign_exception_tests
|
|
||||||
insert_exception_tests
|
|
||||||
erase_exception_tests
|
|
||||||
rehash_exception_tests
|
|
||||||
)
|
|
||||||
|
|
||||||
#-- Create an executable test for each source
|
|
||||||
foreach(test ${exception_tests})
|
|
||||||
boost_test_run(${test} "exception/${test}.cpp"
|
|
||||||
COMPILE_FLAGS ${test_compile_flags}
|
|
||||||
DEPENDS boost_unit_test_framework)
|
|
||||||
endforeach(test ${unordered_tests})
|
|
||||||
|
|
||||||
#-- run the swap test
|
|
||||||
boost_test_run(swap_swap_exception_tests
|
|
||||||
COMPILE_FLAGS ${swap_compile_flags}
|
|
||||||
DEPENDS boost_unit_test_framework)
|
|
25
test/exception/CMakeLists.txt
Normal file
25
test/exception/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#
|
||||||
|
# Copyright Troy D. Straszheim
|
||||||
|
#
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# See http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
#
|
||||||
|
|
||||||
|
foreach(test
|
||||||
|
constructor_exception_tests
|
||||||
|
copy_exception_tests
|
||||||
|
assign_exception_tests
|
||||||
|
insert_exception_tests
|
||||||
|
erase_exception_tests
|
||||||
|
rehash_exception_tests
|
||||||
|
)
|
||||||
|
boost_test_run(${test}
|
||||||
|
COMPILE_FLAGS ${test_compile_flags}
|
||||||
|
DEPENDS boost_unit_test_framework)
|
||||||
|
endforeach(test ${unordered_tests})
|
||||||
|
|
||||||
|
#-- run the swap test
|
||||||
|
boost_test_run(swap_exception_tests
|
||||||
|
COMPILE_FLAGS ${swap_compile_flags}
|
||||||
|
DEPENDS boost_unit_test_framework)
|
||||||
|
|
43
test/unordered/CMakeLists.txt
Normal file
43
test/unordered/CMakeLists.txt
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#
|
||||||
|
# Copyright Troy D. Straszheim
|
||||||
|
#
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# See http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Unordered Tests
|
||||||
|
foreach(test
|
||||||
|
fwd_set_test
|
||||||
|
fwd_map_test
|
||||||
|
compile_set
|
||||||
|
compile_map
|
||||||
|
simple_tests
|
||||||
|
equivalent_keys_tests
|
||||||
|
constructor_tests
|
||||||
|
copy_tests
|
||||||
|
move_tests
|
||||||
|
assign_tests
|
||||||
|
insert_tests
|
||||||
|
insert_stable_tests
|
||||||
|
unnecessary_copy_tests
|
||||||
|
erase_tests
|
||||||
|
erase_equiv_tests
|
||||||
|
find_tests
|
||||||
|
at_tests
|
||||||
|
bucket_tests
|
||||||
|
load_factor_tests
|
||||||
|
rehash_tests
|
||||||
|
equality_tests
|
||||||
|
)
|
||||||
|
boost_test_run(${test}
|
||||||
|
COMPILE_FLAGS ${test_compile_flags}
|
||||||
|
DEPENDS boost_unit_test_framework)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
boost_test_run(link_test link_test_1.cpp link_test_2.cpp)
|
||||||
|
|
||||||
|
#-- run the swap test
|
||||||
|
boost_test_run(swap_tests
|
||||||
|
COMPILE_FLAGS ${swap_compile_flags}
|
||||||
|
DEPENDS boost_unit_test_framework)
|
||||||
|
|
Reference in New Issue
Block a user