Last change
on this file since 29 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
967 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 that we can build a file (not target), by it's name |
---|
9 | from BoostBuild import Tester, List |
---|
10 | from string import find |
---|
11 | |
---|
12 | # Create a temporary working directory |
---|
13 | t = Tester() |
---|
14 | |
---|
15 | # Create the needed files |
---|
16 | t.write("Jamroot", """ |
---|
17 | exe hello : hello.cpp ; |
---|
18 | build-project sub ; |
---|
19 | """) |
---|
20 | t.write("hello.cpp", """ |
---|
21 | int main() |
---|
22 | { |
---|
23 | return 0; |
---|
24 | } |
---|
25 | """) |
---|
26 | t.write("sub/Jamfile", """ |
---|
27 | exe hello : hello.cpp ; |
---|
28 | exe sub : hello.cpp ; |
---|
29 | """) |
---|
30 | t.write("sub/hello.cpp", """ |
---|
31 | int main() |
---|
32 | { |
---|
33 | return 0; |
---|
34 | } |
---|
35 | """) |
---|
36 | |
---|
37 | |
---|
38 | t.run_build_system(t.adjust_suffix("hello.obj")) |
---|
39 | |
---|
40 | t.fail_test(find(t.stdout(), "depends on itself") != -1) |
---|
41 | t.expect_addition("bin/$toolset/debug/hello.obj") |
---|
42 | t.expect_addition("sub/bin/$toolset/debug/hello.obj") |
---|
43 | t.expect_nothing_more() |
---|
44 | |
---|
45 | # Remove temporary directories |
---|
46 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.