]> git.lizzy.rs Git - rust.git/commit
Auto merge of #60387 - Goirad:test-expansion, r=ollie27
authorbors <bors@rust-lang.org>
Tue, 10 Sep 2019 12:19:41 +0000 (12:19 +0000)
committerbors <bors@rust-lang.org>
Tue, 10 Sep 2019 12:19:41 +0000 (12:19 +0000)
commit87b0c9036f0557568cfc939542508e9adf874b83
tree5bd936742cecfc3a4e52d2b62f334432789ff8c8
parent403c0def905c58f08e5a1ce48a430522df01abf1
parent4a2094c9f61836214d9e37fa042761948483c2d9
Auto merge of #60387 - Goirad:test-expansion, r=ollie27

Allow cross-compiling doctests

This PR allows doctest to receive a --runtool argument, as well as possibly many --runtool-arg arguments, which are then used to run cross compiled doctests.
Also, functionality has been added to rustdoc to allow it to skip testing doctests on a per-target basis, in the same way that compiletest does it. For example, tagging the doctest with "ignore-sgx" disables testing on any targets that contain "sgx". A plain "ignore" still skips testing on all targets.

See [here](https://github.com/rust-lang/cargo/pull/6892) for the companion PR in the cargo project that extends functionality in Cargo so that it passes the appropriate parameters to rustdoc when cross compiling and testing doctests.

Part of [#6460](https://github.com/rust-lang/cargo/issues/6460)
src/librustdoc/html/markdown.rs
src/librustdoc/lib.rs
src/librustdoc/passes/mod.rs
src/librustdoc/test.rs