Last change
on this file since 12 was
12,
checked in by landauf, 18 years ago
|
added boost
|
-
Property svn:executable set to
*
|
File size:
1.6 KB
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | # Tests that we can use objects from other projects |
---|
3 | # (i.e. with other project root) |
---|
4 | # Test also that we can refer to those target using project-id. |
---|
5 | |
---|
6 | from BoostBuild import Tester, List |
---|
7 | |
---|
8 | t = Tester() |
---|
9 | t.set_tree("test1") |
---|
10 | |
---|
11 | t.run_build_system("-sTOOLSET=yfc", subdir="p1") |
---|
12 | |
---|
13 | t.expect_addition("p1/bin/a.obj/yfc/debug/runtime-link-dynamic/a.obj") |
---|
14 | t.expect_addition("p1/auxillary/bin/b.obj/yfc/debug/runtime-link-dynamic/optimization-space/b.obj") |
---|
15 | t.expect_addition("p2/bin/c.obj/yfc/debug/runtime-link-dynamic/c.obj") |
---|
16 | t.expect_addition("bin/a/yfc/debug/runtime-link-dynamic/a") |
---|
17 | t.expect_nothing_more() |
---|
18 | |
---|
19 | t.fail(t.read("p1/bin/a.obj/yfc/debug/runtime-link-dynamic/a.obj") !=\ |
---|
20 | """ |
---|
21 | <optimization>off <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug |
---|
22 | a.cpp |
---|
23 | """) |
---|
24 | |
---|
25 | t.fail(t.read("p1/auxillary/bin/b.obj/yfc/debug/runtime-link-dynamic/b.obj") !=\ |
---|
26 | """ |
---|
27 | <optimization>space <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug |
---|
28 | b.cpp |
---|
29 | """) |
---|
30 | |
---|
31 | t.fail(t.read("p2/bin/c.obj/yfc/debug/runtime-link-dynamic/c.obj") !=\ |
---|
32 | """ |
---|
33 | <include>everything <optimization>off <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug |
---|
34 | a.cpp |
---|
35 | """) |
---|
36 | |
---|
37 | |
---|
38 | t.fail(t.read("bin/a/yfc/debug/runtime-link-dynamic/a") !=\ |
---|
39 | """ |
---|
40 | <optimization>off <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug |
---|
41 | <optimization>off <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug |
---|
42 | a.cpp |
---|
43 | <optimization>space <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug |
---|
44 | b.cpp |
---|
45 | <include>everything <optimization>space <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug |
---|
46 | c.cpp |
---|
47 | """) |
---|
48 | |
---|
49 | t.expect_nothing_more() |
---|
50 | |
---|
51 | # TODO: need to write test cases for referring to targets using project-id. |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | t.pass_test() |
---|
56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.