]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/build_no.py
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / test / build_no.py
1 #!/usr/bin/python
2
3 # Copyright (C) Vladimir Prus 2006.
4 # Distributed under the Boost Software License, Version 1.0. (See
5 # accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
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"])
21 t.expect_addition("bin/$toolset/release*/hello.exe")
22
23 t.cleanup()