]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/expansion.py
3 # Copyright 2003 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
10 t
= BoostBuild
.Tester(use_test_config
=False)
30 t
.write("jamfile.jam", """
31 # See if default value of composite feature 'cf' will be expanded to
35 # See if subfeature in requirements in expanded.
36 exe b : b.cpp : <cf>on-1 ;
38 # See if conditional requirements are recursively expanded.
39 exe c : c.cpp : <toolset>$toolset:<variant>release <variant>release:<define>FOO
43 t
.write("jamroot.jam", """
45 feature.feature cf : off on : composite incidental ;
46 feature.compose <cf>off : <define>CF_IS_OFF ;
47 feature.subfeature cf on : version : 1 2 : composite optional incidental ;
48 feature.compose <cf-on:version>1 : <define>CF_1 ;
51 t
.expand_toolset("jamfile.jam")
54 t
.expect_addition(["bin/$toolset/debug/a.exe",
55 "bin/$toolset/debug/b.exe",
56 "bin/$toolset/release/c.exe"])
61 # Test for issue BB60.
63 t
.write("test.cpp", """
68 t
.write("jamfile.jam", """
69 project : requirements <toolset>$toolset:<include>foo ;
70 exe test : test.cpp : <toolset>$toolset ;
73 t
.expand_toolset("jamfile.jam")
74 t
.write("foo/header.h", "\n")
75 t
.write("jamroot.jam", "")
78 t
.expect_addition("bin/$toolset/debug/test.exe")