Skip to content

Commit b040182

Browse files
committed
Cleaning.
1 parent 8cb6c99 commit b040182

File tree

2 files changed

+0
-75
lines changed

2 files changed

+0
-75
lines changed

libs/network/test/http/CMakeLists.txt

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# http://www.boost.org/LICENSE_1_0.txt)
66

77
include_directories(${CPP-NETLIB_SOURCE_DIR})
8-
find_package( PythonInterp )
98

109
if (OPENSSL_FOUND)
1110
include_directories( ${OPENSSL_INCLUDE_DIR} )
@@ -60,54 +59,4 @@ if (Boost_FOUND)
6059
${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test})
6160
endforeach (test)
6261

63-
# if ( PYTHONINTERP_FOUND )
64-
# set ( SERVER_TESTS
65-
# server_hello_world
66-
# server_async
67-
# server_async_less_copy
68-
# )
69-
# set ( PORT 8000 )
70-
# foreach ( test ${SERVER_TESTS} )
71-
# if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
72-
# set_source_files_properties(${test}.cpp
73-
# PROPERTIES COMPILE_FLAGS "-Wall")
74-
# endif()
75-
# add_executable(cpp-netlib-http-${test} ${test}.cpp)
76-
# add_dependencies(cpp-netlib-http-${test} cppnetlib-server-parsers)
77-
# target_link_libraries(cpp-netlib-http-${test} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers)
78-
# set_target_properties(cpp-netlib-http-${test}
79-
# PROPERTIES RUNTIME_OUTPUT_DIRECTORY
80-
# ${CPP-NETLIB_BINARY_DIR}/tests)
81-
# add_test(cpp-netlib-${test}
82-
# ${PYTHON_EXECUTABLE}
83-
# ${CPP-NETLIB_SOURCE_DIR}/libs/network/test/httplib_acceptance.py
84-
# ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test}
85-
# ${PORT}
86-
# ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test}.passed)
87-
# math (EXPR PORT "${PORT} + 1")
88-
# endforeach (test)
89-
# #else()
90-
# # message(STATUS "Python not found, won't run server tests."
91-
# endif( PYTHONINTERP_FOUND )
92-
93-
#set ( INLINED_TESTS
94-
# client_include_inlined
95-
# server_include_inlined
96-
# )
97-
#foreach ( test ${INLINED_TESTS} )
98-
# if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
99-
# set_source_files_properties(${test}.cpp
100-
# PROPERTIES COMPILE_FLAGS "-Wall")
101-
# endif()
102-
# add_executable(cpp-netlib-http-inlined-${test} ${test}.cpp)
103-
# target_link_libraries(cpp-netlib-http-inlined-${test} ${BOOST_LIBS} ${CMAKE_THREAD_LIBS_INIT})
104-
# if (OPENSSL_FOUND)
105-
# target_link_libraries(cpp-netlib-http-inlined-${test} ${OPENSSL_LIBRARIES})
106-
# endif()
107-
# set_target_properties(cpp-netlib-http-inlined-${test}
108-
# PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests)
109-
# add_test(cpp-netlib-http-inlined-${test}
110-
# ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-inlined-${test})
111-
#endforeach (test)
112-
11362
endif()

libs/network/test/uri/url_test.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,6 @@
1616
using namespace boost::network;
1717

1818

19-
//BOOST_AUTO_TEST_CASE(basic_uri_range_test) {
20-
// uri::uri instance("http://www.example.com/");
21-
// BOOST_REQUIRE(uri::valid(instance));
22-
// BOOST_CHECK(boost::equal(instance.scheme_range(), boost::as_literal("http")));
23-
// BOOST_CHECK(boost::empty(instance.user_info_range()));
24-
// BOOST_CHECK(boost::equal(instance.host_range(), boost::as_literal("www.example.com")));
25-
// BOOST_CHECK(boost::empty(instance.port_range()));
26-
// BOOST_CHECK(boost::equal(instance.path_range(), boost::as_literal("/")));
27-
// BOOST_CHECK(boost::empty(instance.query_range()));
28-
// BOOST_CHECK(boost::empty(instance.fragment_range()));
29-
//}
30-
//
31-
//BOOST_AUTO_TEST_CASE(full_uri_range_test) {
32-
// uri::uri instance("http://user:password@www.example.com:80/path?query#fragment");
33-
// BOOST_REQUIRE(uri::valid(instance));
34-
// BOOST_CHECK(boost::equal(instance.scheme_range(), boost::as_literal("http")));
35-
// BOOST_CHECK(boost::equal(instance.user_info_range(), boost::as_literal("user:password")));
36-
// BOOST_CHECK(boost::equal(instance.host_range(), boost::as_literal("www.example.com")));
37-
// BOOST_CHECK(boost::equal(instance.port_range(), boost::as_literal("80")));
38-
// BOOST_CHECK(boost::equal(instance.path_range(), boost::as_literal("/path")));
39-
// BOOST_CHECK(boost::equal(instance.query_range(), boost::as_literal("query")));
40-
// BOOST_CHECK(boost::equal(instance.fragment_range(), boost::as_literal("fragment")));
41-
//}
42-
4319
BOOST_AUTO_TEST_CASE(basic_uri_test) {
4420
uri::uri instance("http://www.example.com/");
4521
BOOST_REQUIRE(uri::valid(instance));

0 commit comments

Comments
 (0)