]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/wrong_project.py
3 # Copyright Vladimir Prus 2005.
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
8 # Regression test. When Jamfile contained "using whatever ; " and the 'whatever'
9 # module declared a project, then all targets in Jamfile were considered to be
10 # declared in the project associated with 'whatever', not with the Jamfile.
14 t
= BoostBuild
.Tester(use_test_config
=False)
16 t
.write("a.cpp", "int main() {}\n")
18 t
.write("jamroot.jam", """\
23 t
.write("some_tool.jam", """\
25 project.initialize $(__name__) ;
29 t
.write("some_tool.py", """\
30 from b2.manager import get_manager
31 get_manager().projects().initialize(__name__)
37 t
.expect_addition("bin/$toolset/debug*/a.exe")