boostbook.py 642 B

1234567891011121314151617181920212223
  1. #!/usr/bin/python
  2. # Copyright 2004, 2006 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. import BoostBuild
  6. import string
  7. t = BoostBuild.Tester()
  8. t.set_tree("boostbook")
  9. # For some reason, the messages are sent to stderr.
  10. t.run_build_system()
  11. t.fail_test(t.stdout().find("""Writing boost/A.html for refentry(boost.A)
  12. Writing library/reference.html for section(library.reference)
  13. Writing index.html for chapter(library)
  14. Writing docs_HTML.manifest
  15. """) == -1)
  16. t.expect_addition(["html/boost/A.html", "html/index.html"])
  17. t.cleanup()