1# copyright John Maddock 2004
2# Use, modification and distribution are subject to the
3# Boost Software License, Version 1.0. (See accompanying file
4# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6# bring in the rules for testing
7import testing ;
8
9# type_traits in V1 seem to have two modes: standalone, triggered
10# by a command line option, and a regular. For now, just imitate
11# regular
12
13project : requirements
14   # default to all warnings on:
15   <warnings>all
16   # set warnings as errors for those compilers we know we get warning free:
17   <toolset>gcc:<cxxflags>-Wextra
18   <toolset>gcc:<cxxflags>-Wno-uninitialized
19   <toolset>gcc:<warnings-as-errors>on
20   <toolset>intel:<warnings-as-errors>on
21   <toolset>sun:<warnings-as-errors>on
22   <toolset>msvc:<warnings-as-errors>on
23;
24
25rule all-tests {
26     local result ;
27     for local source in [ glob *_test.cpp ] udt_specialisations.cpp
28     {
29         result += [ run $(source) ] ;
30     }
31     return $(result) ;
32}
33
34test-suite type_traits : [ all-tests ] ;
35
36compile-fail common_type_fail.cpp ;
37
38
39
40