Imported Upstream version 1.51.0
[platform/upstream/boost.git] / tools / build / v2 / test / boostbook.py
1 #!/usr/bin/python
2
3 # Copyright 2004, 2006 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6
7 import BoostBuild
8 import string
9
10 t = BoostBuild.Tester()
11
12 t.set_tree("boostbook")
13
14 # For some reason, the messages are sent to stderr.
15 t.run_build_system()
16 t.fail_test(string.find(t.stdout(), """Writing boost/A.html for refentry(boost.A)
17 Writing library/reference.html for section(library.reference)
18 Writing index.html for chapter(library)
19 Writing docs_HTML.manifest
20 """) == -1)
21 t.expect_addition(["html/boost/A.html", "html/index.html"])
22
23 t.cleanup()