Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/duplicate.py @ 32

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
16from BoostBuild import Tester, List
17
18
19t = Tester()
20
21t.write("a.cpp", """
22""")
23
24t.write("Jamfile", """
25build-project a ;
26build-project b ;
27""")
28
29t.write("project-root.jam", """
30""")
31
32t.write("a/Jamfile", """
33stage bin : ../a.cpp : <location>../dist ;
34""")
35
36t.write("b/Jamfile", """
37stage bin : ../a.cpp : <location>../dist ;
38""")
39
40t.run_build_system()
41t.expect_addition("dist/a.cpp")
42
43
44t.cleanup()
Note: See TracBrowser for help on using the repository browser.