summaryrefslogtreecommitdiff
path: root/tools/build/v2/test/composite.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/v2/test/composite.py')
-rw-r--r--tools/build/v2/test/composite.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/build/v2/test/composite.py b/tools/build/v2/test/composite.py
new file mode 100644
index 0000000000..ca3fb3272c
--- /dev/null
+++ b/tools/build/v2/test/composite.py
@@ -0,0 +1,25 @@
+#!/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 composite properties are handled correctly.
+
+import BoostBuild
+
+t = BoostBuild.Tester()
+
+t.write("jamroot.jam", """
+exe hello : hello.cpp : <variant>release ;
+""")
+
+t.write("hello.cpp", """
+int main() {}
+""")
+
+t.run_build_system()
+
+t.expect_addition("bin/$toolset/release/hello.exe")
+
+t.cleanup()