Last change
on this file since 12 was
12,
checked in by landauf, 17 years ago
|
added boost
|
-
Property svn:executable set to
*
|
File size:
928 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and |
---|
4 | # distribute this software is granted provided this copyright notice appears in |
---|
5 | # all copies. This software is provided "as is" without express or implied |
---|
6 | # warranty, and with no claim as to its suitability for any purpose. |
---|
7 | |
---|
8 | |
---|
9 | from BoostBuild import Tester, List |
---|
10 | |
---|
11 | t = Tester() |
---|
12 | |
---|
13 | # Regression tests: standalone project were not able to refer to targets |
---|
14 | # declared in themselfs! |
---|
15 | |
---|
16 | t.write("a.cpp", """ |
---|
17 | int main() |
---|
18 | { |
---|
19 | return 0; |
---|
20 | } |
---|
21 | |
---|
22 | """) |
---|
23 | |
---|
24 | t.write("project-root.jam", """ |
---|
25 | import standalone ; |
---|
26 | """) |
---|
27 | |
---|
28 | t.write("standalone.jam", """ |
---|
29 | import project ; |
---|
30 | |
---|
31 | project.initialize $(__name__) ; |
---|
32 | project standalone ; |
---|
33 | |
---|
34 | local pwd = [ PWD ] ; |
---|
35 | |
---|
36 | alias x : $(pwd)/../a.cpp ; |
---|
37 | alias runtime : x ; |
---|
38 | |
---|
39 | """) |
---|
40 | |
---|
41 | t.write("sub/Jamfile", """ |
---|
42 | stage bin : /standalone//runtime ; |
---|
43 | """) |
---|
44 | |
---|
45 | t.run_build_system(subdir="sub") |
---|
46 | t.expect_addition("sub/bin/a.cpp") |
---|
47 | t.cleanup() |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.