Last change
on this file since 32 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
876 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) Vladimir Prus 2006. |
---|
4 | # Distributed under the Boost Software License, Version 1.0. (See |
---|
5 | # accompanying file LICENSE_1_0.txt or copy at |
---|
6 | # http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | # Tests for the target id resolution process. |
---|
9 | from BoostBuild import Tester, List |
---|
10 | |
---|
11 | # Create a temporary working directory |
---|
12 | t = Tester() |
---|
13 | |
---|
14 | # Create the needed files |
---|
15 | t.write("Jamroot", """ |
---|
16 | exe hello : hello.cpp ; |
---|
17 | # This should use the 'hello' target, even if there's |
---|
18 | # 'hello' file in current dir. |
---|
19 | install s : hello : <location>. ; |
---|
20 | """) |
---|
21 | t.write("hello.cpp", """ |
---|
22 | int main() |
---|
23 | { |
---|
24 | return 0; |
---|
25 | } |
---|
26 | """) |
---|
27 | |
---|
28 | t.run_build_system() |
---|
29 | |
---|
30 | t.expect_addition("bin/$toolset/debug/hello.obj") |
---|
31 | |
---|
32 | t.touch("hello.cpp") |
---|
33 | t.run_build_system("s") |
---|
34 | # If 'hello' in the 's' target resolved to file in |
---|
35 | # current dir, nothing will be rebuilt. |
---|
36 | t.expect_touch("bin/$toolset/debug/hello.obj") |
---|
37 | |
---|
38 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.