]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/resolution.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / resolution.py
CommitLineData
7c673cae
FG
1#!/usr/bin/python
2
3# Copyright (C) Vladimir Prus 2006.
4# Distributed under the Boost Software License, Version 1.0.
1e59de90
TL
5# (See accompanying file LICENSE.txt or copy at
6# https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
7
8# Tests for the target id resolution process.
9
10import BoostBuild
11
12# Create a temporary working directory.
13t = BoostBuild.Tester(use_test_config=False)
14
15# Create the needed files
16t.write("jamroot.jam", """\
17exe hello : hello.cpp ;
18# This should use the 'hello' target, even if there is a 'hello' file in the
19# current dir.
20install s : hello : <location>. ;
21""")
22
23t.write("hello.cpp", "int main() {}\n")
24
25t.run_build_system()
26
b32b8144 27t.expect_addition("bin/$toolset/debug*/hello.obj")
7c673cae
FG
28
29t.touch("hello.cpp")
30t.run_build_system(["s"])
31# If 'hello' in the 's' target resolved to file in the current dir, nothing
32# will be rebuilt.
b32b8144 33t.expect_touch("bin/$toolset/debug*/hello.obj")
7c673cae
FG
34
35t.cleanup()