Add GHA log groups for tool tests

This commit is contained in:
jyn 2023-07-09 21:26:11 -05:00
parent a5de56a95e
commit fff8223584

View file

@ -413,6 +413,7 @@ impl Step for RustAnalyzer {
cargo.env("SKIP_SLOW_TESTS", "1");
cargo.add_rustc_lib_path(builder, compiler);
builder.msg_sysroot_tool(Kind::Test, compiler.stage, "rust-analyzer", host, host);
run_cargo_test(cargo, &[], &[], "rust-analyzer", compiler, host, builder);
}
}
@ -462,6 +463,7 @@ impl Step for Rustfmt {
cargo.add_rustc_lib_path(builder, compiler);
builder.msg_sysroot_tool(Kind::Test, compiler.stage, "rustfmt", host, host);
run_cargo_test(cargo, &[], &[], "rustfmt", compiler, host, builder);
}
}
@ -554,6 +556,13 @@ impl Miri {
cargo.env("RUST_BACKTRACE", "1");
let mut cargo = Command::from(cargo);
let _guard = builder.msg(
Kind::Build,
compiler.stage + 1,
"miri sysroot",
compiler.host,
compiler.host,
);
builder.run(&mut cargo);
// # Determine where Miri put its sysroot.
@ -631,6 +640,8 @@ impl Step for Miri {
SourceType::InTree,
&[],
);
let _guard = builder.msg_sysroot_tool(Kind::Test, compiler.stage, "miri", host, host);
cargo.add_rustc_lib_path(builder, compiler);
// miri tests need to know about the stage sysroot
@ -799,6 +810,8 @@ impl Step for Clippy {
cargo.env("BLESS", "Gesundheit");
}
builder.msg_sysroot_tool(Kind::Test, compiler.stage, "clippy", host, host);
if builder.try_run(&mut cargo).is_ok() {
// The tests succeeded; nothing to do.
return;
@ -1049,6 +1062,13 @@ impl Step for RustdocGUI {
}
let _time = util::timeit(&builder);
let _guard = builder.msg_sysroot_tool(
Kind::Test,
self.compiler.stage,
"rustdoc-gui",
self.compiler.host,
self.target,
);
crate::render_tests::try_run_tests(builder, &mut cmd, true);
}
}