Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/build_no.py @ 32

Last change on this file since 32 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 695 bytes
Line 
1#!/usr/bin/python
2
3#  Copyright (C) Vladimir Prus 2006.
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
8#  Tests that <build>no property prevents a target from being built.
9from BoostBuild import Tester, List
10import string
11
12
13# Create a temporary working directory
14t = Tester()
15
16# Create the needed files
17t.write("Jamroot", """
18exe hello : hello.cpp : <variant>debug:<build>no ;
19""")
20t.write("hello.cpp", """
21int main()
22{
23    return 0;
24}
25
26""")
27
28t.run_build_system()
29t.expect_nothing_more()
30
31t.run_build_system("release")
32t.expect_addition("bin/$toolset/release/hello.exe")
33
34
35t.cleanup()
Note: See TracBrowser for help on using the repository browser.