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
- Book
Test 🔒 - Bootstrap
- Cargo
- Runs
cargo test
for cargo itself. - 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
- Codegen
Cranelift - CodegenGCC
- 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 🔒
- 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 - 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
- Special-handling is needed for
run-make
, so don’t usetest!
for definingRunMake
tests. - RunMake
Support - Rust
Analyzer - Rust
ByExample - Rust
Installer - Rustc
Book - Rustdoc
- Rustdoc
Book - RustdocGUI
- RustdocJS
NotStd - RustdocJS
Std - Rustdoc
Json - Rustdoc
Theme - 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 - Ui
- UiFull
Deps - Unstable
Book
Constants§
Functions§
- check_
if_ 🔒tidy_ is_ installed - get_
browser_ 🔒ui_ test_ version - get_
browser_ 🔒ui_ test_ version_ inner - markdown_
test 🔒 - path_
for_ 🔒cargo - 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 🔒