Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56704 - in trunk/libs: functional/hash/test unordered unordered/test unordered/test/exception unordered/test/unordered
From: daniel_james_at_[hidden]
Date: 2009-10-10 11:09:03


Author: danieljames
Date: 2009-10-10 11:09:02 EDT (Sat, 10 Oct 2009)
New Revision: 56704
URL: http://svn.boost.org/trac/boost/changeset/56704

Log:
Copy the unordered and hash CMake files from release.
Added:
   trunk/libs/unordered/test/exception/CMakeLists.txt
      - copied unchanged from r56701, /branches/release/libs/unordered/test/exception/CMakeLists.txt
   trunk/libs/unordered/test/unordered/CMakeLists.txt
      - copied unchanged from r56701, /branches/release/libs/unordered/test/unordered/CMakeLists.txt
Text files modified:
   trunk/libs/functional/hash/test/CMakeLists.txt | 9 +++--
   trunk/libs/unordered/CMakeLists.txt | 2
   trunk/libs/unordered/test/CMakeLists.txt | 61 +--------------------------------------
   3 files changed, 8 insertions(+), 64 deletions(-)

Modified: trunk/libs/functional/hash/test/CMakeLists.txt
==============================================================================
--- trunk/libs/functional/hash/test/CMakeLists.txt (original)
+++ trunk/libs/functional/hash/test/CMakeLists.txt 2009-10-10 11:09:02 EDT (Sat, 10 Oct 2009)
@@ -22,12 +22,13 @@
 #-------------------------------------------------------------------------
 
 SET(tests
-hash_float_test
 hash_fwd_test_1
 hash_fwd_test_2
 hash_number_test
 hash_pointer_test
 hash_function_pointer_test
+hash_float_test
+hash_long_double_test
 hash_string_test
 hash_range_test
 hash_custom_test
@@ -40,18 +41,18 @@
 hash_deque_test
 hash_set_test
 hash_map_test
+hash_complex_test
 container_fwd_test
 hash_no_ext_macro_1
 hash_no_ext_macro_2
 )
 
 boost_test_run(link_test link_test.cpp link_test_2.cpp)
-boost_test_run(link_ext_test link_ext_test.cpp link_no_ext_test.cpp)
-
+boost_test_run(link_ext_test link_ext_test.cpp link_no_ext_test.cpp
+)
 foreach(test ${tests})
   boost_test_run(${test})
 endforeach(test ${tests})
 
 boost_test_compile_fail(hash_no_ext_fail_test)
 
-# build-project ../examples ;

Modified: trunk/libs/unordered/CMakeLists.txt
==============================================================================
--- trunk/libs/unordered/CMakeLists.txt (original)
+++ trunk/libs/unordered/CMakeLists.txt 2009-10-10 11:09:02 EDT (Sat, 10 Oct 2009)
@@ -17,7 +17,7 @@
 boost_library_project(
   unordered
   # SRCDIRS
- # TESTDIRS
+ TESTDIRS test
   HEADERS ${lib_headers}
   # DOCDIRS
   # DESCRIPTION

Modified: trunk/libs/unordered/test/CMakeLists.txt
==============================================================================
--- trunk/libs/unordered/test/CMakeLists.txt (original)
+++ trunk/libs/unordered/test/CMakeLists.txt 2009-10-10 11:09:02 EDT (Sat, 10 Oct 2009)
@@ -18,64 +18,7 @@
 
 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)
 
-#-------------------------------------------------------------------------------
-# Exception Tests
-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)
+add_subdirectory(exception)
+add_subdirectory(unordered)
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk