Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added boost

  • Property svn:executable set to *
File size: 958 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#  This file is template for Boost.Build tests. It creates a simple
9#  project that builds one exe from one source, and checks that the exe
10#  is really created.
11from BoostBuild import Tester, List
12
13t = Tester()
14
15t.write("project-root.jam", "")
16t.write("Jamfile", """
17
18exe hello : hello.cpp ;
19exe hello2 : hello.cpp ;
20
21explicit hello2 ;
22""")
23t.write("hello.cpp", """
24int main()
25{
26    return 0;
27}
28
29""")
30
31t.run_build_system()
32t.ignore("*.tds")
33t.expect_addition(List("bin/$toolset/debug/hello") * [".exe", ".obj"])
34t.expect_nothing_more()
35
36t.run_build_system("hello2")
37t.expect_addition("bin/$toolset/debug/hello2.exe")
38
39
40t.cleanup()
Note: See TracBrowser for help on using the repository browser.