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:
798 bytes
|
Line | |
---|
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 | from BoostBuild import Tester, List |
---|
8 | |
---|
9 | t = Tester() |
---|
10 | |
---|
11 | # Regression tests: standalone project were not able to refer to targets |
---|
12 | # declared in themselfs! |
---|
13 | |
---|
14 | t.write("a.cpp", """ |
---|
15 | int main() |
---|
16 | { |
---|
17 | return 0; |
---|
18 | } |
---|
19 | |
---|
20 | """) |
---|
21 | |
---|
22 | t.write("project-root.jam", """ |
---|
23 | import standalone ; |
---|
24 | """) |
---|
25 | |
---|
26 | t.write("standalone.jam", """ |
---|
27 | import project ; |
---|
28 | |
---|
29 | project.initialize $(__name__) ; |
---|
30 | project standalone ; |
---|
31 | |
---|
32 | local pwd = [ PWD ] ; |
---|
33 | |
---|
34 | alias x : $(pwd)/../a.cpp ; |
---|
35 | alias runtime : x ; |
---|
36 | |
---|
37 | """) |
---|
38 | |
---|
39 | t.write("sub/Jamfile", """ |
---|
40 | stage bin : /standalone//runtime ; |
---|
41 | """) |
---|
42 | |
---|
43 | t.run_build_system(subdir="sub") |
---|
44 | t.expect_addition("sub/bin/a.cpp") |
---|
45 | t.cleanup() |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.