Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/standalone.py @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

  • Property svn:executable set to *
File size: 928 bytes
Line 
1#!/usr/bin/python
2
3#  Copyright (C) Vladimir Prus 2003. 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
9from BoostBuild import Tester, List
10
11t = Tester()
12
13# Regression tests: standalone project were not able to refer to targets
14# declared in themselfs!
15
16t.write("a.cpp", """
17int main()
18{
19    return 0;
20}
21
22""")
23
24t.write("project-root.jam", """
25import standalone ;
26""")
27
28t.write("standalone.jam", """
29import project ;
30
31project.initialize $(__name__) ;
32project standalone ;
33
34local pwd = [ PWD ] ;
35
36alias x : $(pwd)/../a.cpp ;
37alias runtime : x ;
38
39""")
40
41t.write("sub/Jamfile", """
42stage bin : /standalone//runtime ;
43""")
44
45t.run_build_system(subdir="sub")
46t.expect_addition("sub/bin/a.cpp")
47t.cleanup()
48
Note: See TracBrowser for help on using the repository browser.