Skip to content

Commit 3544631

Browse files
authored
Merge pull request #2299 from jieyouxu/test-jobs-reorg
Slightly reorganize ecosystem tests, stub out codegen backend test pages
2 parents bc60f8a + b7fc809 commit 3544631

File tree

10 files changed

+39
-11
lines changed

10 files changed

+39
-11
lines changed

book.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,7 @@ warning-policy = "error"
6262
"/diagnostics/sessiondiagnostic.html" = "diagnostic-structs.html"
6363
"/diagnostics/diagnostic-codes.html" = "error-codes.html"
6464
"/miri.html" = "const-eval/interpret.html"
65-
"/tests/integration.html" = "ecosystem.html"
65+
"/tests/fuchsia.html" = "ecosystem-test-jobs/fuchsia.html"
6666
"/tests/headers.html" = "directives.html"
67+
"/tests/integration.html" = "ecosystem.html"
68+
"/tests/rust-for-linux.html" = "ecosystem-test-jobs/rust-for-linux.html"

src/SUMMARY.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828
- [Minicore](./tests/minicore.md)
2929
- [Ecosystem testing](./tests/ecosystem.md)
3030
- [Crater](./tests/crater.md)
31-
- [Fuchsia](./tests/fuchsia.md)
32-
- [Rust for Linux](./tests/rust-for-linux.md)
31+
- [Fuchsia](./tests/ecosystem-test-jobs/fuchsia.md)
32+
- [Rust for Linux](./tests/ecosystem-test-jobs/rust-for-linux.md)
33+
- [Codegen backend testing](./tests/codegen-backend-tests/intro.md)
34+
- [Cranelift codegen backend](./tests/codegen-backend-tests/cg_clif.md)
35+
- [GCC codegen backend](./tests/codegen-backend-tests/cg_gcc.md)
3336
- [Performance testing](./tests/perf.md)
3437
- [Suggest tests tool](./tests/suggest-tests.md)
3538
- [Misc info](./tests/misc.md)

src/notification-groups/fuchsia.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ This list will be used to notify [Fuchsia][fuchsia] maintainers
99
when the compiler or the standard library changes in a way that would
1010
break the Fuchsia integration.
1111

12-
[fuchsia]: ../tests/fuchsia.md
12+
[fuchsia]: ../tests/ecosystem-test-jobs/fuchsia.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Cranelift codegen backend tests
2+
3+
TODO: please add some more information to this page.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# GCC codegen backend tests
2+
3+
TODO: please add some more information to this page.
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Codegen backend testing
2+
3+
See also the [Code generation](../../../src/backend/codegen.md) chapter.
4+
5+
In addition to the primary LLVM codegen backend, the rust-lang/rust CI also runs tests of the [cranelift][cg_clif] and [GCC][cg_gcc] codegen backends in certain test jobs.
6+
7+
For more details on the tests involved, see:
8+
9+
- [Cranelift codegen backend tests](./cg_clif.md)
10+
- [GCC codegen backend tests](./cg_gcc.md)
11+
12+
[cg_clif]: https://github.com/rust-lang/rustc_codegen_cranelift
13+
[cg_gcc]: https://github.com/rust-lang/rustc_codegen_gcc

src/tests/fuchsia.md renamed to src/tests/ecosystem-test-jobs/fuchsia.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ using your local Rust toolchain.
4040
src/ci/docker/run.sh x86_64-fuchsia
4141
```
4242

43-
See the [Testing with Docker](docker.md) chapter for more details on how to run
43+
See the [Testing with Docker](../docker.md) chapter for more details on how to run
4444
and debug jobs with Docker.
4545

4646
Note that a Fuchsia checkout is *large* – as of this writing, a checkout and
@@ -170,7 +170,7 @@ rustc book][platform-support].
170170
[`public_configs`]: https://gn.googlesource.com/gn/+/main/docs/reference.md#var_public_configs
171171
[`//build/config:compiler`]: https://cs.opensource.google/fuchsia/fuchsia/+/main:build/config/BUILD.gn;l=121;drc=c26c473bef93b33117ae417893118907a026fec7
172172
[build system]: https://fuchsia.dev/fuchsia-src/development/build/build_system
173-
[fuchsia-ping]: ../notification-groups/fuchsia.md
173+
[fuchsia-ping]: ../../notification-groups/fuchsia.md
174174

175175
[^loc]: As of June 2024, Fuchsia had about 2 million lines of first-party Rust
176176
code and a roughly equal amount of third-party code, as counted by tokei

src/tests/rust-for-linux.md renamed to src/tests/ecosystem-test-jobs/rust-for-linux.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ line to your PR description:
4848
Then when you `@bors try` it will pick the job that builds the Rust for Linux
4949
integration.
5050

51-
[rfl-ping]: ../notification-groups/rust-for-linux.md
51+
[rfl-ping]: ../../notification-groups/rust-for-linux.md

src/tests/ecosystem.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ there aren't any significant regressions.
2424
We have CI jobs that build large open-source Rust projects that are used as
2525
regression tests in CI. Our integration jobs build the following projects:
2626

27-
- [Fuchsia](fuchsia.md)
28-
- [Rust for Linux](rust-for-linux.md)
27+
- [Fuchsia](./ecosystem-test-jobs/fuchsia.md)
28+
- [Rust for Linux](./ecosystem-test-jobs/rust-for-linux.md)

src/tests/intro.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ directory, and `x` will essentially run `cargo test` on that package.
3838
Examples:
3939

4040
| Command | Description |
41-
| ----------------------------------------- | ------------------------------------- |
41+
|-------------------------------------------|---------------------------------------|
4242
| `./x test library/std` | Runs tests on `std` only |
4343
| `./x test library/core` | Runs tests on `core` only |
4444
| `./x test compiler/rustc_data_structures` | Runs tests on `rustc_data_structures` |
@@ -86,7 +86,7 @@ above.
8686
Examples:
8787

8888
| Command | Description |
89-
| ----------------------- | ------------------------------------------------------------------ |
89+
|-------------------------|--------------------------------------------------------------------|
9090
| `./x fmt --check` | Checks formatting and exits with an error if formatting is needed. |
9191
| `./x fmt` | Runs rustfmt across the entire codebase. |
9292
| `./x test tidy --bless` | First runs rustfmt to format the codebase, then runs tidy checks. |
@@ -155,6 +155,10 @@ chapter](ecosystem.md) for more details.
155155
A separate infrastructure is used for testing and tracking performance of the
156156
compiler. See the [Performance testing chapter](perf.md) for more details.
157157

158+
### Codegen backend testing
159+
160+
See [Codegen backend testing](./codegen-backend-tests/intro.md).
161+
158162
## Miscellaneous information
159163

160164
There are some other useful testing-related info at [Misc info](misc.md).

0 commit comments

Comments
 (0)