Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/iostreams/test/Jamfile @ 14

Last change on this file since 14 was 12, checked in by landauf, 17 years ago

added boost

  • Property svn:executable set to *
File size: 5.0 KB
RevLine 
[12]1# Boost.Iostreams Library test Jamfile
2
3# (C) Copyright Jonathan Turkanis 2004
4# Distributed under the Boost Software License, Version 1.0. (See accompanying
5# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
6
7# See http://www.boost.org/libs/iostreams for documentation.
8
9subproject libs/iostreams/test ;
10
11# bring in rules for testing
12import testing ;
13
14# import compression libraries
15import ../build/bzip2 ;
16import ../build/zlib ;
17
18# Make tests run by default.
19DEPENDS all : test ;
20
21{
22    # look in BOOST_ROOT for sources first, just in this Jamfile
23    local SEARCH_SOURCE = $(BOOST_ROOT) $(SEARCH_SOURCE) ;
24
25    template bzip2
26        : # sources
27          <template>basic
28          <lib>../build/boost_iostreams
29          <lib>../build/boost_bzip2
30        : # build requirements
31          <define>BOOST_IOSTREAMS_NO_LIB
32        : # build variants
33        ;
34
35    template zlib
36        : # sources
37          <template>basic
38          <lib>../build/boost_iostreams
39          <lib>../build/boost_zlib
40        : # build requirements
41          <define>BOOST_IOSTREAMS_NO_LIB
42        : # build variants
43        ;
44
45    rule test-iostreams ( sources * : requirements * ) {
46        return [
47            run
48                $(sources)
49                <lib>../../test/build/boost_unit_test_framework
50            : # command
51            : # input files
52            : # build requirements
53                <vc-6_5-stlport><*><runtime-link>static
54                <define>BOOST_IOSTREAMS_NO_LIB
55                $(requirements)
56        ] ;
57    }
58   
59    rule intialize_suite {
60        TEST_SUITE =
61          [ test-iostreams libs/iostreams/test/array_test.cpp ]
62          [ test-iostreams libs/iostreams/test/auto_close_test.cpp ]
63          [ test-iostreams libs/iostreams/test/buffer_size_test.cpp ]
64          [ test-iostreams
65                libs/iostreams/test/code_converter_test.cpp
66                libs/iostreams/test/detail/utf8_codecvt_facet.cpp
67              : # build requirements
68                std::locale-support ]   
69          [ test-iostreams libs/iostreams/test/component_access_test.cpp ]
70          [ test-iostreams libs/iostreams/test/compose_test.cpp ]
71          [ test-iostreams libs/iostreams/test/copy_test.cpp ]
72          [ test-iostreams libs/iostreams/test/counter_test.cpp ]
73          [ test-iostreams libs/iostreams/test/direct_adapter_test.cpp ]
74          [ test-iostreams libs/iostreams/test/example_test.cpp ]
75          [ test-iostreams libs/iostreams/test/file_test.cpp ]
76          [ test-iostreams
77                libs/iostreams/test/file_descriptor_test.cpp
78                libs/iostreams/src/file_descriptor.cpp ]
79          [ test-iostreams libs/iostreams/test/filtering_stream_test.cpp ]
80          [ test-iostreams
81                libs/iostreams/test/finite_state_filter_test.cpp
82              : # build requirements
83                std::locale-support ]
84          [ test-iostreams libs/iostreams/test/flush_test.cpp ]
85          [ test-iostreams libs/iostreams/test/invert_test.cpp ]
86          [ test-iostreams libs/iostreams/test/line_filter_test.cpp ]
87          [ test-iostreams
88                libs/iostreams/test/mapped_file_test.cpp
89                libs/iostreams/src/mapped_file.cpp ]
90          [ test-iostreams libs/iostreams/test/newline_test.cpp ]
91          [ test-iostreams libs/iostreams/test/null_test.cpp ]
92          [ test-iostreams libs/iostreams/test/pipeline_test.cpp ]
93          [ test-iostreams libs/iostreams/test/positioning_test.cpp ]
94          [ test-iostreams
95                libs/iostreams/test/regex_filter_test.cpp     
96                <lib>../../regex/build/boost_regex ]
97          [ test-iostreams libs/iostreams/test/restrict_test.cpp ]
98          [ test-iostreams libs/iostreams/test/seekable_file_test.cpp ]
99          [ test-iostreams libs/iostreams/test/seekable_filter_test.cpp ]
100          [ test-iostreams libs/iostreams/test/stdio_filter_test.cpp ]
101          [ test-iostreams libs/iostreams/test/symmetric_filter_test.cpp ]
102          [ test-iostreams libs/iostreams/test/tee_test.cpp ]
103          [ test-iostreams libs/iostreams/test/wide_stream_test.cpp ] ;
104         
105        if ! $(NO_BZIP2)
106        {
107            TEST_SUITE +=
108                [ test-iostreams
109                      libs/iostreams/test/bzip2_test.cpp
110                      <template>bzip2
111                    : # build requirements
112                      <define>BOOST_IOSTREAMS_NO_LIB ] ;
113        }
114
115        if ! $(NO_ZLIB)
116        {
117            TEST_SUITE +=
118                [ test-iostreams
119                      libs/iostreams/test/gzip_test.cpp
120                      <template>zlib
121                    : # build requirements
122                      <define>BOOST_IOSTREAMS_NO_LIB ]
123                [ test-iostreams
124                      libs/iostreams/test/zlib_test.cpp
125                      <template>zlib
126                    : # build requirements
127                      <define>BOOST_IOSTREAMS_NO_LIB ] ;
128        }
129    }
130   
131    intialize_suite ;
132
133    test-suite "iostreams"
134        : $(IOSTREAMS_TEST_SUITE)
135        ;
136}
Note: See TracBrowser for help on using the repository browser.