diff options
Diffstat (limited to 'tools/build/v2/test/default_features.py')
-rw-r--r-- | tools/build/v2/test/default_features.py | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tools/build/v2/test/default_features.py b/tools/build/v2/test/default_features.py deleted file mode 100644 index 4d810caa71..0000000000 --- a/tools/build/v2/test/default_features.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/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 features with default values are always present in build properties -# of any target. - -import BoostBuild - -t = BoostBuild.Tester() - -# Declare *non-propagated* feature foo. -t.write("jamroot.jam", """ -import feature : feature ; -feature foo : on off ; -""") - -# Note that '<foo>on' will not be propagated to 'd/l'. -t.write("jamfile.jam", """ -exe hello : hello.cpp d//l ; -""") - -t.write("hello.cpp", """ -#ifdef _WIN32 -__declspec(dllimport) -#endif -void foo(); -int main() { foo(); } -""") - -t.write("d/jamfile.jam", """ -lib l : l.cpp : <foo>on:<define>FOO ; -""") - -t.write("d/l.cpp", """ -#ifdef _WIN32 -__declspec(dllexport) -#endif -#ifdef FOO -void foo() {} -#endif -""") - -t.run_build_system() - -t.expect_addition("bin/$toolset/debug/hello.exe") - -t.cleanup() |