Skip to content

Commit 3923b68

Browse files
committedJun 11, 2024
Rename needs-matching-clang to needs-force-clang-based-tests
This header is much more restrictive than its old name would suggest. As a result, most of the tests that use it don't actually run in any CI jobs.
1 parent aec67e2 commit 3923b68

File tree

8 files changed

+21
-9
lines changed

8 files changed

+21
-9
lines changed
 

‎src/ci/docker/host-x86_64/x86_64-gnu-debug/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ENV RUST_CONFIGURE_ARGS \
4747
# This job appears to be checking two separate things:
4848
# - That we can build the compiler with `--enable-debug`
4949
# (without necessarily testing the result).
50-
# - That the tests with `//@ needs-matching-clang` pass, since they
50+
# - That the tests with `//@ needs-force-clang-based-tests` pass, since they
5151
# don't run by default unless RUSTBUILD_FORCE_CLANG_BASED_TESTS is set.
5252
# - FIXME(https://github.com/rust-lang/rust/pull/126155#issuecomment-2156314273):
5353
# Currently we only run the subset of tests with "clang" in their name.

‎src/tools/compiletest/src/header.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,9 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
854854
"needs-asm-support",
855855
"needs-dlltool",
856856
"needs-dynamic-linking",
857+
"needs-force-clang-based-tests",
857858
"needs-git-hash",
858859
"needs-llvm-components",
859-
"needs-matching-clang",
860860
"needs-profiler-support",
861861
"needs-relocation-model-pic",
862862
"needs-run-enabled",

‎src/tools/compiletest/src/header/needs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ pub(super) fn handle_needs(
100100
ignore_reason: "ignored when profiler support is disabled",
101101
},
102102
Need {
103-
name: "needs-matching-clang",
103+
name: "needs-force-clang-based-tests",
104104
condition: config.run_clang_based_tests_with.is_some(),
105-
ignore_reason: "ignored when the used clang does not match the built LLVM",
105+
ignore_reason: "ignored when RUSTBUILD_FORCE_CLANG_BASED_TESTS is not set",
106106
},
107107
Need {
108108
name: "needs-xray",

‎tests/run-make/cross-lang-lto-clang/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# needs-matching-clang
1+
# needs-force-clang-based-tests
22

33
# This test makes sure that cross-language inlining actually works by checking
44
# the generated machine code.

‎tests/run-make/cross-lang-lto-pgo-smoketest/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# needs-matching-clang
1+
# needs-force-clang-based-tests
2+
3+
# FIXME(#126180): This test doesn't actually run anywhere, because the only
4+
# CI job that sets RUSTBUILD_FORCE_CLANG_BASED_TESTS runs very few tests.
25

36
# This test makes sure that cross-language inlining can be used in conjunction
47
# with profile-guided optimization. The test only tests that the whole workflow

‎tests/run-make/cross-lang-lto-riscv-abi/rmake.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
//! Make sure that cross-language LTO works on riscv targets,
22
//! which requires extra `target-abi` metadata to be emitted.
3-
//@ needs-matching-clang
3+
//@ needs-force-clang-based-tests
44
//@ needs-llvm-components riscv
55

6+
// FIXME(#126180): This test doesn't actually run anywhere, because the only
7+
// CI job that sets RUSTBUILD_FORCE_CLANG_BASED_TESTS runs very few tests.
8+
69
use run_make_support::{bin_name, clang, llvm_readobj, rustc};
710
use std::{
811
env,

‎tests/run-make/issue-84395-lto-embed-bitcode/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# needs-matching-clang
1+
# needs-force-clang-based-tests
2+
3+
# FIXME(#126180): This test doesn't actually run anywhere, because the only
4+
# CI job that sets RUSTBUILD_FORCE_CLANG_BASED_TESTS runs very few tests.
25

36
# This test makes sure the embed bitcode in elf created with
47
# lto-embed-bitcode=optimized is valid llvm BC module.

‎tests/run-make/wasm-override-linker/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# needs-matching-clang
1+
# needs-force-clang-based-tests
2+
3+
# FIXME(#126180): This test doesn't actually run anywhere, because the only
4+
# CI job that sets RUSTBUILD_FORCE_CLANG_BASED_TESTS runs very few tests.
25

36
include ../tools.mk
47

0 commit comments

Comments
 (0)