|
Boost-Commit : |
From: dgregor_at_[hidden]
Date: 2007-06-04 23:13:44
Author: dgregor
Date: 2007-06-04 23:13:43 EDT (Mon, 04 Jun 2007)
New Revision: 4439
URL: http://svn.boost.org/trac/boost/changeset/4439
Log:
Testing support for TR1 library
Added:
sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/CMakeLists.txt
sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/test/CMakeLists.txt
Text files modified:
sandbox-branches/boost-cmake/boost_1_34_0/TODO | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
Modified: sandbox-branches/boost-cmake/boost_1_34_0/TODO
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/TODO (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/TODO 2007-06-04 23:13:43 EDT (Mon, 04 Jun 2007)
@@ -10,14 +10,8 @@
- CMakeFiles for remaining libs
-- Overhaul "sticky" flags and test
-
-- Multithreaded build variant.
-
- Docs
-- Test ICU support in Regex
-
- Try to figure out what is happening with "empty" .o files in Mac build
- In libs/numeric/interval/test, how to detect OSF and HP's C++ compiler?
@@ -32,8 +26,6 @@
- Testing for the Statechart library
-- Testing for the TR1 library (globs for tests)
-
- Testing for the type traits library (globs for tests)
- Testing for the typeof library
Added: sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/CMakeLists.txt 2007-06-04 23:13:43 EDT (Mon, 04 Jun 2007)
@@ -0,0 +1,4 @@
+boost_library_project(
+ tr1
+ TESTDIRS test
+ )
Added: sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/test/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/tr1/test/CMakeLists.txt 2007-06-04 23:13:43 EDT (Mon, 04 Jun 2007)
@@ -0,0 +1,43 @@
+include_directories(${Boost_SOURCE_DIR}/boost/tr1/tr1)
+
+if (BORLAND)
+ # Borland's broken include mechanism needs these extra headers:
+ include_directories(${Boost_SOURCE_DIR}/boost/tr1/tr1/bcc32)
+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} SOURCES ${path}/${file_name}.cpp COMPILE_FLAGS "${compile_flags}")
+ 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} SOURCES ${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} SOURCES ${path}/${file_name}.cpp COMPILE_FLAGS "${compile_flags}")
+ endforeach (current_file)
+endmacro(boost_glob_test_run)
+
+
+boost_glob_test_compile(. test*.cpp "-DTEST_STD_HEADERS=1")
+
+boost_glob_test_run(. run*.cpp -DTEST_STD_HEADERS=1)
+
+boost_glob_test_compile_fail(config tr1_has_tr1*fail.cpp "")
+
+boost_glob_test_compile(config tr1_has_tr1*pass.cpp "")
+
+boost_glob_test_run(type_traits *.cpp "-DTEST_STD=1")
+
+boost_glob_test_compile(std_headers *.cpp "")
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