forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto merge of rust-lang#11032 : cmr/rust/rustdoc_test, r=alexcrichton
This is just a smoke test which verifies that the expected files are generated.
- Loading branch information
Showing
6 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-include ../tools.mk | ||
all: | ||
$(RUSTDOC) -w html -o $(TMPDIR)/doc foo.rs | ||
cp verify.sh $(TMPDIR) | ||
$(call RUN,verify.sh) $(TMPDIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#[pkgid = "foo#0.1"]; | ||
|
||
//! Very docs | ||
pub mod bar { | ||
|
||
/// So correct | ||
pub mod baz { | ||
/// Much detail | ||
pub fn baz() { } | ||
} | ||
|
||
/// *wow* | ||
pub trait Doge { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
# $1 is the TMPDIR | ||
|
||
dirs="doc doc/foo doc/foo/bar doc/foo/bar/baz doc/src doc/src/foo" | ||
|
||
for dir in $dirs; do if [ ! -d $1/$dir ]; then | ||
echo "$1/$dir is not a directory!" | ||
exit 1 | ||
fi done | ||
|
||
files="doc/foo/index.html doc/foo/bar/index.html doc/foo/bar/baz/fn.baz.html doc/foo/bar/trait.Doge.html doc/src/foo/foo.rs.html" | ||
|
||
for file in $files; do if [ ! -f $1/$file ]; then | ||
echo "$1/$file is not a file!" | ||
exit 1 | ||
fi done |