diff --git a/test/Jamfile b/test/Jamfile new file mode 100644 index 00000000..51405ca0 --- /dev/null +++ b/test/Jamfile @@ -0,0 +1,54 @@ + +import ../config/checks/config : requires ; +import ac ; + +using openssl ; + +local requirements = + BOOST_ALL_NO_LIB=1 + BOOST_ASIO_NO_DEPRECATED=1 + BOOST_ASIO_DISABLE_BOOST_ARRAY=1 + BOOST_ASIO_DISABLE_BOOST_BIND=1 + BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1 + BOOST_ASIO_DISABLE_BOOST_REGEX=1 + msvc:"/bigobj" + windows:_WIN32_WINNT=0x0601 + ../include + [ requires cxx17 ] + [ ac.check-library /openssl//ssl : /openssl//ssl/shared : no ] + [ ac.check-library /openssl//crypto : /openssl//crypto/shared : no ] + /openssl//ssl/shared + /openssl//crypto/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/static + : target-name $(test) + ; +} diff --git a/test/test_conn_check_health.cpp b/test/test_conn_check_health.cpp index 3038ae0d..7fdc8353 100644 --- a/test/test_conn_check_health.cpp +++ b/test/test_conn_check_health.cpp @@ -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;