]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #!/usr/bin/python |
2 | ||
3 | # Copyright (C) Vladimir Prus 2006. | |
4 | # Distributed under the Boost Software License, Version 1.0. (See | |
1e59de90 TL |
5 | # accompanying file LICENSE.txt or copy at |
6 | # https://www.bfgroup.xyz/b2/LICENSE.txt) | |
7c673cae FG |
7 | |
8 | # Tests that <build>no property prevents a target from being built. | |
9 | ||
10 | import BoostBuild | |
11 | ||
12 | t = BoostBuild.Tester(use_test_config=False) | |
13 | ||
14 | t.write("jamroot.jam", "exe hello : hello.cpp : <variant>debug:<build>no ;") | |
15 | t.write("hello.cpp", "int main() {}\n") | |
16 | ||
17 | t.run_build_system() | |
18 | t.expect_nothing_more() | |
19 | ||
20 | t.run_build_system(["release"]) | |
b32b8144 | 21 | t.expect_addition("bin/$toolset/release*/hello.exe") |
7c673cae FG |
22 | |
23 | t.cleanup() |