Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/tr1/test/Jamfile.v2 @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.3 KB
Line 
1# Copyright John Maddock 2005.
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
6project :
7    : requirements
8    ;
9   
10local TR1_PROPERTIES =
11    <include>$(BOOST_ROOT)/boost/tr1/tr1
12    # Borland's broken include mechanism needs these extra headers:
13    <toolset>borland:<include>$(BOOST_ROOT)/boost/tr1/tr1/bcc32
14    # Sunpro's broken include mechanism needs these extra headers:
15    <include>$(BOOST_ROOT)/boost/tr1/tr1/sun
16    ;
17
18
19#
20# define the sources which need testing, mostly this is just
21# all the files *_test.cpp, but any badly named examples can
22# be added to this list :-)
23#
24
25# this rule enumerates through all the sources and invokes
26# the run rule for each source, the result is a list of all
27# the run rules, which we can pass on to the test_suite rule:
28rule test_all
29{
30   #ECHO executing test_all rule ;
31   local all_rules = ;
32   for local file in [ glob test*.cpp ]
33   {
34      all_rules += [ compile $(file) ] ;
35      all_rules += [ compile $(file)
36         : <define>TEST_STD_HEADERS=1 $(TR1_PROPERTIES) : std_$(file:B) ] ;
37   }
38   for local fileb in [ glob run*.cpp ]
39   {
40      all_rules += [ run $(fileb) ] ;
41      all_rules += [ run $(fileb)
42      :  # additional args
43      :  # test-files
44      :  # requirements
45                <define>TEST_STD_HEADERS=1 $(TR1_PROPERTIES) : std_$(fileb:B)  ] ;
46   }
47   for local file2 in [ glob config/tr1_has_tr1*fail.cpp ]
48   {
49      local test = [ compile-fail $(file2) ] ;
50      all_rules += $(test) ;
51   }
52   for local filec in [ glob config/tr1_has_tr1*pass.cpp ]
53   {
54      local test = [ compile $(filec) ] ;
55      all_rules += $(test) ;
56   }
57   
58   for local file3 in [ glob type_traits/*.cpp ]
59   {
60      all_rules += [ run $(file3)
61      :  # additional args
62      :  # test-files
63      :  # requirements
64      <include>$(BOOST_ROOT)/libs/type_traits/test
65      <define>TEST_STD=1 $(TR1_PROPERTIES) ] ;
66   }
67# Commented due to conflict between test_complex in this dir
68# and in std_headers.
69   for local file5 in [ glob std_headers/*.cpp ]
70   {
71      all_rules += [ compile $(file5)
72      :   <define>TEST_STD=1 $(TR1_PROPERTIES)
73      :   $(file5:B)_std_header
74      ] ;
75   }
76   #ECHO $(all_rules) ;
77   return $(all_rules) ;
78}
79
80test-suite tr1 : [ test_all r ] ;
81
82
83
84
85
86
87
88
89
90
Note: See TracBrowser for help on using the repository browser.