Move extras/ to test/

This commit is contained in:
Vinnie Falco
2017-07-30 17:41:17 -07:00
parent df9ec6c7f3
commit 030f5eef87
44 changed files with 25 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
Version 96: Version 96:
* Move bench/ to test/ * Move bench/ to test/
* Move extras/ to test/
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@@ -163,9 +163,8 @@ endif()
# Tests and examples # Tests and examples
# #
include_directories (.)
include_directories (extras)
include_directories (include) include_directories (include)
include_directories (.)
if (OPENSSL_FOUND) if (OPENSSL_FOUND)
include_directories (${OPENSSL_INCLUDE_DIR}) include_directories (${OPENSSL_INCLUDE_DIR})
@@ -184,13 +183,6 @@ file (GLOB_RECURSE EXAMPLE_INCLUDES
${PROJECT_SOURCE_DIR}/example/*.hpp ${PROJECT_SOURCE_DIR}/example/*.hpp
) )
file (GLOB_RECURSE EXTRAS_INCLUDES
${PROJECT_SOURCE_DIR}/extras/boost/beast/*.hpp
${PROJECT_SOURCE_DIR}/extras/boost/beast/*.ipp
)
set (TEST_MAIN ${PROJECT_SOURCE_DIR}/extras/boost/beast/unit_test/main.cpp)
if (Beast_BUILD_EXAMPLES AND if (Beast_BUILD_EXAMPLES AND
(NOT "${VARIANT}" STREQUAL "coverage") AND (NOT "${VARIANT}" STREQUAL "coverage") AND
(NOT "${VARIANT}" STREQUAL "ubasan")) (NOT "${VARIANT}" STREQUAL "ubasan"))

View File

@@ -75,14 +75,14 @@ variant ubasan
#cxx11_hdr_type_traits #cxx11_hdr_type_traits
local REQ = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_hdr_tuple ] ; local REQ = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_hdr_tuple ] ;
path-constant TEST_MAIN : extras/boost/beast/unit_test/main.cpp ; path-constant TEST_MAIN : test/extras/include/boost/beast/unit_test/main.cpp ;
project beast project beast
: requirements : requirements
#$(REQ) #$(REQ)
<implicit-dependency>/boost//headers <implicit-dependency>/boost//headers
<include>. <include>.
<include>./extras <include>./test/extras/include
#<use>/boost//headers #<use>/boost//headers
<library>/boost/system//boost_system <library>/boost/system//boost_system
<library>/boost/coroutine//boost_coroutine <library>/boost/coroutine//boost_coroutine

View File

@@ -19,10 +19,6 @@
#include <cstddef> #include <cstddef>
#include <utility> #include <utility>
#if 1
#include "extras/boost/beast/unit_test/dstream.hpp"
#endif
template<class Context> template<class Context>
class session_alloc_base class session_alloc_base
{ {
@@ -396,16 +392,6 @@ session_alloc_base<Context>::
pool_t:: pool_t::
alloc(std::size_t n) alloc(std::size_t n)
{ {
#if 0
beast::unit_test::dstream dout{std::cout};
dout <<
"n=" << n << ", "
"list_.size()=" << list_.size() << ", "
"used=" << (list_.empty() ? 0 : list_.back().used()) << ", "
"size_=" << size_ << ", "
"high_=" << high_ <<
std::endl;
#endif
if(list_.empty() && size_ < high_) if(list_.empty() && size_ < high_)
{ {
if(buf_) if(buf_)

View File

@@ -7,6 +7,15 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
include_directories (extras/include)
file (GLOB_RECURSE EXTRAS_INCLUDES
${PROJECT_SOURCE_DIR}/test/extras/include/boost/beast/*.hpp
${PROJECT_SOURCE_DIR}/test/extras/include/boost/beast/*.ipp
)
set (TEST_MAIN ${PROJECT_SOURCE_DIR}/test/extras/include/boost/beast/unit_test/main.cpp)
if (OPENSSL_FOUND) if (OPENSSL_FOUND)
link_libraries (${OPENSSL_LIBRARIES}) link_libraries (${OPENSSL_LIBRARIES})
endif() endif()

View File

@@ -8,7 +8,7 @@
# #
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(test/beast "/") GroupSources(test/beast "/")
add_executable (tests-beast add_executable (tests-beast

View File

@@ -7,7 +7,7 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/beast/core "/") GroupSources(test/beast/core "/")

View File

@@ -7,7 +7,7 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/beast/http "/") GroupSources(test/beast/http "/")

View File

@@ -7,7 +7,7 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/beast/websocket "/") GroupSources(test/beast/websocket "/")

View File

@@ -7,7 +7,7 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/beast/zlib "/") GroupSources(test/beast/zlib "/")

View File

@@ -7,7 +7,7 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/bench/buffers "/") GroupSources(test/bench/buffers "/")

View File

@@ -7,7 +7,7 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/beast/http "/") GroupSources(test/beast/http "/")
GroupSources(test/bench/parser "/") GroupSources(test/bench/parser "/")

View File

@@ -7,7 +7,7 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/bench/utf8_checker "/") GroupSources(test/bench/utf8_checker "/")

View File

@@ -9,7 +9,7 @@
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(example/common common) GroupSources(example/common common)
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(test/bench/wsload "/") GroupSources(test/bench/wsload "/")
add_executable (bench-wsload add_executable (bench-wsload

View File

@@ -8,7 +8,7 @@
# #
GroupSources(example example) GroupSources(example example)
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/doc "/") GroupSources(test/doc "/")

View File

@@ -8,7 +8,7 @@
# #
GroupSources(example/common common) GroupSources(example/common common)
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/example/common "/") GroupSources(test/example/common "/")

View File

@@ -9,7 +9,7 @@
GroupSources(example/server-framework framework) GroupSources(example/server-framework framework)
GroupSources(example/common common) GroupSources(example/common common)
GroupSources(extras/boost/beast extras) GroupSources(test/extras/include/boost/beast extras)
GroupSources(include/boost/beast beast) GroupSources(include/boost/beast beast)
GroupSources(test/example/server "/") GroupSources(test/example/server "/")