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. |
---|
9 | from BoostBuild import Tester, List |
---|
10 | |
---|
11 | |
---|
12 | t = Tester() |
---|
13 | |
---|
14 | # Create the needed files |
---|
15 | t.write("project-root.jam", "") |
---|
16 | t.write("Jamfile", """ |
---|
17 | exe hello : hello.cpp : <variant>debug:<define>CLASS=Foo::Bar ; |
---|
18 | """) |
---|
19 | t.write("hello.cpp", """ |
---|
20 | namespace Foo { class Bar { } ; } |
---|
21 | int main() |
---|
22 | { |
---|
23 | CLASS c; |
---|
24 | return 0; |
---|
25 | } |
---|
26 | |
---|
27 | """) |
---|
28 | |
---|
29 | # Don't check stderr, which can include warning about unused 'c'. |
---|
30 | t.run_build_system(stdout=None, stderr=None) |
---|
31 | t.expect_addition("bin/$toolset/debug/hello.exe") |
---|
32 | |
---|
33 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.