Move bench/ to test/

This commit is contained in:
Vinnie Falco
2017-07-30 17:14:47 -07:00
parent e3c79edebd
commit df9ec6c7f3
28 changed files with 55 additions and 21 deletions

View File

@@ -1,3 +1,9 @@
Version 96:
* Move bench/ to test/
--------------------------------------------------------------------------------
Version 95:
* Tidy up Travis build scripts

View File

@@ -12,7 +12,6 @@ cmake_minimum_required (VERSION 3.5.2)
project (Beast VERSION 95)
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
option (Beast_BUILD_BENCH "Build bench" ON)
option (Beast_BUILD_EXAMPLES "Build examples" ON)
option (Beast_BUILD_TESTS "Build tests" ON)
@@ -192,10 +191,6 @@ file (GLOB_RECURSE EXTRAS_INCLUDES
set (TEST_MAIN ${PROJECT_SOURCE_DIR}/extras/boost/beast/unit_test/main.cpp)
if (Beast_BUILD_BENCH)
add_subdirectory (bench)
endif()
if (Beast_BUILD_EXAMPLES AND
(NOT "${VARIANT}" STREQUAL "coverage") AND
(NOT "${VARIANT}" STREQUAL "ubasan"))

View File

@@ -110,7 +110,6 @@ The files in the repository are laid out thusly:
```
./
bench/ Benchmarking programs
bin/ Create this to hold executables and project files
bin64/ Create this to hold 64-bit Windows executables and project files
doc/ Source code and scripts for the documentation

View File

@@ -1,8 +0,0 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Official repository: https://github.com/boostorg/beast
#

View File

@@ -109,7 +109,6 @@ function build_bjam ()
else
bjam \
libs/beast/test//fat-tests \
libs/beast/bench \
libs/beast/example \
toolset=$TOOLSET \
variant=$VARIANT \

View File

@@ -12,5 +12,6 @@ if (OPENSSL_FOUND)
endif()
add_subdirectory (beast)
add_subdirectory (bench)
add_subdirectory (doc)
add_subdirectory (example)

View File

@@ -9,6 +9,7 @@
alias run-tests :
beast//run-tests
bench//run-tests
doc//run-tests
example//run-tests
;

15
test/bench/Jamfile Normal file
View File

@@ -0,0 +1,15 @@
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Official repository: https://github.com/boostorg/beast
#
alias run-tests :
buffers//run-tests
parser//run-tests
wsload//run-tests
utf8_checker//run-tests
;

View File

@@ -9,7 +9,7 @@
GroupSources(extras/boost/beast extras)
GroupSources(include/boost/beast beast)
GroupSources(bench/buffers "/")
GroupSources(test/bench/buffers "/")
add_executable (bench-buffers
${BOOST_BEAST_INCLUDES}

View File

@@ -11,3 +11,9 @@ exe bench-buffers :
$(TEST_MAIN)
bench_buffers.cpp
;
explicit bench-buffers ;
alias run-tests :
[ compile bench_buffers.cpp ]
;

View File

@@ -10,7 +10,7 @@
GroupSources(extras/boost/beast extras)
GroupSources(include/boost/beast beast)
GroupSources(test/beast/http "/")
GroupSources(bench/parser "/")
GroupSources(test/bench/parser "/")
add_executable (bench-parser
${BOOST_BEAST_INCLUDES}

View File

@@ -12,3 +12,10 @@ exe bench-parser :
nodejs_parser.cpp
bench_parser.cpp
;
explicit bench-parser ;
alias run-tests :
[ compile nodejs_parser.cpp ]
[ compile bench_parser.cpp ]
;

View File

@@ -9,7 +9,7 @@
GroupSources(extras/boost/beast extras)
GroupSources(include/boost/beast beast)
GroupSources(bench/utf8_checker "/")
GroupSources(test/bench/utf8_checker "/")
add_executable (bench-utf8-checker
${BOOST_BEAST_INCLUDES}

View File

@@ -11,3 +11,9 @@ exe bench-utf8-checker :
$(TEST_MAIN)
bench_utf8_checker.cpp
;
explicit bench-utf8-checker ;
alias run-tests :
[ compile bench_utf8_checker.cpp ]
;

View File

@@ -10,12 +10,12 @@
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(extras/boost/beast extras)
GroupSources(bench/wsload "/")
GroupSources(test/bench/wsload "/")
add_executable (bench-wsload
${BOOST_BEAST_INCLUDES}
${COMMON_INCLUDES}
${EXTRAS_INCLUDES}
Jamfile
wsload.cpp
wsload_main.cpp
)

View File

@@ -8,5 +8,12 @@
#
exe wsload :
wsload.cpp
$(TEST_MAIN)
wsload_main.cpp
;
explicit wsload ;
alias run-tests :
[ compile wsload_main.cpp ]
;