Expand description
Build-and-run steps for ./x.py test
test fixtures
./x.py test
(aka Kind::Test
) is currently allowed to reach build steps in other modules.
However, this contains ~all test parts we expect people to be able to build and run locally.
MacrosΒ§
StructsΒ§
- Assembly
Llvm - Book
Test π - Runs the documentation tests for a book in
src/doc
using therustdoc
oftest_compiler
. - Bootstrap
- Cargo
- Runs
cargo test
for cargo itself. We label these tests as βcargo self-testsβ. - Cargo
Miri - Runs
cargo miri test
to demonstrate thatsrc/tools/miri/cargo-miri
works and that libtest works under miri. - Cargotest
- Builds cargo and then runs the
src/tools/cargotest
tool, which checks out some representative crate repositories and runscargo test
on them, in order to test cargo. - Clippy
- Codegen
Cranelift - CodegenGCC
- Codegen
Llvm - Codegen
Units - Collect
License Metadata - Runs the tool
src/tools/collect-license-metadata
inONLY_CHECK=1
mode, which verifies thatlicense-metadata.json
is up-to-date and therefore running the tool normally would not update anything. - Compiletest π
- Executes the
compiletest
tool to run a suite of tests. - Compiletest
Test - Coverage
- Runs the coverage test suite at
tests/coverage
in some or all of the coverage test modes. - Coverage
RunRustdoc - Crashes
- Crate
- Runs
cargo test
for standard library crates. - Crate
Bootstrap - Runs
cargo test
on various internal tools used by bootstrap. - Crate
Build Helper - Crate
Librustc - Runs
cargo test
for the compiler crates incompiler/
. - Crate
RunMake Support - Runs
cargo test
on thesrc/tools/run-make-support
crate. That crate is used by run-make tests. - Crate
Rustdoc - Run cargo tests for the rustdoc crate.
Rustdoc is special in various ways, which is why this step is different from
Crate
. - Crate
Rustdoc Json Types - Debuginfo
- Distcheck
- Edition
Guide - Embedded
Book - Error
Index - Html
Check - Incremental
- Linkcheck
- Lint
Docs - MirOpt
- Miri
- Nomicon
- Pretty
- Reference
- Remote
Copy Libs - Some test suites are run inside emulators or on remote devices, and most of our test binaries are linked dynamically which means we need to ship the standard library and such to the emulator ahead of time. This step represents this and is a dependency of all test suites.
- RunMake
- RunMake
Cargo - Rust
Analyzer - Rust
ByExample - Rust
Installer - Rustc
Book - Rustdoc
- Rustdoc
Book - RustdocGUI
- Run GUI tests on a given rustdoc.
- RustdocJS
NotStd - RustdocJS
Std - Test rustdoc JS for the standard library.
- Rustdoc
Json - Rustdoc
Theme - Run the rustdoc-themes tool to test a given compiler.
- Rustdoc
Ui - Rustfmt
- Runs
cargo test
for rustfmt. - Test
Float Parse - Test step that does two things:
- Test
Helpers - TheBook
- Tidy
- Runs
src/tools/tidy
andcargo fmt --check
to detect various style problems in the repository. - Tier
Check - Tests the Platform Support page in the rustc book.
test_compiler
is used to query the actual targets that are checked. - Ui
- UiFull
Deps - Unstable
Book
ConstantsΒ§
- ADB_
TEST_ πDIR
FunctionsΒ§
- bin_
path_ πfor_ cargo - check_
if_ πtidy_ is_ installed - distcheck_
plain_ πsource_ tarball - Check that we can build some basic things from the plain source tarball
- distcheck_
rust_ πsrc - Check that rust-src has all of libstdβs dependencies
- distcheck_
rustc_ πdev - Check that rustc-devβs compiler crate source code can be loaded with
cargo metadata
- get_
browser_ πui_ test_ version - get_
browser_ πui_ test_ version_ inner - get_
compiler_ πto_ test - markdown_
test π - prepare_
cargo_ πtest - Given a
cargo test
subcommand, pass it the appropriate test flags given abuilder
. - run_
cargo_ πtest - Given a
cargo test
subcommand, add the appropriate flags and run it. - testdir π