]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/dependency_property.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / test / dependency_property.py
1 #!/usr/bin/python
2
3 # Copyright 2003 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6
7 # Regression test: virtual targets with different dependency properties were
8 # considered different by 'virtual-target.register', but the code which
9 # determined the actual target paths ignored dependency properties so both
10 # targets ended up being in the same location.
11
12 import BoostBuild
13
14
15 t = BoostBuild.Tester()
16
17 t.write("jamroot.jam", """\
18 lib foo : foo.cpp ;
19 exe hello : hello.cpp ;
20 exe hello2 : hello.cpp : <library>foo ;
21 """)
22
23 t.write("hello.cpp", "int main() {}\n")
24
25 t.write("foo.cpp", """\
26 #ifdef _WIN32
27 __declspec(dllexport)
28 #endif
29 void foo() {}
30 """)
31
32 t.run_build_system(["--no-error-backtrace"], status=1)
33 output = t.stdout()
34 t.fail_test(
35 "Tried to build the target twice" not in output and
36 "Duplicate name of actual target" not in output
37 )
38
39 t.cleanup()