Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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