]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/out_of_tree.py
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)
8 # Tests that we can build a project when the current directory is outside of
9 # that project tree, that is 'bjam some_dir' works.
13 # Create a temporary working directory.
14 t
= BoostBuild
.Tester(use_test_config
=False)
16 # Create the needed files.
17 t
.write("p1/jamroot.jam", "exe hello : hello.cpp ;")
18 t
.write("p1/hello.cpp", "int main() {}\n")
19 t
.write("p2/jamroot.jam", """\
20 exe hello2 : hello.cpp ;
21 exe hello3 : hello.cpp ;
23 t
.write("p2/hello.cpp", "int main() {}\n")
25 t
.run_build_system(["p1", "p2//hello3"])
26 t
.expect_addition("p1/bin/$toolset/debug*/hello.exe")
27 t
.expect_addition("p2/bin/$toolset/debug*/hello3.exe")