always.py 810 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/python
  2. # Copyright 2016 Steven Watanabe
  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. import BoostBuild
  6. t = BoostBuild.Tester(use_test_config=False)
  7. t.write("main.cpp", """\
  8. int main() {}
  9. """)
  10. t.write("Jamroot", """\
  11. exe test : main.cpp ;
  12. always test ;
  13. """)
  14. t.run_build_system()
  15. t.expect_addition("bin/$toolset/debug*/main.obj")
  16. t.ignore_addition('bin/*/main.*.rsp')
  17. t.expect_addition("bin/$toolset/debug*/test.exe")
  18. t.ignore_addition('bin/*/test.rsp')
  19. t.expect_nothing_more()
  20. t.run_build_system()
  21. t.expect_touch("bin/$toolset/debug*/main.obj")
  22. t.ignore_touch('bin/*/main.*.rsp')
  23. t.expect_touch("bin/$toolset/debug*/test.exe")
  24. t.ignore_touch('bin/*/test.rsp')
  25. t.expect_nothing_more()
  26. t.cleanup()