Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2007-06-16 11:23:49


Author: dgregor
Date: 2007-06-16 11:23:48 EDT (Sat, 16 Jun 2007)
New Revision: 7076
URL: http://svn.boost.org/trac/boost/changeset/7076

Log:
Add remaining TR1 test cases

Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/test/CMakeLists.txt | 45 ++++++++++++++++++++++++---------------
   1 files changed, 28 insertions(+), 17 deletions(-)

Modified: sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/test/CMakeLists.txt
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/test/CMakeLists.txt (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/test/CMakeLists.txt 2007-06-16 11:23:48 EDT (Sat, 16 Jun 2007)
@@ -6,33 +6,44 @@
 endif (BORLAND)
 
 macro(boost_glob_test_compile path glob_par compile_flags)
- file(GLOB file_list ${path}/${glob_par})
- foreach (current_file ${file_list})
- GET_FILENAME_COMPONENT(file_name ${current_file} NAME_WE)
- boost_test_compile(${file_name} ${path}/${file_name}.cpp COMPILE_FLAGS "${compile_flags}")
- endforeach (current_file)
+ list_contains(WITH_STD "WITH_STD" ${ARGN})
+ file(GLOB file_list ${path}/${glob_par})
+ foreach (current_file ${file_list})
+ get_filename_component(file_name ${current_file} NAME_WE)
+ boost_test_compile(${file_name} ${path}/${file_name}.cpp
+ COMPILE_FLAGS "${compile_flags}")
+ if (WITH_STD)
+ boost_test_compile(${file_name}_std ${path}/${file_name}.cpp
+ COMPILE_FLAGS "${compile_flags} -DTEST_STD_HEADERS=1")
+ endif (WITH_STD)
+ endforeach (current_file)
 endmacro(boost_glob_test_compile)
 
 macro(boost_glob_test_compile_fail patch glob_par compile_flags)
- file(GLOB file_list ${glob_par})
- foreach (current_file ${file_list})
- GET_FILENAME_COMPONENT(file_name ${current_file} NAME_WE)
- boost_test_compile_fail(${file_name} ${path}/${file_name}.cpp COMPILE_FLAGS "${compile_flags}")
+ file(GLOB file_list ${glob_par})
+ foreach (current_file ${file_list})
+ get_filename_component(file_name ${current_file} NAME_WE)
+ boost_test_compile_fail(${file_name} ${path}/${file_name}.cpp COMPILE_FLAGS "${compile_flags}")
           endforeach (current_file)
 endmacro(boost_glob_test_compile_fail)
 
 macro(boost_glob_test_run path glob_par compile_flags)
- file(GLOB file_list ${path}/${glob_par})
- foreach (current_file ${file_list})
- GET_FILENAME_COMPONENT(file_name ${current_file} NAME_WE)
- boost_test_run(${file_name} ${path}/${file_name}.cpp COMPILE_FLAGS "${compile_flags}")
- endforeach (current_file)
+ list_contains(WITH_STD "WITH_STD" ${ARGN})
+ file(GLOB file_list ${path}/${glob_par})
+ foreach (current_file ${file_list})
+ get_filename_component(file_name ${current_file} NAME_WE)
+ boost_test_run(${file_name} ${path}/${file_name}.cpp COMPILE_FLAGS "${compile_flags}")
+ if (WITH_STD)
+ boost_test_run(${file_name}_std ${path}/${file_name}.cpp
+ COMPILE_FLAGS "${compile_flags} -DTEST_STD_HEADERS=1")
+ endif (WITH_STD)
+ endforeach (current_file)
 endmacro(boost_glob_test_run)
 
 
-boost_glob_test_compile(. test*.cpp "-DTEST_STD_HEADERS=1")
+boost_glob_test_compile(. test*.cpp "" WITH_STD)
 
-boost_glob_test_run(. run*.cpp -DTEST_STD_HEADERS=1)
+boost_glob_test_run(. run*.cpp "" WITH_STD)
 
 boost_glob_test_compile_fail(config tr1_has_tr1*fail.cpp "")
 
@@ -40,4 +51,4 @@
 
 boost_glob_test_run(type_traits *.cpp "-DTEST_STD=1")
 
-boost_glob_test_compile(std_headers *.cpp "")
+boost_glob_test_compile(std_headers *.cpp "-DTEST_STD=1")


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