Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/wrong_project.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: 833 bytes
Line 
1#!/usr/bin/python
2
3# Copyright Vladimir Prus 2005.
4# Distributed under the Boost Software License, Version 1.0.
5# (See accompanying file LICENSE_1_0.txt
6# or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8# Regression test. When Jamfile contained "using whatever ; " and the
9# 'whatever' module declared a project, then all targets in Jamfile were
10# considered to be declared in the project associated with 'whatever',
11# not with the Jamfile.
12
13from BoostBuild import Tester, List
14
15
16t = Tester()
17# Remove temporary directories
18
19t.write("a.cpp", """
20int main() { return 0; }
21
22""")
23
24t.write("Jamroot", """
25using some_tool ;
26exe a : a.cpp ;
27""")
28
29t.write("some_tool.jam", """
30import project ;
31project.initialize $(__name__) ;
32
33rule init ( )
34{
35}
36
37""")
38
39t.run_build_system()
40t.expect_addition("bin/$toolset/debug/a.exe")
41
42t.cleanup()
43
Note: See TracBrowser for help on using the repository browser.