]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/resolution.py
3 # Copyright (C) Vladimir Prus 2006.
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 # Tests for the target id resolution process.
12 # Create a temporary working directory.
13 t
= BoostBuild
.Tester(use_test_config
=False)
15 # Create the needed files
16 t
.write("jamroot.jam", """\
17 exe hello : hello.cpp ;
18 # This should use the 'hello' target, even if there is a 'hello' file in the
20 install s : hello : <location>. ;
23 t
.write("hello.cpp", "int main() {}\n")
27 t
.expect_addition("bin/$toolset/debug/hello.obj")
30 t
.run_build_system(["s"])
31 # If 'hello' in the 's' target resolved to file in the current dir, nothing
33 t
.expect_touch("bin/$toolset/debug/hello.obj")