suite: "compile-fail-fulldeps"
});
-host_test!(IncrementalFullDeps {
- path: "src/test/incremental-fulldeps",
- mode: "incremental",
- suite: "incremental-fulldeps"
-});
-
host_test!(Rustdoc {
path: "src/test/rustdoc",
mode: "rustdoc",
}
if builder.no_std(target) == Some(true) {
- // for no_std run-make (e.g. thumb*),
+ // for no_std run-make (e.g., thumb*),
// we need a host compiler which is called by cargo.
builder.ensure(compile::Std { compiler, target: compiler.host });
}
+ // HACK(eddyb) ensure that `libproc_macro` is available on the host.
+ builder.ensure(compile::Test { compiler, target: compiler.host });
+ // Also provide `rust_test_helpers` for the host.
+ builder.ensure(native::TestHelpers { target: compiler.host });
+
builder.ensure(native::TestHelpers { target });
builder.ensure(RemoteCopyLibs { compiler, target });
cmd.arg("--bless");
}
- let compare_mode = builder.config.cmd.compare_mode().or(self.compare_mode);
+ let compare_mode = builder.config.cmd.compare_mode().or_else(|| {
+ if builder.config.test_compare_mode {
+ self.compare_mode
+ } else {
+ None
+ }
+ });
if let Some(ref nodejs) = builder.config.nodejs {
cmd.arg("--nodejs").arg(nodejs);
cmd.arg("--linker").arg(linker);
}
- let hostflags = flags.clone();
+ let mut hostflags = flags.clone();
+ hostflags.push(format!(
+ "-Lnative={}",
+ builder.test_helpers_out(compiler.host).display()
+ ));
cmd.arg("--host-rustcflags").arg(hostflags.join(" "));
let mut targetflags = flags;
/// Run `rustdoc --test` for all documentation in `src/doc`.
///
- /// This will run all tests in our markdown documentation (e.g. the book)
+ /// This will run all tests in our markdown documentation (e.g., the book)
/// located in `src/doc`. The `rustdoc` that's run is the one that sits next to
/// `compiler`.
fn run(self, builder: &Builder) {
.arg("generate-lockfile")
.arg("--manifest-path")
.arg(&toml)
- .env("__CARGO_TEST_ROOT", &dir)
.current_dir(&dir),
);
}