]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
f67539c2 | 7 | # This checks that B2 does not reorder <include> properties |
7c673cae FG |
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() | |
b32b8144 | 31 | t.expect_addition("bin/$toolset/debug*/a.exe") |
7c673cae FG |
32 | |
33 | t.cleanup() |