build_no.py 603 B

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