From c5679e40da5355abd0d01570824d2226704a8a58 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Fri, 29 Mar 2024 10:21:45 +0000 Subject: [PATCH] Turn off warnings for building zlib in the unit tests --- test/Jamfile | 12 ++++++------ test/beast/zlib/Jamfile | 9 ++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/test/Jamfile b/test/Jamfile index dd6d0a23..cfb2e2b8 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -30,7 +30,6 @@ project /boost/beast/test cxx11_template_aliases cxx11_variadic_templates ] - ./extern BOOST_BEAST_TESTS darwin:Z_HAVE_UNISTD_H=1 /boost/beast//lib-asio/static @@ -41,15 +40,11 @@ project /boost/beast/test norecover:BOOST_USE_ASAN=1 ; -path-constant ZLIB_SOURCES : +lib lib-zlib : extern/zlib-1.2.12/adler32.c extern/zlib-1.2.12/compress.c extern/zlib-1.2.12/crc32.c extern/zlib-1.2.12/deflate.c - #extern/zlib-1.2.12/gzclose.c - #extern/zlib-1.2.12/gzlib.c - #extern/zlib-1.2.12/gzread.c - #extern/zlib-1.2.12/gzwrite.c extern/zlib-1.2.12/infback.c extern/zlib-1.2.12/inffast.c extern/zlib-1.2.12/inflate.c @@ -57,6 +52,11 @@ path-constant ZLIB_SOURCES : extern/zlib-1.2.12/trees.c extern/zlib-1.2.12/uncompr.c extern/zlib-1.2.12/zutil.c + : requirements + off + static + : usage-requirements + ./extern ; alias run-tests : diff --git a/test/beast/zlib/Jamfile b/test/beast/zlib/Jamfile index b191a242..28665e23 100644 --- a/test/beast/zlib/Jamfile +++ b/test/beast/zlib/Jamfile @@ -19,25 +19,24 @@ local RUN_TESTS ; for local f in $(SOURCES) { RUN_TESTS += [ run $(f) - $(ZLIB_SOURCES) + /boost/beast/test//lib-zlib /boost/beast/test//lib-test ] ; } alias run-tests : $(RUN_TESTS) ; -exe fat-tests - : - $(ZLIB_SOURCES) +exe fat-tests : $(SOURCES) + /boost/beast/test//lib-zlib /boost/beast/test//lib-test ; explicit fat-tests ; run - $(ZLIB_SOURCES) $(SOURCES) + /boost/beast/test//lib-zlib /boost/beast/test//lib-test : : : : run-fat-tests ;