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 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"]) 21t.expect_addition("bin/$toolset/release*/hello.exe") 22 23t.cleanup() 24