Skip to content

Commit c17da9e

Browse files
committed
Add Rust Analyzer check tests
1 parent 029304e commit c17da9e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/bootstrap/src/core/build_steps/check.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ impl Step for RustAnalyzer {
385385
let _guard = builder.msg_check("rust-analyzer artifacts", target, None);
386386
run_cargo(builder, cargo, builder.config.free_args.clone(), &stamp, vec![], true, false);
387387
}
388+
389+
fn metadata(&self) -> Option<StepMetadata> {
390+
Some(StepMetadata::check("rust-analyzer", self.target))
391+
}
388392
}
389393

390394
/// Compiletest is implicitly "checked" when it gets built in order to run tests,

src/bootstrap/src/core/builder/tests.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,20 @@ mod snapshot {
14411441
");
14421442
}
14431443

1444+
#[test]
1445+
fn check_rust_analyzer() {
1446+
let ctx = TestCtx::new();
1447+
insta::assert_snapshot!(
1448+
ctx.config("check")
1449+
.path("rust-analyzer")
1450+
.render_steps(), @r"
1451+
[check] std <host>
1452+
[build] llvm <host>
1453+
[check] rustc <host>
1454+
[check] rust-analyzer <host>
1455+
");
1456+
}
1457+
14441458
#[test]
14451459
fn test_exclude() {
14461460
let ctx = TestCtx::new();

0 commit comments

Comments
 (0)