test2.py 640 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/python
  2. # Copyright 2002, 2003 Dave Abrahams
  3. # Copyright 2002, 2003 Vladimir Prus
  4. # Distributed under the Boost Software License, Version 1.0.
  5. # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
  6. import BoostBuild
  7. t = BoostBuild.Tester()
  8. t.set_tree("test2")
  9. file_list = 'bin/$toolset/debug*/' * \
  10. BoostBuild.List("foo.exe foo.obj")
  11. t.run_build_system(["-sBOOST_BUILD_PATH=" + t.original_workdir + "/.."])
  12. t.expect_addition(file_list)
  13. t.write("foo.cpp", "int main() {}\n")
  14. t.run_build_system(["-d2", "-sBOOST_BUILD_PATH=" + t.original_workdir + "/.."])
  15. t.expect_touch(file_list)
  16. t.cleanup()