]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/conditionals3.py
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / boost / tools / build / test / conditionals3.py
CommitLineData
7c673cae
FG
1#!/usr/bin/python
2
3# Copyright 2003 Vladimir Prus
4# Distributed under the Boost Software License, Version 1.0.
1e59de90 5# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
6
7# Test that conditional properties work, even if property is free, and value
8# includes a colon.
9
10import BoostBuild
11
12t = BoostBuild.Tester(use_test_config=False)
13
14t.write("jamroot.jam", """
11fdf7f2 15exe hello : hello.cpp : <variant>debug:<define>"CLASS=Foo::Bar" ;
7c673cae
FG
16""")
17
18t.write("hello.cpp", """
19namespace Foo { class Bar { } ; }
20int main()
21{
22 CLASS c;
23 c; // Disables the unused variable warning.
24}
25""")
26
27t.run_build_system(stdout=None, stderr=None)
b32b8144 28t.expect_addition("bin/$toolset/debug*/hello.exe")
7c673cae
FG
29
30t.cleanup()