Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/m1-03.py @ 29

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