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.
Modulesยง
- compiletest ๐
- failed_
tests
Macrosยง
Structsยง
- Assembly
Gcc - Assembly
Llvm - Book
Test ๐ - Runs the documentation tests for a book in
src/docusing therustdocoftest_compiler. - Bootstrap
- Bootstrap
Py ๐ - Runs unit tests in
bootstrap_test.py, which test the Python parts of bootstrap. - Build
Std - Cargo
- Runs
cargo testfor cargo itself. We label these tests as โcargo self-testsโ. - Cargo
Miri - Runs
cargo miri testto demonstrate thatsrc/tools/miri/cargo-miriworks and that libtest works under miri. - Cargotest
- Builds cargo and then runs the
src/tools/cargotesttool, which checks out some representative crate repositories and runscargo teston them, in order to test cargo. - Clippy
- Codegen
Cranelift - CodegenGCC
- Codegen
Llvm - Codegen
Units - Collect
License Metadata - Runs the tool
src/tools/collect-license-metadatainONLY_CHECK=1mode, which verifies thatlicense-metadata.jsonis up-to-date and therefore running the tool normally would not update anything. - Compiletest ๐
- Executes the
compiletesttool to run a suite of tests. - Compiletest
Test - Coverage
- Runs the coverage test suite at
tests/coveragein some or all of the coverage test modes. - Coverage
RunRustdoc - Crashes
- Crate
- Runs
cargo testfor standard library crates. - Crate
Bootstrap - Runs
cargo teston various internal tools used by bootstrap. - Crate
Build Helper - Crate
Librustc - Runs
cargo testfor the compiler crates incompiler/. - Crate
RunMake Support - Runs
cargo teston thesrc/tools/run-make-supportcrate. 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
- Intrinsic
Test - Runs stdarchโs intrinsic-test binary crate to verify that Rustโs
core::archSIMD intrinsics produce the same results as their C counterparts. - Linkcheck
- Lint
Docs - MirOpt
- Miri
- Nomicon
- Pretty
- Priroda
- 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.
- Remote
Test Client Tests - RunMake
- RunMake
Cargo - Rust
Analyzer - Rust
ByExample - Rust
Installer - Rustc
Book - Rustdoc
Book - RustdocGUI
- Run GUI tests on a given rustdoc.
- Rustdoc
Html - 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 testfor rustfmt. - StdSemver
Check - Run cargo-semver-checks on the standard library and compare its API versus a previous baseline, using rustdoc JSON data.
- Stdarch
GenCheck - Runs stdarchโs gen-checks (arm, loongarch, hexagon) to
verify the committed
core_archfiles are up to date with their specs. With--bless, regenerates and writes them back instead. - Stdarch
Verify - Runs
library/stdarch/crates/stdarch-verifyโs tests which cross-check thecore::archintrinsics for x86, Arm, and MIPS against the corresponding vendor references (signatures, target features, andassert_instrmappings). - Test
Float Parse - Test step that does two things:
- Test
Helpers - Compiles native (C/C++) code that is used as helper code for tests.
- TheBook
- Tidy
- Runs
src/tools/tidyandcargo fmt --checkto detect various style problems in the repository. - Tier
Check - Tests the Platform Support page in the rustc book.
test_compileris used to query the actual targets that are checked. - Ui
- UiFull
Deps - Unstable
Book
Enumsยง
- Coverage
Mode Alias - Registers the
coverage-mapandcoverage-runaliases, which are then forwarded to theCoveragestep. - Test
Target
Functionsยง
- add_
cargo_ ๐target_ runner - Tells cargo how to execute binaries built for
target, e.g. under an emulator or on a remote device. - bin_
path_ ๐for_ cargo - check_
if_ ๐cargo_ semver_ checks_ is_ installed - 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 testsubcommand, pass it the appropriate test flags given abuilder. - run_
cargo_ ๐test - Given a
cargo testsubcommand, add the appropriate flags and run it. - testdir ๐