Turn off warnings for building zlib in the unit tests

This commit is contained in:
Mohammad Nejati
2024-03-29 10:21:45 +00:00
committed by Mohammad Nejati
parent 54ad4ba714
commit c5679e40da
2 changed files with 10 additions and 11 deletions

View File

@ -30,7 +30,6 @@ project /boost/beast/test
cxx11_template_aliases
cxx11_variadic_templates
]
<include>./extern
<define>BOOST_BEAST_TESTS
<target-os>darwin:<define>Z_HAVE_UNISTD_H=1
<library>/boost/beast//lib-asio/<link>static
@ -41,15 +40,11 @@ project /boost/beast/test
<address-sanitizer>norecover:<define>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
<warnings>off
<link>static
: usage-requirements
<include>./extern
;
alias run-tests :

View File

@ -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 ;