Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion license-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@
],
"type": "root"
}
}
}
52 changes: 52 additions & 0 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,58 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
}
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct StdarchVerify {
build_compiler: Compiler,
target: TargetSelection,
}

impl Step for StdarchVerify {
type Output = ();
const IS_HOST: bool = true;

fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.path("library/stdarch/crates/stdarch-verify")
}

fn is_default_step(_builder: &Builder<'_>) -> bool {
true
}
Comment thread
Kobzol marked this conversation as resolved.

fn make_run(run: RunConfig<'_>) {
let builder = run.builder;
let build_compiler = get_compiler_to_test(builder, run.target);
builder.ensure(StdarchVerify { build_compiler, target: run.target });
}

fn run(self, builder: &Builder<'_>) {
let build_compiler = self.build_compiler;
let target = self.target;

builder.std(build_compiler, target);

let cargo = tool::prepare_tool_cargo(
builder,
build_compiler,
Mode::ToolStd,
target,
Kind::Test,
"library/stdarch/crates/stdarch-verify",
SourceType::InTree,
&[],
);

run_cargo_test(
cargo,
&[],
&["stdarch-verify".to_string()],
Some("stdarch-verify"),
target,
builder,
);
}
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Clippy {
compilers: RustcPrivateCompilers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ expression: test
[Test] test::RustcBook
targets: [x86_64-unknown-linux-gnu]
- Set({test::src/doc/rustc})
[Test] test::StdarchVerify
targets: [x86_64-unknown-linux-gnu]
- Set({test::library/stdarch/crates/stdarch-verify})
[Test] test::RustdocJSStd
targets: [x86_64-unknown-linux-gnu]
- Suite(test::tests/rustdoc-js-std)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ expression: test library
- Set({test::library/sysroot})
- Set({test::library/test})
- Set({test::library/unwind})
[Test] test::StdarchVerify
targets: [x86_64-unknown-linux-gnu]
- Set({test::library/stdarch/crates/stdarch-verify})
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ expression: test --skip=coverage
[Test] test::RustcBook
targets: [x86_64-unknown-linux-gnu]
- Set({test::src/doc/rustc})
[Test] test::StdarchVerify
targets: [x86_64-unknown-linux-gnu]
- Set({test::library/stdarch/crates/stdarch-verify})
[Test] test::RustdocJSStd
targets: [x86_64-unknown-linux-gnu]
- Suite(test::tests/rustdoc-js-std)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ expression: test --skip=tests
[Test] test::RustcBook
targets: [x86_64-unknown-linux-gnu]
- Set({test::src/doc/rustc})
[Test] test::StdarchVerify
targets: [x86_64-unknown-linux-gnu]
- Set({test::library/stdarch/crates/stdarch-verify})
[Test] test::RustdocTheme
targets: [x86_64-unknown-linux-gnu]
- Set({test::src/tools/rustdoc-themes})
Expand Down
1 change: 1 addition & 0 deletions src/bootstrap/src/core/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ impl<'a> Builder<'a> {
test::CargoMiri,
test::Clippy,
test::CompiletestTest,
test::StdarchVerify,
test::CrateRunMakeSupport,
test::CrateBuildHelper,
test::RustdocJSStd,
Expand Down
Loading