]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/ordered_properties.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / test / ordered_properties.py
1 #!/usr/bin/python
2
3 # Copyright 2004 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 # This checks that Boost.Build does not reorder <include> properties
8 # lexicographically.
9
10 import BoostBuild
11
12 t = BoostBuild.Tester()
13
14 t.write("a.cpp", """
15 #include <a.h>
16 int main() { foo(); }
17 """)
18
19 t.write("jamroot.jam", """
20 exe a : a.cpp : <include>d2 <include>d1 ;
21 """)
22
23 t.write("d1/a.h", """
24 """)
25
26 t.write("d2/a.h", """
27 inline void foo() {}
28 """)
29
30 t.run_build_system()
31 t.expect_addition("bin/$toolset/debug/a.exe")
32
33 t.cleanup()