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:
1.2 KB
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) Vladimir Prus 2004. 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 | # This test tries to stage the same file to the same location by *two* |
---|
9 | # different stage rules, in two different projects. This is not exactly |
---|
10 | # good thing to do, but still, V2 should handle this. We had two bugs: |
---|
11 | # - since the file is referred from two projects, we created to different |
---|
12 | # virtual targets |
---|
13 | # - we also failed to figure out that the two target corresponding to the |
---|
14 | # copied files (created in two projects) are actually equivivalent. |
---|
15 | |
---|
16 | from BoostBuild import Tester, List |
---|
17 | |
---|
18 | |
---|
19 | t = Tester() |
---|
20 | |
---|
21 | t.write("a.cpp", """ |
---|
22 | """) |
---|
23 | |
---|
24 | t.write("Jamfile", """ |
---|
25 | build-project a ; |
---|
26 | build-project b ; |
---|
27 | """) |
---|
28 | |
---|
29 | t.write("project-root.jam", """ |
---|
30 | """) |
---|
31 | |
---|
32 | t.write("a/Jamfile", """ |
---|
33 | stage bin : ../a.cpp : <location>../dist ; |
---|
34 | """) |
---|
35 | |
---|
36 | t.write("b/Jamfile", """ |
---|
37 | stage bin : ../a.cpp : <location>../dist ; |
---|
38 | """) |
---|
39 | |
---|
40 | t.run_build_system() |
---|
41 | t.expect_addition("dist/a.cpp") |
---|
42 | |
---|
43 | |
---|
44 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.