Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2008-06-04 22:02:53


Author: troy
Date: 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
New Revision: 46146
URL: http://svn.boost.org/trac/boost/changeset/46146

Log:

A few basic cmake-sanity-testing projects/libs. This is for
verification on the build-reporting-system and debugging the build
system itself... who knows, maybe we'll even be able to unit-test the
build itself someday.

Enable these with the BOOST_BUILD_SANITY_TEST cmake option

Added:
   branches/CMake/release/tools/build/CMake/sanity/
   branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/
   branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/CMakeLists.txt (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/
   branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/CMakeLists.txt (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/green.cpp (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/warn.cpp (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/wont_link/
   branches/CMake/release/tools/build/CMake/sanity/wont_link/CMakeLists.txt (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/wont_link/src/
   branches/CMake/release/tools/build/CMake/sanity/wont_link/src/CMakeLists.txt (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/wont_link/src/compiles_nowarn.cpp (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/wont_link/test/
   branches/CMake/release/tools/build/CMake/sanity/wont_link/test/CMakeLists.txt (contents, props changed)
   branches/CMake/release/tools/build/CMake/sanity/wont_link/test/link_error.cpp (contents, props changed)

Added: branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/CMakeLists.txt 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,6 @@
+boost_library_project(
+ one_clean_one_warn
+ SRCDIRS src
+)
+
+

Added: branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/CMakeLists.txt 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,5 @@
+boost_add_library(
+ one_clean_one_warn
+ green.cpp warn.cpp
+ )
+

Added: branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/green.cpp
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/green.cpp 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,2 @@
+static void foo() { }
+

Added: branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/warn.cpp
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/one_clean_one_warn/src/warn.cpp 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,4 @@
+#warning this one has a warning
+
+static void bar() { }
+

Added: branches/CMake/release/tools/build/CMake/sanity/wont_link/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/wont_link/CMakeLists.txt 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,7 @@
+boost_library_project(
+ WontLinkProject
+ SRCDIRS src
+ TESTDIRS test
+)
+
+

Added: branches/CMake/release/tools/build/CMake/sanity/wont_link/src/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/wont_link/src/CMakeLists.txt 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,5 @@
+boost_add_library(
+ wont_link
+ compiles_nowarn.cpp
+ )
+

Added: branches/CMake/release/tools/build/CMake/sanity/wont_link/src/compiles_nowarn.cpp
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/wont_link/src/compiles_nowarn.cpp 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,8 @@
+int this_function_is_declared_but_not_defined();
+
+void provoke_link_error()
+{
+ this_function_is_declared_but_not_defined();
+}
+
+

Added: branches/CMake/release/tools/build/CMake/sanity/wont_link/test/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/wont_link/test/CMakeLists.txt 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,2 @@
+boost_test_run(link_error DEPENDS wont_link)
+

Added: branches/CMake/release/tools/build/CMake/sanity/wont_link/test/link_error.cpp
==============================================================================
--- (empty file)
+++ branches/CMake/release/tools/build/CMake/sanity/wont_link/test/link_error.cpp 2008-06-04 22:02:52 EDT (Wed, 04 Jun 2008)
@@ -0,0 +1,9 @@
+#include <iostream>
+
+void provoke_link_error();
+
+int main(int, char**)
+{
+ provoke_link_error();
+ return 0;
+}


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