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)
10 local 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
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 :-)
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:
30 #ECHO executing test_all rule ;
32 for local file in [ glob test*.cpp ]
34 all_rules += [ compile $(file) ] ;
35 all_rules += [ compile $(file)
36 : <define>TEST_STD_HEADERS=1 $(TR1_PROPERTIES) : std_$(file:B) ] ;
38 for local fileb in [ glob run*.cpp ]
40 all_rules += [ run $(fileb) ] ;
41 all_rules += [ run $(fileb)
45 <define>TEST_STD_HEADERS=1 $(TR1_PROPERTIES) : std_$(fileb:B) ] ;
47 for local file2 in [ glob config/tr1_has_tr1*fail.cpp ]
49 all_rules += [ compile-fail $(file2) ] ;
51 for local filec in [ glob config/tr1_has_tr1*pass.cpp ]
53 all_rules += [ compile $(filec) ] ;
56 for local file3 in [ glob type_traits/*.cpp ]
58 all_rules += [ run $(file3)
62 <include>$(BOOST_ROOT)/libs/type_traits/test
63 <define>TEST_STD=2005 $(TR1_PROPERTIES) ] ;
65 # Commented due to conflict between test_complex in this dir
67 for local file5 in [ glob std_headers/*.cpp ]
69 all_rules += [ compile $(file5)
70 : <define>TEST_STD=2005 $(TR1_PROPERTIES)
71 : $(file5:B)_std_header
74 for local file6 in [ glob cyclic_depend/*.cpp ]
76 all_rules += [ compile $(file6)
84 test-suite tr1 : [ test_all r ] ;