]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 value | |
8 | # includes a colon. | |
9 | ||
10 | import BoostBuild | |
11 | ||
12 | t = BoostBuild.Tester(use_test_config=False) | |
13 | ||
14 | t.write("jamroot.jam", """ | |
15 | exe hello : hello.cpp : <variant>debug:<define>CLASS=Foo::Bar ; | |
16 | """) | |
17 | ||
18 | t.write("hello.cpp", """ | |
19 | namespace Foo { class Bar { } ; } | |
20 | int main() | |
21 | { | |
22 | CLASS c; | |
23 | c; // Disables the unused variable warning. | |
24 | } | |
25 | """) | |
26 | ||
27 | t.run_build_system(stdout=None, stderr=None) | |
28 | t.expect_addition("bin/$toolset/debug/hello.exe") | |
29 | ||
30 | t.cleanup() |