]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/iostreams/test/Jamfile.v2
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / iostreams / test / Jamfile.v2
1 # Boost.Iostreams Library test Jamfile
2
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.)
7
8 # See http://www.boost.org/libs/iostreams for documentation.
9
10 import stlport ;
11 import modules ;
12 import ac ;
13
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 ] ;
19
20 rule test-iostreams ( sources * : requirements * : target-name ? ) {
21 return [
22 run
23 $(sources)
24 /boost/test//boost_unit_test_framework/<link>static
25 /boost/filesystem//boost_filesystem/<link>static
26 : # command
27 : # input files
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
34 $(requirements)
35 : $(target-name)
36 ] ;
37 }
38
39 rule compile-fail-iostreams ( sources * : requirements * : target-name ? ) {
40 return [
41 compile-fail
42 $(sources)
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
51 $(requirements)
52 : $(target-name)
53 ] ;
54 }
55
56
57 local all-tests =
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 ]
62 [ test-iostreams
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
81 :
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 ]
86 [ test-iostreams
87 grep_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 ]
98 [ test-iostreams
99 regex_filter_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 ]
116 ;
117
118 if $(LARGE_FILE_KEEP)
119 {
120 all-tests +=
121 [ test-iostreams
122 large_file_test.cpp
123 ../src/file_descriptor.cpp
124 ../src/mapped_file.cpp
125 : <define>LARGE_FILE_KEEP=$(LARGE_FILE_KEEP)
126 <link>static ] ;
127 }
128 if $(LARGE_FILE_TEMP)
129 {
130 all-tests +=
131 [ test-iostreams
132 large_file_test.cpp
133 ../src/file_descriptor.cpp
134 ../src/mapped_file.cpp
135 : <define>LARGE_FILE_TEMP=$(LARGE_FILE_TEMP)
136 <link>static ] ;
137 }
138 if ! $(NO_BZIP2)
139 {
140 all-tests += [ test-iostreams
141 bzip2_test.cpp ../build//boost_iostreams ] ;
142 }
143 if ! $(NO_ZLIB)
144 {
145 all-tests +=
146 [ test-iostreams
147 write_failure_test.cpp ../build//boost_iostreams ]
148 [ test-iostreams
149 gzip_test.cpp ../build//boost_iostreams ]
150 [ test-iostreams
151 zlib_test.cpp ../build//boost_iostreams ] ;
152 }
153 if ! $(NO_LZMA)
154 {
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 ] ] ;
159 }
160
161 test-suite "iostreams" : $(all-tests) ;
162