Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/m1-03.py @ 12

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
6from BoostBuild import Tester, List
7
8t = Tester()
9t.set_tree("test1")
10
11t.run_build_system("-sTOOLSET=yfc", subdir="p1")
12
13t.expect_addition("p1/bin/a.obj/yfc/debug/runtime-link-dynamic/a.obj")
14t.expect_addition("p1/auxillary/bin/b.obj/yfc/debug/runtime-link-dynamic/optimization-space/b.obj")
15t.expect_addition("p2/bin/c.obj/yfc/debug/runtime-link-dynamic/c.obj")
16t.expect_addition("bin/a/yfc/debug/runtime-link-dynamic/a")
17t.expect_nothing_more()
18
19t.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
22a.cpp
23""")
24
25t.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
28b.cpp
29""")
30
31t.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
34a.cpp
35""")
36
37
38t.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
42a.cpp
43<optimization>space <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug
44b.cpp
45<include>everything <optimization>space <rtti>on <runtime-link>dynamic <toolset>yfc <variant>debug
46c.cpp
47""")
48
49t.expect_nothing_more()
50
51# TODO: need to write test cases for referring to targets using project-id.
52
53
54
55t.pass_test()
56
Note: See TracBrowser for help on using the repository browser.