Add tested item in the rustdoc --test output

This commit is contained in:
Guillaume Gomez 2017-02-11 16:36:31 +01:00
parent bae454edc5
commit c951ed7fb6
3 changed files with 17 additions and 9 deletions

View file

@ -4,4 +4,4 @@ all: foo.rs
$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs
$(HOST_RPATH_ENV) '$(RUSTDOC)' --test --cfg 'feature="bar"' \
-L $(TMPDIR) foo.rs |\
grep -q 'foo.rs - line 11 ... ok'
grep -q 'foo.rs - foo (line 11) ... ok'