$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: troy_at_[hidden]
Date: 2007-05-18 18:29:24
Author: troy
Date: 2007-05-18 18:29:23 EDT (Fri, 18 May 2007)
New Revision: 4125
URL: http://svn.boost.org/trac/boost/changeset/4125
Log:
tests and example for xpressive
two tests fail (don't know why yet),
two need cmake infrastructure
Added:
   sandbox/troy/boost_1_34_0/libs/xpressive/CMakeLists.txt
   sandbox/troy/boost_1_34_0/libs/xpressive/test/CMakeLists.txt
Text files modified: 
   sandbox/troy/boost_1_34_0/TODO                                  |     2 ++                                      
   sandbox/troy/boost_1_34_0/tools/build/CMake/boost-testing.cmake |     4 ++++                                    
   2 files changed, 6 insertions(+), 0 deletions(-)
Modified: sandbox/troy/boost_1_34_0/TODO
==============================================================================
--- sandbox/troy/boost_1_34_0/TODO	(original)
+++ sandbox/troy/boost_1_34_0/TODO	2007-05-18 18:29:23 EDT (Fri, 18 May 2007)
@@ -6,6 +6,8 @@
 - Check to see how the tests look under XCode/VS.  Brad king indicates
   that the one-binary-per-test setup is wrong. 
 
+- need boost_add_executable or somesuch for building examples in projects
+
 - CMakeFiles for remaining libs
 
 - Overhaul "sticky" flags and test  
Added: sandbox/troy/boost_1_34_0/libs/xpressive/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox/troy/boost_1_34_0/libs/xpressive/CMakeLists.txt	2007-05-18 18:29:23 EDT (Fri, 18 May 2007)
@@ -0,0 +1,6 @@
+boost_library_subproject(
+  Xpressive
+  TESTDIRS test
+)
+
+add_executable(example example/main.cpp)
\ No newline at end of file
Added: sandbox/troy/boost_1_34_0/libs/xpressive/test/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox/troy/boost_1_34_0/libs/xpressive/test/CMakeLists.txt	2007-05-18 18:29:23 EDT (Fri, 18 May 2007)
@@ -0,0 +1,62 @@
+#  : requirements
+#        <toolset>intel:<debug-symbols>off
+#       <toolset>msvc,<stdlib>stlport:<define>_STLP_EXPOSE_GLOBALS_IMPLEMENTATION
+
+#         [ linkp multiple_defs1.cpp multiple_defs2.cpp : : multiple_defs ]
+
+boost_test_fail("multipledefs")
+boost_test_fail("msvc-stlport")
+
+SET(runtests 
+  regress
+  c_traits
+  test1
+  test2
+  test3
+  test4
+  test5
+  test6
+  test7
+  test8
+  test9
+  test10
+  test11
+  test1u
+  test2u
+  test3u
+  test4u
+  test5u
+  test6u
+  test7u
+  test8u
+  test9u
+  test10u
+  test11u
+  misc1
+  misc2
+  test_cycles
+  test_non_char
+  test_static
+  test_dynamic)
+
+foreach(runtest ${runtests})
+  boost_test_run(${runtest})
+endforeach(runtest ${runtests})
+
+set(compiletests
+  test_basic_regex
+  test_match_results
+  test_regex_algorithms
+  test_regex_compiler
+  test_regex_constants
+  test_regex_error
+  test_regex_iterator
+  test_regex_primitives
+  test_regex_token_iterator
+  test_regex_traits 
+  test_sub_match
+  )
+
+foreach(compiletest ${compiletests})
+  boost_test_compile(${compiletest})
+endforeach(compiletest ${compiletests})
Modified: sandbox/troy/boost_1_34_0/tools/build/CMake/boost-testing.cmake
==============================================================================
--- sandbox/troy/boost_1_34_0/tools/build/CMake/boost-testing.cmake	(original)
+++ sandbox/troy/boost_1_34_0/tools/build/CMake/boost-testing.cmake	2007-05-18 18:29:23 EDT (Fri, 18 May 2007)
@@ -115,6 +115,10 @@
   endif(BOOST_TEST_OKAY)
 endmacro(boost_test_run_fail)
 
+macro(boost_test_fail testname)
+  add_test("${PROJECT_NAME}::${testname}" false)
+endmacro(boost_test_fail)
+
 macro(boost_test_compile testname)
   boost_test_parse_args(${testname} ${ARGN})
   if(BOOST_TEST_OKAY)