forked from boostorg/beast
Refactor test build scripts
This commit is contained in:
1 parent
61b2b63b57
commit
809e822789
400 files changed
+647
-204
No files matched your search
+8
-33
@@ -7,37 +7,12 @@
|
||||
# Official repository: https://github.com/boostorg/beast
|
||||
#
|
||||
|
||||
add_subdirectory (core)
|
||||
add_subdirectory (http)
|
||||
add_subdirectory (websocket)
|
||||
add_subdirectory (zlib)
|
||||
|
||||
if ((NOT "${VARIANT}" STREQUAL "coverage") AND
|
||||
(NOT "${VARIANT}" STREQUAL "ubasan"))
|
||||
|
||||
add_subdirectory (common)
|
||||
add_subdirectory (server)
|
||||
|
||||
GroupSources(extras/boost/beast extras)
|
||||
GroupSources(include/boost/beast beast)
|
||||
|
||||
GroupSources(test "/")
|
||||
|
||||
add_executable (lib-tests
|
||||
${BOOST_BEAST_INCLUDES}
|
||||
${EXTRAS_INCLUDES}
|
||||
Jamfile
|
||||
../extras/boost/beast/unit_test/main.cpp
|
||||
config.cpp
|
||||
core.cpp
|
||||
exemplars.cpp
|
||||
http.cpp
|
||||
version.cpp
|
||||
websocket.cpp
|
||||
zlib.cpp
|
||||
)
|
||||
|
||||
if (MINGW)
|
||||
set_target_properties(lib-tests PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
|
||||
endif()
|
||||
if (OPENSSL_FOUND)
|
||||
link_libraries (${OPENSSL_LIBRARIES})
|
||||
endif()
|
||||
|
||||
add_subdirectory (beast)
|
||||
add_subdirectory (doc)
|
||||
add_subdirectory (example)
|
||||
|
||||
alias fat-tests : ;
|
||||
+8
-33
@@ -7,41 +7,16 @@
|
||||
# Official repository: https://github.com/boostorg/beast
|
||||
#
|
||||
|
||||
import os ;
|
||||
|
||||
compile config.cpp : <variant>coverage:<build>no <variant>ubasan:<build>no ;
|
||||
compile core.cpp : <variant>coverage:<build>no <variant>ubasan:<build>no ;
|
||||
compile exemplars.cpp : <variant>coverage:<build>no <variant>ubasan:<build>no ;
|
||||
compile http.cpp : <variant>coverage:<build>no <variant>ubasan:<build>no ;
|
||||
compile version.cpp : <variant>coverage:<build>no <variant>ubasan:<build>no ;
|
||||
compile websocket.cpp : <variant>coverage:<build>no <variant>ubasan:<build>no ;
|
||||
compile zlib.cpp : <variant>coverage:<build>no <variant>ubasan:<build>no ;
|
||||
|
||||
alias run-tests :
|
||||
common//run-tests
|
||||
core//run-tests
|
||||
http//run-tests
|
||||
server//run-tests
|
||||
websocket//run-tests
|
||||
zlib//run-tests
|
||||
beast//run-tests
|
||||
doc//run-tests
|
||||
example//run-tests
|
||||
;
|
||||
|
||||
alias run-fat :
|
||||
common//run-fat
|
||||
core//run-fat
|
||||
http//run-fat
|
||||
server//run-fat
|
||||
websocket//run-fat
|
||||
zlib//run-fat
|
||||
alias fat-tests :
|
||||
beast//fat-tests
|
||||
doc//fat-tests
|
||||
example//fat-tests
|
||||
;
|
||||
explicit run-fat ;
|
||||
|
||||
alias build-fat :
|
||||
common//build-fat
|
||||
core//build-fat
|
||||
http//build-fat
|
||||
server//build-fat
|
||||
websocket//build-fat
|
||||
zlib//build-fat
|
||||
;
|
||||
explicit build-fat ;
|
||||
explicit fat-tests ;
|
||||
@@ -0,0 +1,30 @@
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
||||
GroupSources(include/boost/beast beast)
|
||||
GroupSources(extras/boost/beast extras)
|
||||
GroupSources(test/beast "/")
|
||||
|
||||
add_executable (tests-beast
|
||||
${BOOST_BEAST_INCLUDES}
|
||||
${EXTRAS_INCLUDES}
|
||||
${TEST_MAIN}
|
||||
Jamfile
|
||||
config.cpp
|
||||
core.cpp
|
||||
http.cpp
|
||||
version.cpp
|
||||
websocket.cpp
|
||||
zlib.cpp
|
||||
)
|
||||
|
||||
add_subdirectory (core)
|
||||
add_subdirectory (http)
|
||||
add_subdirectory (websocket)
|
||||
add_subdirectory (zlib)
|
||||
@@ -0,0 +1,30 @@
|
||||
#
|
||||
# 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 :
|
||||
[ compile config.cpp ]
|
||||
[ compile core.cpp ]
|
||||
[ compile http.cpp ]
|
||||
[ compile version.cpp ]
|
||||
[ compile websocket.cpp ]
|
||||
[ compile zlib.cpp ]
|
||||
core//run-tests
|
||||
http//run-tests
|
||||
websocket//run-tests
|
||||
zlib//run-tests
|
||||
;
|
||||
|
||||
alias fat-tests :
|
||||
core//fat-tests
|
||||
http//fat-tests
|
||||
websocket//fat-tests
|
||||
zlib//fat-tests
|
||||
;
|
||||
|
||||
explicit fat-tests ;
|
||||
File renamed without changes.
File renamed without changes.
@@ -7,17 +7,15 @@
|
||||
# Official repository: https://github.com/boostorg/beast
|
||||
#
|
||||
|
||||
GroupSources(example example)
|
||||
GroupSources(extras/boost/beast extras)
|
||||
GroupSources(include/boost/beast beast)
|
||||
GroupSources(test/core "/")
|
||||
GroupSources(test/beast/core "/")
|
||||
|
||||
add_executable (core-tests
|
||||
add_executable (tests-beast-core
|
||||
${BOOST_BEAST_INCLUDES}
|
||||
${EXAMPLE_INCLUDES}
|
||||
${EXTRAS_INCLUDES}
|
||||
${TEST_MAIN}
|
||||
Jamfile
|
||||
../../extras/boost/beast/unit_test/main.cpp
|
||||
buffer_test.hpp
|
||||
file_test.hpp
|
||||
async_result.cpp
|
||||
@@ -28,8 +26,6 @@ add_executable (core-tests
|
||||
buffers_adapter.cpp
|
||||
clamp.cpp
|
||||
consuming_buffers.cpp
|
||||
doc_examples.cpp
|
||||
doc_snippets.cpp
|
||||
drain_buffer.cpp
|
||||
error.cpp
|
||||
file.cpp
|
||||
@@ -16,8 +16,6 @@ local SOURCES =
|
||||
buffers_adapter.cpp
|
||||
clamp.cpp
|
||||
consuming_buffers.cpp
|
||||
doc_examples.cpp
|
||||
doc_snippets.cpp
|
||||
drain_buffer.cpp
|
||||
error.cpp
|
||||
file.cpp
|
||||
@@ -44,11 +42,15 @@ local SOURCES =
|
||||
detail/varint.cpp
|
||||
;
|
||||
|
||||
local RUN_TESTS ; for local f in $(SOURCES) { RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; }
|
||||
local RUN_TESTS ;
|
||||
|
||||
for local f in $(SOURCES)
|
||||
{
|
||||
RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ;
|
||||
}
|
||||
|
||||
alias run-tests : $(RUN_TESTS) ;
|
||||
|
||||
unit-test run-fat : $(TEST_MAIN) $(SOURCES) ;
|
||||
explicit run-fat ;
|
||||
exe fat-tests : $(TEST_MAIN) $(SOURCES) ;
|
||||
|
||||
exe build-fat : $(TEST_MAIN) $(SOURCES) ;
|
||||
explicit build-fat ;
|
||||
explicit fat-tests ;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -7,26 +7,22 @@
|
||||
# Official repository: https://github.com/boostorg/beast
|
||||
#
|
||||
|
||||
GroupSources(example example)
|
||||
GroupSources(extras/boost/beast extras)
|
||||
GroupSources(include/boost/beast beast)
|
||||
GroupSources(test/http "/")
|
||||
GroupSources(test/beast/http "/")
|
||||
|
||||
add_executable (http-tests
|
||||
add_executable (tests-beast-http
|
||||
${BOOST_BEAST_INCLUDES}
|
||||
${EXAMPLE_INCLUDES}
|
||||
${EXTRAS_INCLUDES}
|
||||
${TEST_MAIN}
|
||||
Jamfile
|
||||
message_fuzz.hpp
|
||||
test_parser.hpp
|
||||
../../extras/boost/beast/unit_test/main.cpp
|
||||
basic_dynamic_body.cpp
|
||||
basic_file_body.cpp
|
||||
basic_parser.cpp
|
||||
buffer_body.cpp
|
||||
chunk_encode.cpp
|
||||
doc_examples.cpp
|
||||
doc_snippets.cpp
|
||||
dynamic_body.cpp
|
||||
empty_body.cpp
|
||||
error.cpp
|
||||
@@ -13,8 +13,6 @@ local SOURCES =
|
||||
basic_parser.cpp
|
||||
buffer_body.cpp
|
||||
chunk_encode.cpp
|
||||
doc_examples.cpp
|
||||
doc_snippets.cpp
|
||||
dynamic_body.cpp
|
||||
error.cpp
|
||||
field.cpp
|
||||
@@ -34,11 +32,15 @@ local SOURCES =
|
||||
write.cpp
|
||||
;
|
||||
|
||||
local RUN_TESTS ; for local f in $(SOURCES) { RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; }
|
||||
local RUN_TESTS ;
|
||||
|
||||
for local f in $(SOURCES)
|
||||
{
|
||||
RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ;
|
||||
}
|
||||
|
||||
alias run-tests : $(RUN_TESTS) ;
|
||||
|
||||
unit-test run-fat : $(TEST_MAIN) $(SOURCES) ;
|
||||
explicit run-fat ;
|
||||
exe fat-tests : $(TEST_MAIN) $(SOURCES) ;
|
||||
|
||||
exe build-fat : $(TEST_MAIN) $(SOURCES) ;
|
||||
explicit build-fat ;
|
||||
explicit fat-tests ;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -9,17 +9,15 @@
|
||||
|
||||
GroupSources(extras/boost/beast extras)
|
||||
GroupSources(include/boost/beast beast)
|
||||
GroupSources(test/beast/websocket "/")
|
||||
|
||||
GroupSources(test/websocket "/")
|
||||
|
||||
add_executable (websocket-tests
|
||||
add_executable (tests-beast-websocket
|
||||
${BOOST_BEAST_INCLUDES}
|
||||
${EXTRAS_INCLUDES}
|
||||
${TEST_MAIN}
|
||||
Jamfile
|
||||
../../extras/boost/beast/unit_test/main.cpp
|
||||
websocket_async_echo_server.hpp
|
||||
websocket_sync_echo_server.hpp
|
||||
doc_snippets.cpp
|
||||
error.cpp
|
||||
option.cpp
|
||||
rfc6455.cpp
|
||||
@@ -29,9 +27,3 @@ add_executable (websocket-tests
|
||||
mask.cpp
|
||||
utf8_checker.cpp
|
||||
)
|
||||
|
||||
if (OPENSSL_FOUND)
|
||||
target_link_libraries(websocket-tests
|
||||
${OPENSSL_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
@@ -8,7 +8,6 @@
|
||||
#
|
||||
|
||||
local SOURCES =
|
||||
doc_snippets.cpp
|
||||
error.cpp
|
||||
option.cpp
|
||||
rfc6455.cpp
|
||||
@@ -19,11 +18,15 @@ local SOURCES =
|
||||
utf8_checker.cpp
|
||||
;
|
||||
|
||||
local RUN_TESTS ; for local f in $(SOURCES) { RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; }
|
||||
local RUN_TESTS ;
|
||||
|
||||
for local f in $(SOURCES)
|
||||
{
|
||||
RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ;
|
||||
}
|
||||
|
||||
alias run-tests : $(RUN_TESTS) ;
|
||||
|
||||
unit-test run-fat : $(TEST_MAIN) $(SOURCES) ;
|
||||
explicit run-fat ;
|
||||
exe fat-tests : $(TEST_MAIN) $(SOURCES) ;
|
||||
|
||||
exe build-fat : $(TEST_MAIN) $(SOURCES) ;
|
||||
explicit build-fat ;
|
||||
explicit fat-tests ;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -9,8 +9,7 @@
|
||||
|
||||
GroupSources(extras/boost/beast extras)
|
||||
GroupSources(include/boost/beast beast)
|
||||
|
||||
GroupSources(test/zlib "/")
|
||||
GroupSources(test/beast/zlib "/")
|
||||
|
||||
set(ZLIB_SOURCES
|
||||
${CMAKE_CURRENT_LIST_DIR}/zlib-1.2.11/crc32.h
|
||||
@@ -39,14 +38,14 @@ if (MSVC)
|
||||
set_source_files_properties (${ZLIB_SOURCES} PROPERTIES COMPILE_FLAGS "/wd4127 /wd4131 /wd4244")
|
||||
endif()
|
||||
|
||||
add_executable (zlib-tests
|
||||
add_executable (tests-beast-zlib
|
||||
${BOOST_BEAST_INCLUDES}
|
||||
${EXTRAS_INCLUDES}
|
||||
${ZLIB_SOURCES}
|
||||
${TEST_MAIN}
|
||||
Jamfile
|
||||
../../extras/boost/beast/unit_test/main.cpp
|
||||
ztest.hpp
|
||||
deflate_stream.cpp
|
||||
error.cpp
|
||||
deflate_stream.cpp
|
||||
inflate_stream.cpp
|
||||
)
|
||||
@@ -22,16 +22,20 @@ local ZLIB_SOURCES =
|
||||
;
|
||||
|
||||
local SOURCES =
|
||||
deflate_stream.cpp
|
||||
error.cpp
|
||||
deflate_stream.cpp
|
||||
inflate_stream.cpp
|
||||
;
|
||||
|
||||
local RUN_TESTS ; for local f in $(SOURCES) { RUN_TESTS += [ run $(f) $(TEST_MAIN) $(ZLIB_SOURCES) ] ; }
|
||||
local RUN_TESTS ;
|
||||
|
||||
for local f in $(SOURCES)
|
||||
{
|
||||
RUN_TESTS += [ run $(f) $(TEST_MAIN) $(ZLIB_SOURCES) ] ;
|
||||
}
|
||||
|
||||
alias run-tests : $(RUN_TESTS) ;
|
||||
|
||||
unit-test run-fat : $(TEST_MAIN) $(ZLIB_SOURCES) $(SOURCES) ;
|
||||
explicit run-fat ;
|
||||
exe fat-tests : $(TEST_MAIN) $(ZLIB_SOURCES) $(SOURCES) ;
|
||||
|
||||
exe build-fat : $(TEST_MAIN) $(ZLIB_SOURCES) $(SOURCES) ;
|
||||
explicit build-fat ;
|
||||
explicit fat-tests ;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 400 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user