Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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