Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/conditionals3.py @ 29

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

updated boost from 1_33_1 to 1_34_1

File size: 778 bytes
Line 
1#!/usr/bin/python
2
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)
6
7#  Test that conditional properties work, even if property is free, and
8#  value includes colon.
9from BoostBuild import Tester, List
10
11
12t = Tester()
13
14# Create the needed files
15t.write("project-root.jam", "")
16t.write("Jamfile", """
17exe hello : hello.cpp : <variant>debug:<define>CLASS=Foo::Bar ;
18""")
19t.write("hello.cpp", """
20namespace Foo { class Bar { } ; }
21int main()
22{
23    CLASS c;
24    return 0;
25}
26
27""")
28
29# Don't check stderr, which can include warning about unused 'c'.
30t.run_build_system(stdout=None, stderr=None)
31t.expect_addition("bin/$toolset/debug/hello.exe")
32
33t.cleanup()
Note: See TracBrowser for help on using the repository browser.