.with_stderr_contains("[..]feature=[..]quux[..]"),
);
}
+
+#[test]
+#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
+fn rustdoc_target() {
+ let p = project("foo")
+ .file(
+ "Cargo.toml",
+ r#"
+ [package]
+ name = "a"
+ version = "0.0.1"
+ authors = []
+ "#,
+ )
+ .file("src/lib.rs", "")
+ .build();
+
+ assert_that(
+ p.cargo("rustdoc --verbose --target x86_64-unknown-linux-gnu"),
+ execs().with_status(0).with_stderr("\
+[DOCUMENTING] a v0.0.1 ([..])
+[RUNNING] `rustdoc --crate-name a src[/]lib.rs \
+ --target x86_64-unknown-linux-gnu \
+ -o [..]foo[/]target[/]x86_64-unknown-linux-gnu[/]doc \
+ -L dependency=[..]foo[/]target[/]x86_64-unknown-linux-gnu[/]debug[/]deps \
+ -L dependency=[..]foo[/]target[/]debug[/]deps`
+[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]"),
+ );
+}