]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/build_no.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / build_no.py
CommitLineData
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
10import BoostBuild
11
12t = BoostBuild.Tester(use_test_config=False)
13
14t.write("jamroot.jam", "exe hello : hello.cpp : <variant>debug:<build>no ;")
15t.write("hello.cpp", "int main() {}\n")
16
17t.run_build_system()
18t.expect_nothing_more()
19
20t.run_build_system(["release"])
b32b8144 21t.expect_addition("bin/$toolset/release*/hello.exe")
7c673cae
FG
22
23t.cleanup()