1 # Boost.Iostreams Library test Jamfile
3 # (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
4 # (C) Copyright 2004-2007 Jonathan Turkanis
5 # Distributed under the Boost Software License, Version 1.0. (See accompanying
6 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
8 # See http://www.boost.org/libs/iostreams for documentation.
14 local NO_BZIP2 = [ modules.peek : NO_BZIP2 ] ;
15 local NO_ZLIB = [ modules.peek : NO_ZLIB ] ;
16 local NO_LZMA = [ modules.peek : NO_LZMA ] ;
17 local LARGE_FILE_TEMP = [ modules.peek : LARGE_FILE_TEMP ] ;
18 local LARGE_FILE_KEEP = [ modules.peek : LARGE_FILE_KEEP ] ;
20 rule test-iostreams ( sources * : requirements * : target-name ? ) {
24 /boost/test//boost_unit_test_framework/<link>static
25 /boost/filesystem//boost_filesystem/<link>static
28 : # build requirements
29 <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
30 <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
31 <toolset>cw-9.3,<os>darwin:<runtime-link>static
32 <define>BOOST_IOSTREAMS_NO_LIB
33 <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
39 rule compile-fail-iostreams ( sources * : requirements * : target-name ? ) {
43 /boost/test//boost_unit_test_framework/<link>static
44 /boost/filesystem//boost_filesystem/<link>static
45 : # build requirements
46 <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
47 <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
48 <toolset>cw-9.3,<os>darwin:<runtime-link>static
49 <define>BOOST_IOSTREAMS_NO_LIB
50 <link>shared:<define>BOOST_IOSTREAMS_DYN_LINK=1
58 [ test-iostreams array_test.cpp ]
59 [ test-iostreams auto_close_test.cpp ]
60 [ test-iostreams buffer_size_test.cpp ]
61 [ test-iostreams close_test.cpp ]
63 code_converter_test.cpp
64 detail/utf8_codecvt_facet.cpp ]
65 [ test-iostreams combine_test.cpp ]
66 [ test-iostreams compose_test.cpp ]
67 [ test-iostreams component_access_test.cpp ]
68 [ test-iostreams copy_test.cpp ]
69 [ test-iostreams counter_test.cpp ]
70 [ test-iostreams direct_adapter_test.cpp ]
71 [ test-iostreams dual_seekable_test.cpp ]
72 [ test-iostreams example_test.cpp ]
73 [ test-iostreams execute_test.cpp ]
74 [ test-iostreams file_test.cpp ]
75 [ test-iostreams file_descriptor_test.cpp
76 ../build//boost_iostreams ]
77 [ test-iostreams deprecated_file_descriptor_test.cpp
78 ../build//boost_iostreams
79 : <define>BOOST_IOSTREAMS_USE_DEPRECATED ]
80 [ compile-fail-iostreams deprecated_file_descriptor_test.cpp
82 : deprecated_file_descriptor_fail ]
83 [ test-iostreams filtering_stream_test.cpp ]
84 [ test-iostreams finite_state_filter_test.cpp ]
85 [ test-iostreams flush_test.cpp ]
88 /boost/regex//boost_regex ]
89 [ test-iostreams invert_test.cpp ]
90 [ test-iostreams line_filter_test.cpp ]
91 [ test-iostreams mapped_file_test.cpp
92 ../build//boost_iostreams ]
93 [ test-iostreams path_test.cpp ]
94 [ test-iostreams newline_test.cpp ]
95 [ test-iostreams null_test.cpp ]
96 [ test-iostreams operation_sequence_test.cpp ]
97 [ test-iostreams pipeline_test.cpp ]
100 /boost/regex//boost_regex ]
101 [ test-iostreams restrict_test.cpp ]
102 [ test-iostreams seekable_file_test.cpp ]
103 [ test-iostreams seekable_filter_test.cpp ]
104 [ test-iostreams sequence_test.cpp ]
105 [ test-iostreams slice_test.cpp ]
106 [ test-iostreams stdio_filter_test.cpp ]
107 [ test-iostreams stream_offset_32bit_test.cpp ]
108 [ test-iostreams stream_offset_64bit_test.cpp ]
109 #[ test-iostreams stream_state_test.cpp ]
110 [ test-iostreams symmetric_filter_test.cpp ]
111 [ test-iostreams tee_test.cpp ]
112 [ test-iostreams wide_stream_test.cpp ]
113 [ test-iostreams windows_pipe_test.cpp
114 ../build//boost_iostreams
115 : <build>no <target-os>windows:<build>yes ]
118 if $(LARGE_FILE_KEEP)
123 ../src/file_descriptor.cpp
124 ../src/mapped_file.cpp
125 : <define>LARGE_FILE_KEEP=$(LARGE_FILE_KEEP)
128 if $(LARGE_FILE_TEMP)
133 ../src/file_descriptor.cpp
134 ../src/mapped_file.cpp
135 : <define>LARGE_FILE_TEMP=$(LARGE_FILE_TEMP)
140 all-tests += [ test-iostreams
141 bzip2_test.cpp ../build//boost_iostreams ] ;
147 write_failure_test.cpp ../build//boost_iostreams ]
149 gzip_test.cpp ../build//boost_iostreams ]
151 zlib_test.cpp ../build//boost_iostreams ] ;
155 using lzma : : <build-name>boost_lzma <tag>@tag : : true ;
156 all-tests += [ test-iostreams
157 lzma_test.cpp ../build//boost_iostreams :
158 [ ac.check-library /lzma//lzma : : <build>no ] ] ;
161 test-suite "iostreams" : $(all-tests) ;