mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Tidy up Jamfile and tests
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
Version 105:
|
||||
|
||||
* Fix compile error in websocket snippet
|
||||
* Tidy up Jamfile and tests
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
40
Jamfile
40
Jamfile
@ -13,8 +13,6 @@ import boost ;
|
||||
import modules ;
|
||||
import testing ;
|
||||
|
||||
import ../config/checks/config : requires ;
|
||||
|
||||
boost.use-project ;
|
||||
|
||||
if [ os.name ] = SOLARIS
|
||||
@ -51,57 +49,47 @@ else
|
||||
lib crypto ;
|
||||
}
|
||||
|
||||
variant coverage :
|
||||
debug
|
||||
:
|
||||
<cxxflags>"-msse4.2 --coverage"
|
||||
variant coverage
|
||||
: debug
|
||||
: <cxxflags>"-msse4.2 --coverage"
|
||||
<linkflags>"--coverage"
|
||||
;
|
||||
;
|
||||
|
||||
variant valgrind :
|
||||
release
|
||||
:
|
||||
<valgrind>on # Boost.Context uses this property
|
||||
;
|
||||
variant valgrind
|
||||
: release
|
||||
: <valgrind>on # Boost.Context uses this property
|
||||
;
|
||||
|
||||
variant ubasan
|
||||
:
|
||||
release
|
||||
:
|
||||
<cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
|
||||
: release
|
||||
: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
|
||||
<linkflags>"-fsanitize=address,undefined"
|
||||
<define>BOOST_USE_ASAN=1
|
||||
;
|
||||
|
||||
#cxx11_hdr_type_traits
|
||||
local REQ = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_hdr_tuple ] ;
|
||||
;
|
||||
|
||||
path-constant TEST_MAIN : test/extras/include/boost/beast/unit_test/main.cpp ;
|
||||
|
||||
project /boost/beast
|
||||
: requirements
|
||||
#$(REQ)
|
||||
<implicit-dependency>/boost//headers
|
||||
<include>.
|
||||
<include>./test/extras/include
|
||||
#<use>/boost//headers
|
||||
<library>/boost/system//boost_system
|
||||
<library>/boost/coroutine//boost_coroutine
|
||||
<library>/boost/filesystem//boost_filesystem
|
||||
<link>static
|
||||
<define>BOOST_ALL_NO_LIB=1
|
||||
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
|
||||
<threading>multi
|
||||
<runtime-link>shared
|
||||
<debug-symbols>on
|
||||
<define>BOOST_ALL_NO_LIB=1
|
||||
<define>BOOST_ASIO_DISABLE_BOOST_ARRAY=1
|
||||
<define>BOOST_ASIO_DISABLE_BOOST_BIND=1
|
||||
<define>BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1
|
||||
<define>BOOST_ASIO_DISABLE_BOOST_REGEX=1
|
||||
<define>BOOST_ASIO_NO_DEPRECATED=1
|
||||
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
|
||||
<toolset>msvc:<cxxflags>"/bigobj"
|
||||
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1
|
||||
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1
|
||||
<toolset>msvc:<cxxflags>"/bigobj"
|
||||
<toolset>msvc:<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
|
||||
<os>SOLARIS:<library>socket
|
||||
<os>SOLARIS:<library>nsl
|
||||
|
@ -65,11 +65,11 @@ public:
|
||||
void
|
||||
check_fwd(string_view match, Args&&... args)
|
||||
{
|
||||
T t{std::forward<Args>(args)...};
|
||||
T t(std::forward<Args>(args)...);
|
||||
BEAST_EXPECT(to_string(t) == match);
|
||||
T t2{t};
|
||||
T t2(t);
|
||||
BEAST_EXPECT(to_string(t2) == match);
|
||||
T t3{std::move(t2)};
|
||||
T t3(std::move(t2));
|
||||
BEAST_EXPECT(to_string(t3) == match);
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,10 @@
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#if BOOST_BEAST_USE_OPENSSL
|
||||
|
||||
// Test that header file is self-contained.
|
||||
#include "example/common/root_certificates.hpp"
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -7,6 +7,9 @@
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#if BOOST_BEAST_USE_OPENSSL
|
||||
|
||||
// Test that header file is self-contained.
|
||||
#include "example/common/server_certificate.hpp"
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user