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)
9 t = BoostBuild.Tester()
12 # Regression tests: standalone project were not able to refer to targets
13 # declared in themselves.
19 t.write("jamroot.jam", """
23 t.write("standalone.jam", """
26 project.initialize $(__name__) ;
31 alias x : $(pwd)/../a.cpp ;
35 t.write("standalone.py", """
36 from b2.manager import get_manager
38 # FIXME: this is ugly as death
39 get_manager().projects().initialize(__name__)
43 # This use of list as parameter is also ugly.
44 project(['standalone'])
47 alias('x', [os.path.join(pwd, '../a.cpp')])
48 alias('runtime', ['x'])
52 t.write("sub/jamfile.jam", """
53 stage bin : /standalone//runtime ;
56 t.run_build_system(subdir="sub")
57 t.expect_addition("sub/bin/a.cpp")