]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/typeof/test/Jamfile.v2
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / typeof / test / Jamfile.v2
1 # Copyright (C) 2006 Vladimir Prus
2 # Copyright (C) 2006 Arkadiy Vertleyb
3 # Use, modification and distribution is subject to the Boost Software
4 # License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
5
6 # Boost Typeof Library test Jamfile
7
8 import testing ;
9 import set ;
10
11 # The special requirement is not ported yet.
12 #
13 #local rule special-requirements ( toolset variant : properties * )
14 #{
15 # # Tru64/CXX6.5 hangs on most tests, so just turn it off completely.
16 #
17 # if $(UNIX) && $(OS) = OSF
18 # {
19 # switch $(toolset)
20 # {
21 # case tru64cxx65* : properties =
22 # [ replace-properties $(properties) : <build>no ] ;
23 # }
24 # }
25 #
26 # return $(properties) ;
27 #}
28
29 rule typeof-test ( source )
30 {
31 return [ compile $(source) : <define>BOOST_TYPEOF_NATIVE :
32 $(source:B)_native ]
33 [ compile $(source) : <define>BOOST_TYPEOF_EMULATION :
34 $(source:B)_emulation ]
35 ;
36 }
37
38 rule all-tests ( )
39 {
40 local all ;
41 # for local t in [ set.difference [ glob *.cpp ] : odr1.cpp odr2.cpp ]
42 for local t in [ set.difference [ glob *.cpp ] : [ glob odr*.cpp ] ]
43 {
44 all += [ typeof-test $(t) ] ;
45 }
46 all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_NATIVE :
47 odr_native ] ;
48 all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
49 odr_emulation ] ;
50 all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
51 odr_no_uns ] ;
52 return $(all) ;
53 }
54
55 test-suite "typeof"
56 : [ all-tests ]
57 ;