summaryrefslogtreecommitdiff
path: root/tools/build/test/property_expansion.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/test/property_expansion.py')
-rw-r--r--tools/build/test/property_expansion.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/build/test/property_expansion.py b/tools/build/test/property_expansion.py
new file mode 100644
index 0000000000..53fc13616e
--- /dev/null
+++ b/tools/build/test/property_expansion.py
@@ -0,0 +1,28 @@
+#!/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 free property inside.
+
+import BoostBuild
+
+t = BoostBuild.Tester(use_test_config=False)
+
+t.write("jamroot.jam", """\
+variant debug-AA : debug : <define>AA ;
+alias all : hello ;
+exe hello : hello.cpp ;
+explicit hello ;
+""")
+
+t.write("hello.cpp", """\
+#ifdef AA
+int main() {}
+#endif
+""")
+
+t.run_build_system(["debug-AA"])
+
+t.cleanup()