skipping.py 682 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. # Copyright 2003 Vladimir Prus
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
  5. # Test that V2 does not fail gracelessy when any target is skipped.
  6. import BoostBuild
  7. # Create a temporary working directory.
  8. t = BoostBuild.Tester(use_test_config=False)
  9. t.write("a.cpp", "int main() {}\n")
  10. t.write("b.cpp", "int main() {}\n")
  11. t.write("c.cpp", "int main() {}\n")
  12. t.write("jamroot.jam", """\
  13. import feature ;
  14. feature.feature foo : 1 2 : link-incompatible ;
  15. exe a : a.cpp : <foo>1 ;
  16. exe b : b.cpp : <foo>2 ;
  17. exe c : c.cpp ;
  18. """)
  19. t.run_build_system(["foo=1"])
  20. t.cleanup()