]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/using.py
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / test / using.py
CommitLineData
7c673cae
FG
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
8import BoostBuild
9
10t = BoostBuild.Tester(use_test_config=False)
11
12t.write("jamroot.jam", "using some_tool ;")
13t.write("some_tool.jam", """\
14import project ;
15project.initialize $(__name__) ;
16rule init ( ) { }
17""")
18
19t.write("some_tool.py", """\
20from b2.manager import get_manager
21get_manager().projects().initialize(__name__)
22def init():
23 pass
24""")
25
26t.write("sub/a.cpp", "int main() {}\n")
27t.write("sub/jamfile.jam", "exe a : a.cpp ;")
28
29t.run_build_system(subdir="sub")
b32b8144 30t.expect_addition("sub/bin/$toolset/debug*/a.exe")
7c673cae
FG
31
32t.cleanup()