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/docusing therustdocoftest_compiler. - Bootstrap
- 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
- 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 testfor rustfmt. - Test
Float Parse - Test step that does two things:
- Test
Helpers - 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
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 testsubcommand, pass it the appropriate test flags given abuilder. - run_
cargo_ πtest - Given a
cargo testsubcommand, add the appropriate flags and run it. - testdir π