Only run the tests under ubasan

This commit is contained in:
Vinnie Falco
2017-06-20 16:56:28 -07:00
parent 7b8149cfd4
commit 3ff585d36e
4 changed files with 64 additions and 69 deletions

View File

@@ -191,8 +191,8 @@ file(GLOB_RECURSE SERVER_INCLUDES
) )
add_subdirectory (test) add_subdirectory (test)
if (NOT "${VARIANT}" STREQUAL "coverage")
if ((NOT "${VARIANT}" STREQUAL "coverage") AND
(NOT "${VARIANT}" STREQUAL "ubasan"))
add_subdirectory (example) add_subdirectory (example)
endif() endif()

View File

@@ -1,13 +1,16 @@
# Part of Beast # Part of Beast
add_subdirectory (benchmarks)
add_subdirectory (core) add_subdirectory (core)
add_subdirectory (http) add_subdirectory (http)
add_subdirectory (server)
add_subdirectory (websocket) add_subdirectory (websocket)
add_subdirectory (zlib) add_subdirectory (zlib)
if (NOT "${VARIANT}" STREQUAL "coverage") if ((NOT "${VARIANT}" STREQUAL "coverage") AND
(NOT "${VARIANT}" STREQUAL "ubasan"))
add_subdirectory (benchmarks)
add_subdirectory (server)
GroupSources(extras/beast extras) GroupSources(extras/beast extras)
GroupSources(include/beast beast) GroupSources(include/beast beast)
GroupSources(test "/") GroupSources(test "/")

View File

@@ -1,27 +1,23 @@
# Part of Beast # Part of Beast
if (NOT "${VARIANT}" STREQUAL "coverage") GroupSources(extras/beast extras)
GroupSources(include/beast beast)
GroupSources(test/benchmarks "/")
GroupSources(test/http "/")
GroupSources(extras/beast extras) add_executable (benchmarks
GroupSources(include/beast beast) ${BEAST_INCLUDES}
GroupSources(test/benchmarks "/") ${EXTRAS_INCLUDES}
GroupSources(test/http "/") ../../extras/beast/unit_test/main.cpp
../http/message_fuzz.hpp
nodejs_parser.hpp
buffers.cpp
nodejs_parser.cpp
parser.cpp
)
add_executable (benchmarks target_link_libraries(benchmarks
${BEAST_INCLUDES} Beast
${EXTRAS_INCLUDES} ${Boost_PROGRAM_OPTIONS_LIBRARY}
../../extras/beast/unit_test/main.cpp ${Boost_FILESYSTEM_LIBRARY}
../http/message_fuzz.hpp
nodejs_parser.hpp
buffers.cpp
nodejs_parser.cpp
parser.cpp
) )
target_link_libraries(benchmarks
Beast
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
)
endif()

View File

@@ -1,50 +1,46 @@
# Part of Beast # Part of Beast
if (NOT "${VARIANT}" STREQUAL "coverage") GroupSources(example/server-framework framework)
GroupSources(extras/beast extras)
GroupSources(include/beast beast)
GroupSources(example/server-framework framework) GroupSources(test/server "/")
GroupSources(extras/beast extras)
GroupSources(include/beast beast)
GroupSources(test/server "/") if (OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
endif()
if (OPENSSL_FOUND) add_executable (server-test
include_directories(${OPENSSL_INCLUDE_DIR}) ${BEAST_INCLUDES}
endif() ${SERVER_INCLUDES}
../../extras/beast/unit_test/main.cpp
file_body.cpp
file_service.cpp
framework.cpp
http_async_port.cpp
http_base.cpp
http_sync_port.cpp
https_ports.cpp
multi_port.cpp
rfc7231.cpp
server.cpp
service_list.cpp
ssl_certificate
ssl_stream.cpp
tests.cpp
write_msg.cpp
ws_async_port.cpp
ws_sync_port.cpp
ws_upgrade_service.cpp
wss_ports.cpp
)
add_executable (server-test target_link_libraries(server-test
${BEAST_INCLUDES} Beast
${SERVER_INCLUDES} ${Boost_PROGRAM_OPTIONS_LIBRARY}
../../extras/beast/unit_test/main.cpp ${Boost_FILESYSTEM_LIBRARY}
file_body.cpp
file_service.cpp
framework.cpp
http_async_port.cpp
http_base.cpp
http_sync_port.cpp
https_ports.cpp
multi_port.cpp
rfc7231.cpp
server.cpp
service_list.cpp
ssl_certificate
ssl_stream.cpp
tests.cpp
write_msg.cpp
ws_async_port.cpp
ws_sync_port.cpp
ws_upgrade_service.cpp
wss_ports.cpp
) )
target_link_libraries(server-test if (OPENSSL_FOUND)
Beast target_link_libraries(server-test ${OPENSSL_LIBRARIES})
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
)
if (OPENSSL_FOUND)
target_link_libraries(server-test ${OPENSSL_LIBRARIES})
endif()
endif() endif()