2
0
mirror of https://github.com/boostorg/redis.git synced 2026-01-19 04:42:09 +00:00

test jamfile

This commit is contained in:
Ruben Perez
2023-10-04 18:31:47 +02:00
parent 56f7d5af69
commit 1d329df81b
2 changed files with 54 additions and 2 deletions

54
test/Jamfile Normal file
View File

@@ -0,0 +1,54 @@
import ../config/checks/config : requires ;
import ac ;
using openssl ;
local requirements =
<define>BOOST_ALL_NO_LIB=1
<define>BOOST_ASIO_NO_DEPRECATED=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
<toolset>msvc:<cxxflags>"/bigobj"
<target-os>windows:<define>_WIN32_WINNT=0x0601
<include>../include
[ requires cxx17 ]
[ ac.check-library /openssl//ssl : <library>/openssl//ssl/<link>shared : <build>no ]
[ ac.check-library /openssl//crypto : <library>/openssl//crypto/<link>shared : <build>no ]
<library>/openssl//ssl/<link>shared
<library>/openssl//crypto/<link>shared
;
# Helper library
lib redis_test_common
:
boost_redis.cpp
common.cpp
: requirements $(requirements)
: usage-requirements $(requirements)
;
alias openssl_libs
:
: requirements
: usage-requirements
;
local tests =
test_low_level_sync_sans_io
test_low_level
test_request
test_run
;
for local test in $(tests)
{
run
$(test).cpp
redis_test_common/<link>static
: target-name $(test)
;
}

View File

@@ -21,13 +21,11 @@ using boost::redis::request;
using boost::redis::ignore;
using boost::redis::operation;
using boost::redis::generic_response;
using boost::redis::logger;
using boost::redis::consume_one;
using redis::config;
// TODO: Test cancel(health_check)
std::chrono::seconds const interval{1};
struct push_callback {
connection* conn1;