Skip to content

Commit 1d329df

Browse files
committed
test jamfile
1 parent 56f7d5a commit 1d329df

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed

test/Jamfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
import ../config/checks/config : requires ;
3+
import ac ;
4+
5+
using openssl ;
6+
7+
local requirements =
8+
<define>BOOST_ALL_NO_LIB=1
9+
<define>BOOST_ASIO_NO_DEPRECATED=1
10+
<define>BOOST_ASIO_DISABLE_BOOST_ARRAY=1
11+
<define>BOOST_ASIO_DISABLE_BOOST_BIND=1
12+
<define>BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1
13+
<define>BOOST_ASIO_DISABLE_BOOST_REGEX=1
14+
<toolset>msvc:<cxxflags>"/bigobj"
15+
<target-os>windows:<define>_WIN32_WINNT=0x0601
16+
<include>../include
17+
[ requires cxx17 ]
18+
[ ac.check-library /openssl//ssl : <library>/openssl//ssl/<link>shared : <build>no ]
19+
[ ac.check-library /openssl//crypto : <library>/openssl//crypto/<link>shared : <build>no ]
20+
<library>/openssl//ssl/<link>shared
21+
<library>/openssl//crypto/<link>shared
22+
;
23+
24+
25+
# Helper library
26+
lib redis_test_common
27+
:
28+
boost_redis.cpp
29+
common.cpp
30+
: requirements $(requirements)
31+
: usage-requirements $(requirements)
32+
;
33+
34+
alias openssl_libs
35+
:
36+
: requirements
37+
: usage-requirements
38+
;
39+
40+
local tests =
41+
test_low_level_sync_sans_io
42+
test_low_level
43+
test_request
44+
test_run
45+
;
46+
47+
for local test in $(tests)
48+
{
49+
run
50+
$(test).cpp
51+
redis_test_common/<link>static
52+
: target-name $(test)
53+
;
54+
}

test/test_conn_check_health.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ using boost::redis::request;
2121
using boost::redis::ignore;
2222
using boost::redis::operation;
2323
using boost::redis::generic_response;
24-
using boost::redis::logger;
2524
using boost::redis::consume_one;
2625
using redis::config;
2726

2827
// TODO: Test cancel(health_check)
2928

30-
std::chrono::seconds const interval{1};
3129

3230
struct push_callback {
3331
connection* conn1;

0 commit comments

Comments
 (0)