From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/libs/iostreams/test/Jamfile.v2 | 175 +++++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 src/boost/libs/iostreams/test/Jamfile.v2 (limited to 'src/boost/libs/iostreams/test/Jamfile.v2') diff --git a/src/boost/libs/iostreams/test/Jamfile.v2 b/src/boost/libs/iostreams/test/Jamfile.v2 new file mode 100644 index 00000000..e13ff8f9 --- /dev/null +++ b/src/boost/libs/iostreams/test/Jamfile.v2 @@ -0,0 +1,175 @@ +# Boost.Iostreams Library test Jamfile + +# (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) +# (C) Copyright 2004-2007 Jonathan Turkanis +# Distributed under the Boost Software License, Version 1.0. (See accompanying +# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) + +# See http://www.boost.org/libs/iostreams for documentation. + +import stlport ; +import modules ; +import ac ; + +local NO_BZIP2 = [ modules.peek : NO_BZIP2 ] ; +local NO_ZLIB = [ modules.peek : NO_ZLIB ] ; +local NO_LZMA = [ modules.peek : NO_LZMA ] ; +local NO_ZSTD = [ modules.peek : NO_ZSTD ] ; +local LARGE_FILE_TEMP = [ modules.peek : LARGE_FILE_TEMP ] ; +local LARGE_FILE_KEEP = [ modules.peek : LARGE_FILE_KEEP ] ; + +rule test-iostreams ( sources * : requirements * : target-name ? ) { + return [ + run + $(sources) + /boost/test//boost_unit_test_framework/static + /boost/filesystem//boost_filesystem/static + : # command + : # input files + : # build requirements + msvc:_CRT_SECURE_NO_DEPRECATE + msvc:_SCL_SECURE_NO_DEPRECATE + cw-9.3,darwin:static + BOOST_IOSTREAMS_NO_LIB + shared:BOOST_IOSTREAMS_DYN_LINK=1 + $(requirements) + : $(target-name) + ] ; +} + +rule compile-fail-iostreams ( sources * : requirements * : target-name ? ) { + return [ + compile-fail + $(sources) + /boost/test//boost_unit_test_framework/static + /boost/filesystem//boost_filesystem/static + : # build requirements + msvc:_CRT_SECURE_NO_DEPRECATE + msvc:_SCL_SECURE_NO_DEPRECATE + cw-9.3,darwin:static + BOOST_IOSTREAMS_NO_LIB + shared:BOOST_IOSTREAMS_DYN_LINK=1 + $(requirements) + : $(target-name) + ] ; +} + + + local all-tests = + [ test-iostreams array_test.cpp ] + [ test-iostreams auto_close_test.cpp ] + [ test-iostreams buffer_size_test.cpp ] + [ test-iostreams close_test.cpp ] + [ test-iostreams + code_converter_test.cpp + detail/utf8_codecvt_facet.cpp ] + [ test-iostreams combine_test.cpp ] + [ test-iostreams compose_test.cpp ] + [ test-iostreams component_access_test.cpp ] + [ test-iostreams copy_test.cpp ] + [ test-iostreams counter_test.cpp ] + [ test-iostreams direct_adapter_test.cpp ] + [ test-iostreams dual_seekable_test.cpp ] + [ test-iostreams example_test.cpp ] + [ test-iostreams execute_test.cpp ] + [ test-iostreams file_test.cpp ] + [ test-iostreams file_descriptor_test.cpp + ../build//boost_iostreams ] + [ test-iostreams deprecated_file_descriptor_test.cpp + ../build//boost_iostreams + : BOOST_IOSTREAMS_USE_DEPRECATED ] + [ compile-fail-iostreams deprecated_file_descriptor_test.cpp + : + : deprecated_file_descriptor_fail ] + [ test-iostreams filtering_stream_test.cpp ] + [ test-iostreams finite_state_filter_test.cpp ] + [ test-iostreams flush_test.cpp ] + [ test-iostreams + grep_test.cpp + /boost/regex//boost_regex ] + [ test-iostreams invert_test.cpp ] + [ test-iostreams line_filter_test.cpp ] + [ test-iostreams mapped_file_test.cpp + ../build//boost_iostreams ] + [ test-iostreams path_test.cpp ] + [ test-iostreams newline_test.cpp ] + [ test-iostreams null_test.cpp ] + [ test-iostreams operation_sequence_test.cpp ] + [ test-iostreams pipeline_test.cpp ] + [ test-iostreams read_nonblocking_test.cpp ] + [ test-iostreams + regex_filter_test.cpp + /boost/regex//boost_regex ] + [ test-iostreams restrict_test.cpp ] + [ test-iostreams seekable_file_test.cpp ] + [ test-iostreams seekable_filter_test.cpp ] + [ test-iostreams sequence_test.cpp ] + [ test-iostreams slice_test.cpp ] + [ test-iostreams stdio_filter_test.cpp ] + [ test-iostreams stream_offset_32bit_test.cpp ] + [ test-iostreams stream_offset_64bit_test.cpp ] + [ test-iostreams stream_state_test.cpp ] + [ test-iostreams symmetric_filter_test.cpp ] + [ test-iostreams tee_test.cpp ] + [ test-iostreams wide_stream_test.cpp ] + [ test-iostreams windows_pipe_test.cpp + ../build//boost_iostreams + : no windows:yes ] + ; + + if $(LARGE_FILE_KEEP) + { + all-tests += + [ test-iostreams + large_file_test.cpp + ../src/file_descriptor.cpp + ../src/mapped_file.cpp + : LARGE_FILE_KEEP=$(LARGE_FILE_KEEP) + static ] ; + } + if $(LARGE_FILE_TEMP) + { + all-tests += + [ test-iostreams + large_file_test.cpp + ../src/file_descriptor.cpp + ../src/mapped_file.cpp + : LARGE_FILE_TEMP=$(LARGE_FILE_TEMP) + static ] ; + } + if ! $(NO_BZIP2) + { + all-tests += [ test-iostreams + bzip2_test.cpp ../build//boost_iostreams : + [ ac.check-library /bzip2//bzip2 : : no ] ] ; + } + if ! $(NO_ZLIB) + { + all-tests += + [ test-iostreams + write_failure_test.cpp ../build//boost_iostreams : + [ ac.check-library /zlib//zlib : : no ] ] + [ test-iostreams + gzip_test.cpp ../build//boost_iostreams : + [ ac.check-library /zlib//zlib : : no ] ] + [ test-iostreams + zlib_test.cpp ../build//boost_iostreams : + [ ac.check-library /zlib//zlib : : no ] ] ; + } + if ! $(NO_LZMA) + { + using lzma : : boost_lzma @tag : : true ; + all-tests += [ test-iostreams + lzma_test.cpp ../build//boost_iostreams : + [ ac.check-library /lzma//lzma : : no ] ] ; + } + if ! $(NO_ZSTD) + { + using zstd ; + all-tests += [ test-iostreams + zstd_test.cpp ../build//boost_iostreams : + [ ac.check-library /zstd//zstd : : no ] ] ; + } + + test-suite "iostreams" : $(all-tests) ; + -- cgit v1.2.3