Skip to content
Merged
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
13 changes: 9 additions & 4 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,12 +1071,17 @@ pub struct IntrinsicTest {
host: TargetSelection,
}

impl IntrinsicTest {
const ALIAS: &'static str = "stdarch-intrinsic-test";
}

impl CommandLineStep for IntrinsicTest {
type Output = ();
const IS_HOST: bool = true;

fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.alias("intrinsic-test")
// Not using a path since we don't want this to be part of `./x test library`.
run.alias(Self::ALIAS)
}

fn is_default_step(_builder: &Builder<'_>) -> bool {
Expand All @@ -1087,12 +1092,12 @@ impl CommandLineStep for IntrinsicTest {
let target = run.target;
let builder = run.builder;

let is_explicit =
builder.config.paths.iter().any(|p| p.to_string_lossy() == "intrinsic-test");
let is_explicit = builder.config.paths.iter().any(|p| p.to_string_lossy() == Self::ALIAS);

if target.contains("x86_64-unknown-linux") && builder.config.sde.is_none() && is_explicit {
panic!(
"SDE is required to run intrinsic-test. Please configure `build.sde` in config.toml."
"SDE is required to run {}. Please configure `build.sde` in config.toml.",
Self::ALIAS
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ expression: test
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,4 @@ expression: test --skip=coverage
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ expression: test --skip=coverage-map
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ expression: test --skip=coverage-run
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ expression: test --skip=tests
- Set({compiler-builtins})
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,4 @@ expression: test --skip=tests/coverage
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ expression: test --skip=tests --skip=library --skip=tidyselftest
- Set({compiler-builtins})
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Loading