diff --git a/Jamfile b/Jamfile index 8473f44f..1ca2bef5 100644 --- a/Jamfile +++ b/Jamfile @@ -51,67 +51,18 @@ variant beast_ubasan path-constant TEST_MAIN : include/boost/beast/_experimental/unit_test/main.cpp ; -lib static_beast - : test/lib_beast.cpp - : requirements - [ requires - cxx11_constexpr - cxx11_decltype - cxx11_hdr_tuple - cxx11_template_aliases - cxx11_variadic_templates - ] - BOOST_BEAST_SPLIT_COMPILATION - BOOST_ASIO_SEPARATE_COMPILATION - 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 - BOOST_COROUTINES_NO_DEPRECATION_WARNING=1 - msvc-14.1:"/permissive-" - msvc:_SCL_SECURE_NO_WARNINGS=1 - msvc:_CRT_SECURE_NO_WARNINGS=1 - msvc:_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING - msvc:_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING - windows:_WIN32_WINNT=0x0601 - static - : usage-requirements - BOOST_BEAST_SPLIT_COMPILATION - BOOST_ASIO_SEPARATE_COMPILATION - 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 - BOOST_COROUTINES_NO_DEPRECATION_WARNING=1 - msvc-14.1:"/permissive-" - msvc:_SCL_SECURE_NO_WARNINGS=1 - msvc:_CRT_SECURE_NO_WARNINGS=1 - msvc:_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING - msvc:_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING - windows:_WIN32_WINNT=0x0601 - ; -lib static_ssl_asio - : test/lib_ssl.cpp - : requirements - static - static_beast - [ ac.check-library /boost/beast//ssl : /boost/beast//ssl/shared : no ] - [ ac.check-library /boost/beast//crypto : /boost/beast//crypto/shared : no ] - ; - project /boost/beast : requirements + [ requires + cxx11_constexpr + cxx11_decltype + cxx11_hdr_tuple + cxx11_template_aliases + cxx11_variadic_templates + ] . ./test/extras/include - /boost/coroutine//boost_coroutine - /boost/filesystem//boost_filesystem - static_beast /boost//headers - multi - on - shared BOOST_ALL_NO_LIB=1 BOOST_BEAST_SPLIT_COMPILATION BOOST_ASIO_SEPARATE_COMPILATION @@ -145,7 +96,17 @@ project /boost/beast hpux:ipv6 qnxnto:socket haiku:network - : usage-requirements ; +lib static_beast + : test/lib_beast.cpp + ; + +lib static_ssl_asio + : test/lib_ssl.cpp + : requirements + /boost/beast//static_beast/static + [ ac.check-library /boost/beast//ssl : /boost/beast//ssl/shared : no ] + [ ac.check-library /boost/beast//crypto : /boost/beast//crypto/shared : no ] + ; diff --git a/example/advanced/server-flex/Jamfile b/example/advanced/server-flex/Jamfile index 06f6d5fe..4be00904 100644 --- a/example/advanced/server-flex/Jamfile +++ b/example/advanced/server-flex/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe advanced-server-flex : diff --git a/example/advanced/server/Jamfile b/example/advanced/server/Jamfile index 5f9ceecd..f99c06e1 100644 --- a/example/advanced/server/Jamfile +++ b/example/advanced/server/Jamfile @@ -12,4 +12,5 @@ exe advanced-server : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/echo-op/Jamfile b/example/echo-op/Jamfile index caeb767e..a710a542 100644 --- a/example/echo-op/Jamfile +++ b/example/echo-op/Jamfile @@ -12,4 +12,5 @@ exe echo-op : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/http/client/async-ssl/Jamfile b/example/http/client/async-ssl/Jamfile index e7519e1a..30afc8a8 100644 --- a/example/http/client/async-ssl/Jamfile +++ b/example/http/client/async-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-client-async-ssl : diff --git a/example/http/client/async/Jamfile b/example/http/client/async/Jamfile index abc9d4d6..afd2ab39 100644 --- a/example/http/client/async/Jamfile +++ b/example/http/client/async/Jamfile @@ -12,4 +12,5 @@ exe http-client-async : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/http/client/coro-ssl/Jamfile b/example/http/client/coro-ssl/Jamfile index ec9bbfc4..ea3fbc28 100644 --- a/example/http/client/coro-ssl/Jamfile +++ b/example/http/client/coro-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-client-coro-ssl : @@ -19,4 +19,5 @@ exe http-client-coro-ssl : : coverage:no ubasan:no + /boost/coroutine//boost_coroutine ; diff --git a/example/http/client/coro/Jamfile b/example/http/client/coro/Jamfile index 2cb6b00b..dc4661f0 100644 --- a/example/http/client/coro/Jamfile +++ b/example/http/client/coro/Jamfile @@ -12,4 +12,6 @@ exe http-client-coro : : coverage:no ubasan:no + /boost/beast//static_beast/static + /boost/coroutine//boost_coroutine ; diff --git a/example/http/client/crawl/Jamfile b/example/http/client/crawl/Jamfile index 8f94c967..4be2f6eb 100644 --- a/example/http/client/crawl/Jamfile +++ b/example/http/client/crawl/Jamfile @@ -13,4 +13,5 @@ exe http-crawl : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/http/client/sync-ssl/Jamfile b/example/http/client/sync-ssl/Jamfile index c32f9ee2..6de4e1fc 100644 --- a/example/http/client/sync-ssl/Jamfile +++ b/example/http/client/sync-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-client-sync-ssl : diff --git a/example/http/client/sync/Jamfile b/example/http/client/sync/Jamfile index 969246f6..64ec8fb9 100644 --- a/example/http/client/sync/Jamfile +++ b/example/http/client/sync/Jamfile @@ -12,4 +12,5 @@ exe http-client-sync : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/http/server/async-ssl/Jamfile b/example/http/server/async-ssl/Jamfile index 9eb0693f..1a3a0fc4 100644 --- a/example/http/server/async-ssl/Jamfile +++ b/example/http/server/async-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-server-async-ssl : diff --git a/example/http/server/async/Jamfile b/example/http/server/async/Jamfile index f36d1ad4..187a9a45 100644 --- a/example/http/server/async/Jamfile +++ b/example/http/server/async/Jamfile @@ -12,4 +12,5 @@ exe http-server-async : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/http/server/coro-ssl/Jamfile b/example/http/server/coro-ssl/Jamfile index 6cd1e3da..36065a02 100644 --- a/example/http/server/coro-ssl/Jamfile +++ b/example/http/server/coro-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-server-coro-ssl : @@ -19,4 +19,5 @@ exe http-server-coro-ssl : : coverage:no ubasan:no + /boost/coroutine//boost_coroutine ; diff --git a/example/http/server/coro/Jamfile b/example/http/server/coro/Jamfile index 013c2a9f..52e9eb61 100644 --- a/example/http/server/coro/Jamfile +++ b/example/http/server/coro/Jamfile @@ -12,4 +12,6 @@ exe http-server-coro : : coverage:no ubasan:no + /boost/beast//static_beast/static + /boost/coroutine//boost_coroutine ; diff --git a/example/http/server/fast/Jamfile b/example/http/server/fast/Jamfile index 37d71b65..c1865e10 100644 --- a/example/http/server/fast/Jamfile +++ b/example/http/server/fast/Jamfile @@ -16,4 +16,6 @@ exe http-server-fast : : coverage:no ubasan:no + /boost/beast//static_beast/static + /boost/coroutine//boost_coroutine ; diff --git a/example/http/server/flex/Jamfile b/example/http/server/flex/Jamfile index 49a92999..922df82d 100644 --- a/example/http/server/flex/Jamfile +++ b/example/http/server/flex/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-server-flex : diff --git a/example/http/server/small/Jamfile b/example/http/server/small/Jamfile index 48e9fd13..4de891a7 100644 --- a/example/http/server/small/Jamfile +++ b/example/http/server/small/Jamfile @@ -12,4 +12,5 @@ exe http-server-small : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/http/server/stackless-ssl/Jamfile b/example/http/server/stackless-ssl/Jamfile index 1c5e5258..d345d05d 100644 --- a/example/http/server/stackless-ssl/Jamfile +++ b/example/http/server/stackless-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-server-stackless-ssl : diff --git a/example/http/server/stackless/Jamfile b/example/http/server/stackless/Jamfile index f82934ff..3498f5f6 100644 --- a/example/http/server/stackless/Jamfile +++ b/example/http/server/stackless/Jamfile @@ -12,4 +12,5 @@ exe http-server-stackless : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/http/server/sync-ssl/Jamfile b/example/http/server/sync-ssl/Jamfile index c7afe3b3..e0575b6d 100644 --- a/example/http/server/sync-ssl/Jamfile +++ b/example/http/server/sync-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe http-server-sync-ssl : diff --git a/example/http/server/sync/Jamfile b/example/http/server/sync/Jamfile index 30e4f026..3c9ecd10 100644 --- a/example/http/server/sync/Jamfile +++ b/example/http/server/sync/Jamfile @@ -12,4 +12,5 @@ exe http-server-sync : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/websocket/client/async-ssl/Jamfile b/example/websocket/client/async-ssl/Jamfile index 5fd8bb43..53b7399d 100644 --- a/example/websocket/client/async-ssl/Jamfile +++ b/example/websocket/client/async-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe websocket-client-async-ssl : diff --git a/example/websocket/client/async/Jamfile b/example/websocket/client/async/Jamfile index e5359db3..efbd2f69 100644 --- a/example/websocket/client/async/Jamfile +++ b/example/websocket/client/async/Jamfile @@ -12,4 +12,5 @@ exe websocket-client-async : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/websocket/client/coro-ssl/Jamfile b/example/websocket/client/coro-ssl/Jamfile index f9ecdd08..e8cb7e26 100644 --- a/example/websocket/client/coro-ssl/Jamfile +++ b/example/websocket/client/coro-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe websocket-client-coro-ssl : @@ -19,4 +19,5 @@ exe websocket-client-coro-ssl : : coverage:no ubasan:no + /boost/coroutine//boost_coroutine ; diff --git a/example/websocket/client/coro/Jamfile b/example/websocket/client/coro/Jamfile index 4fc30887..6d96d866 100644 --- a/example/websocket/client/coro/Jamfile +++ b/example/websocket/client/coro/Jamfile @@ -12,4 +12,6 @@ exe websocket-client-coro : : coverage:no ubasan:no + /boost/beast//static_beast/static + /boost/coroutine//boost_coroutine ; diff --git a/example/websocket/client/sync-ssl/Jamfile b/example/websocket/client/sync-ssl/Jamfile index 6beec885..9879957a 100644 --- a/example/websocket/client/sync-ssl/Jamfile +++ b/example/websocket/client/sync-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe websocket-client-sync-ssl : diff --git a/example/websocket/client/sync/Jamfile b/example/websocket/client/sync/Jamfile index ea71a0ce..a0d5d0e2 100644 --- a/example/websocket/client/sync/Jamfile +++ b/example/websocket/client/sync/Jamfile @@ -12,4 +12,5 @@ exe websocket-client-sync : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/websocket/server/async-ssl/Jamfile b/example/websocket/server/async-ssl/Jamfile index b3a7b7cd..913fd7b4 100644 --- a/example/websocket/server/async-ssl/Jamfile +++ b/example/websocket/server/async-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe websocket-server-async-ssl : diff --git a/example/websocket/server/async/Jamfile b/example/websocket/server/async/Jamfile index e1e63e14..5e9a3ff8 100644 --- a/example/websocket/server/async/Jamfile +++ b/example/websocket/server/async/Jamfile @@ -12,4 +12,5 @@ exe websocket-server-async : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/websocket/server/chat-multi/Jamfile b/example/websocket/server/chat-multi/Jamfile index a8d49bfd..debea868 100644 --- a/example/websocket/server/chat-multi/Jamfile +++ b/example/websocket/server/chat-multi/Jamfile @@ -16,4 +16,5 @@ exe websocket-chat-multi : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/websocket/server/coro-ssl/Jamfile b/example/websocket/server/coro-ssl/Jamfile index 3a0fede6..2b486803 100644 --- a/example/websocket/server/coro-ssl/Jamfile +++ b/example/websocket/server/coro-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe websocket-server-coro-ssl : @@ -19,4 +19,5 @@ exe websocket-server-coro-ssl : : coverage:no ubasan:no + /boost/coroutine//boost_coroutine ; diff --git a/example/websocket/server/coro/Jamfile b/example/websocket/server/coro/Jamfile index 37c83090..36ecef66 100644 --- a/example/websocket/server/coro/Jamfile +++ b/example/websocket/server/coro/Jamfile @@ -12,4 +12,6 @@ exe websocket-server-coro : : coverage:no ubasan:no + /boost/beast//static_beast/static + /boost/coroutine//boost_coroutine ; diff --git a/example/websocket/server/fast/Jamfile b/example/websocket/server/fast/Jamfile index 06dc26c6..f5332274 100644 --- a/example/websocket/server/fast/Jamfile +++ b/example/websocket/server/fast/Jamfile @@ -12,4 +12,6 @@ exe websocket-server-fast : : coverage:no ubasan:no + /boost/beast//static_beast/static + /boost/coroutine//boost_coroutine ; diff --git a/example/websocket/server/stackless-ssl/Jamfile b/example/websocket/server/stackless-ssl/Jamfile index 2ae1f36c..60aa5307 100644 --- a/example/websocket/server/stackless-ssl/Jamfile +++ b/example/websocket/server/stackless-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe websocket-server-stackless-ssl : diff --git a/example/websocket/server/stackless/Jamfile b/example/websocket/server/stackless/Jamfile index ce9ab898..d4548e6b 100644 --- a/example/websocket/server/stackless/Jamfile +++ b/example/websocket/server/stackless/Jamfile @@ -12,4 +12,5 @@ exe websocket-server-stackless : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/example/websocket/server/sync-ssl/Jamfile b/example/websocket/server/sync-ssl/Jamfile index 6fb18c96..9bd803fa 100644 --- a/example/websocket/server/sync-ssl/Jamfile +++ b/example/websocket/server/sync-ssl/Jamfile @@ -11,7 +11,7 @@ import ac ; project : requirements - [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio : no ] + [ ac.check-library /boost/beast//static_ssl_asio : /boost/beast//static_ssl_asio/static : no ] ; exe websocket-server-sync-ssl : diff --git a/example/websocket/server/sync/Jamfile b/example/websocket/server/sync/Jamfile index 7fd14ce4..3b2c69b8 100644 --- a/example/websocket/server/sync/Jamfile +++ b/example/websocket/server/sync/Jamfile @@ -12,4 +12,5 @@ exe websocket-server-sync : : coverage:no ubasan:no + /boost/beast//static_beast/static ; diff --git a/test/Jamfile b/test/Jamfile index 0ba86559..fde63211 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -10,6 +10,12 @@ import testing ; import ../../config/checks/config : requires ; +lib test_main + : $(TEST_MAIN) + : requirements + + ; + project /boost/beast/test : requirements [ requires @@ -23,8 +29,10 @@ project /boost/beast/test ./extern BOOST_BEAST_ALLOW_DEPRECATED BOOST_BEAST_TESTS - BOOST_ASIO_SEPARATE_COMPILATION - /boost/beast//static_ssl_asio + /boost/beast//static_ssl_asio/static + /boost/beast/test//test_main/static + /boost/filesystem//boost_filesystem + /boost/coroutine//boost_coroutine ; path-constant ZLIB_SOURCES : diff --git a/test/beast/_experimental/Jamfile b/test/beast/_experimental/Jamfile index aa4f0eb0..cefb68fb 100644 --- a/test/beast/_experimental/Jamfile +++ b/test/beast/_experimental/Jamfile @@ -17,15 +17,15 @@ local RUN_TESTS ; for local f in $(SOURCES) { - RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; + RUN_TESTS += [ run $(f) ] ; } alias run-tests : $(RUN_TESTS) ; -exe fat-tests : $(TEST_MAIN) $(SOURCES) ; +exe fat-tests : $(SOURCES) ; explicit fat-tests ; -run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ; +run $(SOURCES) : : : : run-fat-tests ; explicit run-fat-tests ; diff --git a/test/beast/core/Jamfile b/test/beast/core/Jamfile index 14e0096e..33d260a4 100644 --- a/test/beast/core/Jamfile +++ b/test/beast/core/Jamfile @@ -61,15 +61,15 @@ local RUN_TESTS ; for local f in $(SOURCES) { - RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; + RUN_TESTS += [ run $(f) ] ; } alias run-tests : $(RUN_TESTS) ; -exe fat-tests : $(TEST_MAIN) $(SOURCES) ; +exe fat-tests : $(SOURCES) ; explicit fat-tests ; -run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ; +run $(SOURCES) : : : : run-fat-tests ; explicit run-fat-tests ; diff --git a/test/beast/http/Jamfile b/test/beast/http/Jamfile index 8a4bf507..37d65aa8 100644 --- a/test/beast/http/Jamfile +++ b/test/beast/http/Jamfile @@ -36,15 +36,15 @@ local RUN_TESTS ; for local f in $(SOURCES) { - RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; + RUN_TESTS += [ run $(f) ] ; } alias run-tests : $(RUN_TESTS) ; -exe fat-tests : $(TEST_MAIN) $(SOURCES) ; +exe fat-tests : $(SOURCES) ; explicit fat-tests ; -run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ; +run $(SOURCES) : : : : run-fat-tests ; explicit run-fat-tests ; diff --git a/test/beast/ssl/Jamfile b/test/beast/ssl/Jamfile index 50a3e787..a5a2bf12 100644 --- a/test/beast/ssl/Jamfile +++ b/test/beast/ssl/Jamfile @@ -15,15 +15,15 @@ local RUN_TESTS ; for local f in $(SOURCES) { - RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; + RUN_TESTS += [ run $(f) ] ; } alias run-tests : $(RUN_TESTS) ; -exe fat-tests : $(TEST_MAIN) $(SOURCES) ; +exe fat-tests : $(SOURCES) ; explicit fat-tests ; -run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ; +run $(SOURCES) : : : : run-fat-tests ; explicit run-fat-tests ; diff --git a/test/beast/websocket/Jamfile b/test/beast/websocket/Jamfile index e276d909..8b20f31d 100644 --- a/test/beast/websocket/Jamfile +++ b/test/beast/websocket/Jamfile @@ -37,15 +37,15 @@ local RUN_TESTS ; for local f in $(SOURCES) { - RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ; + RUN_TESTS += [ run $(f) ] ; } alias run-tests : $(RUN_TESTS) ; -exe fat-tests : $(TEST_MAIN) $(SOURCES) ; +exe fat-tests : $(SOURCES) ; explicit fat-tests ; -run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ; +run $(SOURCES) : : : : run-fat-tests ; explicit run-fat-tests ; diff --git a/test/beast/zlib/Jamfile b/test/beast/zlib/Jamfile index c51f9fd2..16f0dd90 100644 --- a/test/beast/zlib/Jamfile +++ b/test/beast/zlib/Jamfile @@ -18,15 +18,15 @@ local RUN_TESTS ; for local f in $(SOURCES) { - RUN_TESTS += [ run $(f) $(TEST_MAIN) $(ZLIB_SOURCES) ] ; + RUN_TESTS += [ run $(f) $(ZLIB_SOURCES) ] ; } alias run-tests : $(RUN_TESTS) ; -exe fat-tests : $(TEST_MAIN) $(ZLIB_SOURCES) $(SOURCES) ; +exe fat-tests : $(ZLIB_SOURCES) $(SOURCES) ; explicit fat-tests ; -run $(TEST_MAIN) $(ZLIB_SOURCES) $(SOURCES) : : : : run-fat-tests ; +run $(ZLIB_SOURCES) $(SOURCES) : : : : run-fat-tests ; explicit run-fat-tests ; diff --git a/test/bench/buffers/Jamfile b/test/bench/buffers/Jamfile index 4f278c0c..f2b29c2d 100644 --- a/test/bench/buffers/Jamfile +++ b/test/bench/buffers/Jamfile @@ -8,7 +8,7 @@ # exe bench-buffers : - $(TEST_MAIN) + bench_buffers.cpp ; diff --git a/test/bench/parser/Jamfile b/test/bench/parser/Jamfile index b32ef7c7..005fb7c9 100644 --- a/test/bench/parser/Jamfile +++ b/test/bench/parser/Jamfile @@ -7,7 +7,7 @@ # Official repository: https://github.com/boostorg/beast # -run $(TEST_MAIN) nodejs_parser.cpp bench_parser.cpp : : : : bench-parser ; +run nodejs_parser.cpp bench_parser.cpp : : : : bench-parser ; explicit bench-parser ; diff --git a/test/bench/utf8_checker/Jamfile b/test/bench/utf8_checker/Jamfile index 1856df27..05a322b9 100644 --- a/test/bench/utf8_checker/Jamfile +++ b/test/bench/utf8_checker/Jamfile @@ -8,7 +8,7 @@ # exe bench-utf8-checker : - $(TEST_MAIN) + bench_utf8_checker.cpp ; diff --git a/test/bench/zlib/Jamfile b/test/bench/zlib/Jamfile index cb8c35fa..eefe3d1e 100644 --- a/test/bench/zlib/Jamfile +++ b/test/bench/zlib/Jamfile @@ -9,7 +9,7 @@ exe bench-zlib : $(ZLIB_SOURCES) - $(TEST_MAIN) + deflate_stream.cpp inflate_stream.cpp ; diff --git a/test/doc/Jamfile b/test/doc/Jamfile index b5461751..dcbc47fd 100644 --- a/test/doc/Jamfile +++ b/test/doc/Jamfile @@ -7,35 +7,27 @@ # Official repository: https://github.com/boostorg/beast # -import ac ; - -project - : requirements - [ ac.check-library /boost/beast//ssl : /boost/beast//ssl : no ] - /boost/beast//crypto - ; - alias run-tests : [ compile core_snippets.cpp ] [ compile http_snippets.cpp ] - [ run core_1_refresher.cpp $(TEST_MAIN) ] - [ run core_3_timeouts.cpp $(TEST_MAIN) ] - [ run core_4_layers.cpp $(TEST_MAIN) ] - [ run http_10_custom_parser.cpp $(TEST_MAIN) ] - [ run http_examples.cpp $(TEST_MAIN) ] - [ run websocket.cpp $(TEST_MAIN) ] - [ run websocket_1_connecting.cpp $(TEST_MAIN) ] - [ run websocket_2_handshaking.cpp $(TEST_MAIN) ] - [ run websocket_3_decorator.cpp $(TEST_MAIN) ] - [ run websocket_4_messages.cpp $(TEST_MAIN) ] - [ run websocket_5_control_frames.cpp $(TEST_MAIN) ] - [ run websocket_6_timeouts.cpp $(TEST_MAIN) ] - [ run websocket_7_teardown.cpp $(TEST_MAIN) ] - [ run websocket_8_notes.cpp $(TEST_MAIN) ] + [ run core_1_refresher.cpp ] + [ run core_3_timeouts.cpp ] + [ run core_4_layers.cpp ] + [ run http_10_custom_parser.cpp ] + [ run http_examples.cpp ] + [ run websocket.cpp ] + [ run websocket_1_connecting.cpp ] + [ run websocket_2_handshaking.cpp ] + [ run websocket_3_decorator.cpp ] + [ run websocket_4_messages.cpp ] + [ run websocket_5_control_frames.cpp ] + [ run websocket_6_timeouts.cpp ] + [ run websocket_7_teardown.cpp ] + [ run websocket_8_notes.cpp ] ; exe fat-tests : - $(TEST_MAIN) + core_1_refresher.cpp core_3_timeouts.cpp core_4_layers.cpp @@ -54,6 +46,6 @@ exe fat-tests : explicit fat-tests ; -run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ; +run fat-tests : : : : run-fat-tests ; explicit run-fat-tests ; diff --git a/test/example/Jamfile b/test/example/Jamfile index 613dfde1..b8a3d14a 100644 --- a/test/example/Jamfile +++ b/test/example/Jamfile @@ -15,6 +15,6 @@ alias fat-tests ; explicit fat-tests ; -run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ; +alias run-fat-tests : common//run-tests ; explicit run-fat-tests ;