]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/using.py
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / test / using.py
1 #!/usr/bin/python
2
3 # Copyright (C) Vladimir Prus 2005.
4 # Distributed under the Boost Software License, Version 1.0. (See
5 # accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7
8 import BoostBuild
9
10 t = BoostBuild.Tester(use_test_config=False)
11
12 t.write("jamroot.jam", "using some_tool ;")
13 t.write("some_tool.jam", """\
14 import project ;
15 project.initialize $(__name__) ;
16 rule init ( ) { }
17 """)
18
19 t.write("some_tool.py", """\
20 from b2.manager import get_manager
21 get_manager().projects().initialize(__name__)
22 def init():
23 pass
24 """)
25
26 t.write("sub/a.cpp", "int main() {}\n")
27 t.write("sub/jamfile.jam", "exe a : a.cpp ;")
28
29 t.run_build_system(subdir="sub")
30 t.expect_addition("sub/bin/$toolset/debug*/a.exe")
31
32 t.cleanup()