mirror of
https://github.com/boostorg/build.git
synced 2026-02-11 11:42:14 +00:00
34 lines
778 B
Python
34 lines
778 B
Python
#!/usr/bin/python
|
|
|
|
# Copyright 2003 Vladimir Prus
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
# Test that conditional properties work, even if property is free, and
|
|
# value includes colon.
|
|
from BoostBuild import Tester, List
|
|
|
|
|
|
t = Tester()
|
|
|
|
# Create the needed files
|
|
t.write("project-root.jam", "")
|
|
t.write("Jamfile", """
|
|
exe hello : hello.cpp : <variant>debug:<define>CLASS=Foo::Bar ;
|
|
""")
|
|
t.write("hello.cpp", """
|
|
namespace Foo { class Bar { } ; }
|
|
int main()
|
|
{
|
|
CLASS c;
|
|
return 0;
|
|
}
|
|
|
|
""")
|
|
|
|
# Don't check stderr, which can include warning about unused 'c'.
|
|
t.run_build_system(stdout=None, stderr=None)
|
|
t.expect_addition("bin/$toolset/debug/hello.exe")
|
|
|
|
t.cleanup()
|