|
Boost-Commit : |
From: lists.drrngrvy_at_[hidden]
Date: 2007-08-24 12:02:38
Author: drrngrvy
Date: 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
New Revision: 38908
URL: http://svn.boost.org/trac/boost/changeset/38908
Log:
Fixed test-suite include problems. Need more (proper) tests, but for now these should check if the basics compile.
Added:
sandbox/SOC/2007/cgi/libs/cgi/test/compile/Jamfile.v2 (contents, props changed)
sandbox/SOC/2007/cgi/libs/cgi/test/compile/response.cpp (contents, props changed)
sandbox/SOC/2007/cgi/libs/cgi/test/run/Jamfile.v2 (contents, props changed)
Removed:
sandbox/SOC/2007/cgi/libs/cgi/test/compile/reply.cpp
Text files modified:
sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 | 36 ++++++++++--------------------------
sandbox/SOC/2007/cgi/libs/cgi/test/compile/acgi_request.cpp | 8 ++++----
sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_request.cpp | 2 +-
sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_service.cpp | 4 ++--
4 files changed, 17 insertions(+), 33 deletions(-)
Modified: sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
@@ -1,29 +1,13 @@
-import os ;
+# 'Do' all relevant tests.
-local BOOST_CGI_ROOT = [ os.environ BOOST_CGI_ROOT ] ;
-
-import testing ;
-
-test-suite cgi_test_suite
- :
-# [ compile compile/stdio_connection.cpp ]
-# [ compile compile/async_stdio_connection.cpp ]
-# [ compile compile/tcp_connection.cpp ]
-# [ compile compile/cgi_service.cpp ]
-# [ compile compile/fcgi_service.cpp ]
-# [ compile compile/is_async_test.cpp ]
- [ compile compile/cgi_request.cpp ]
-# [ compile compile/acgi_request.cpp ]
-
-# [ compile compile/reply.cpp ]
-
-# [ compile compile/cgi_header_check.cpp ]
-
-# [ run run/stdio_connection.cpp ]
-# [ run run/cgi_request.cpp ]
- :
- <include>$(BOOST_ROOT)
-# <include>$(BOOST_CGI_ROOT)
- <include>/usr/local/src/cgi/svn.boost.org/
+project
+ : requirements
+ <include>$(BOOST_ROOT)
+ <include>../../../
+ : build-dir
+ ../../../bin.v2
;
+build-project compile ;
+build-project run ;
+build-project compile_fail ;
Added: sandbox/SOC/2007/cgi/libs/cgi/test/compile/Jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/compile/Jamfile.v2 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
@@ -0,0 +1,19 @@
+# These tests should compile without error
+
+import testing ;
+
+test-suite compile_test_suite
+ :
+ [ compile stdio_connection.cpp ]
+ [ compile async_stdio_connection.cpp ]
+ [ compile tcp_connection.cpp ]
+ [ compile cgi_service.cpp ]
+# [ compile fcgi_service.cpp ]
+ [ compile is_async_test.cpp ]
+ [ compile cgi_request.cpp ]
+ [ compile acgi_request.cpp ]
+
+ [ compile response.cpp ]
+
+ [ compile cgi_header_check.cpp ]
+ ;
Modified: sandbox/SOC/2007/cgi/libs/cgi/test/compile/acgi_request.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/test/compile/acgi_request.cpp (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/compile/acgi_request.cpp 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
@@ -1,11 +1,11 @@
//#include "boost/cgi/io_service.hpp"
-#include "boost/cgi/cgi/cgi_service.hpp"
-#include "boost/cgi/cgi/acgi_request.hpp"
+#include <boost/cgi/acgi.hpp>
+//#include "boost/cgi/cgi/acgi_request.hpp"
int main()
{
- cgi::acgi_service service;
- cgi::acgi_request req(service);
+ cgi::acgi::service service;
+ cgi::acgi::request req(service);
return 0;
}
Modified: sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_request.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_request.cpp (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_request.cpp 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
@@ -2,7 +2,7 @@
int main()
{
- cgi::cgi_request req;
+ cgi::cgi::request req;
return 0;
}
Modified: sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_service.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_service.cpp (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/compile/cgi_service.cpp 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
@@ -1,8 +1,8 @@
-#include "boost/cgi/cgi/cgi_service.hpp"
+#include "boost/cgi/acgi/service.hpp"
int main()
{
- cgi::cgi_service s;
+ cgi::acgi_service s;
return 0;
}
Deleted: sandbox/SOC/2007/cgi/libs/cgi/test/compile/reply.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/test/compile/reply.cpp 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
+++ (empty file)
@@ -1,10 +0,0 @@
-#include "boost/cgi/reply.hpp"
-
-int main(int, char**)
-{
- cgi::reply rep;
-
- rep<< "blah";
-
- return 0;
-}
Added: sandbox/SOC/2007/cgi/libs/cgi/test/compile/response.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/compile/response.cpp 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
@@ -0,0 +1,10 @@
+#include <boost/cgi/response.hpp>
+
+int main(int, char**)
+{
+ cgi::response resp;
+
+ resp<< "blah";
+
+ return 0;
+}
Added: sandbox/SOC/2007/cgi/libs/cgi/test/run/Jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/run/Jamfile.v2 2007-08-24 12:02:37 EDT (Fri, 24 Aug 2007)
@@ -0,0 +1,9 @@
+# These tests should run without error
+# (currently not here)
+
+import testing ;
+
+test-suite run_test_suite
+ :
+ #[ run [ glob *.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