]> git.lizzy.rs Git - rust.git/commit
tests: Add htmldocck.py script for the use of Rustdoc tests.
authorKang Seonghoon <public+git@mearie.org>
Sat, 17 Jan 2015 17:24:04 +0000 (02:24 +0900)
committerKang Seonghoon <public+git@mearie.org>
Sat, 17 Jan 2015 17:42:15 +0000 (02:42 +0900)
commitde6f520192d76151bf99f2250afac75da3f040d5
tree15d28c2412db0aed90cccd48bfb429e09ad66f45
parentee2bfae011e368e224d6d4f4c9fad13606ee99da
tests: Add htmldocck.py script for the use of Rustdoc tests.

The script is intended as a tool for doing every sort of verifications
amenable to Rustdoc's HTML output. For example, link checkers would go
to this script. It already parses HTML into a document tree form (with
a slight caveat), so future tests can make use of it.

As an example, relevant `rustdoc-*` run-make tests have been updated
to use `htmldocck.py` and got their `verify.sh` removed. In the future
they may go to a dedicated directory with htmldocck running by default.
The detailed explanation of test scripts is provided as a docstring of
htmldocck.

cc #19723
16 files changed:
mk/tests.mk
src/etc/htmldocck.py [new file with mode: 0644]
src/etc/maketest.py
src/test/run-make/rustdoc-hidden-line/Makefile
src/test/run-make/rustdoc-hidden-line/foo.rs
src/test/run-make/rustdoc-hidden-line/verify.sh [deleted file]
src/test/run-make/rustdoc-search-index/Makefile
src/test/run-make/rustdoc-search-index/index.rs
src/test/run-make/rustdoc-search-index/verify.sh [deleted file]
src/test/run-make/rustdoc-smoke/Makefile
src/test/run-make/rustdoc-smoke/foo.rs
src/test/run-make/rustdoc-smoke/verify.sh [deleted file]
src/test/run-make/rustdoc-where/Makefile
src/test/run-make/rustdoc-where/foo.rs
src/test/run-make/rustdoc-where/verify.sh [deleted file]
src/test/run-make/tools.mk