Module bootstrap::core::build_steps::test
source Β· 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§
- coverage_test_alias πDeclares an alias for running the
Coverage
tests in only one mode. Adapted fromtest_definitions
. - default_test π
- host_test π
- test π
- test_book π
- test_definitions π
Structs§
- BookTest π
- Compiletest π
- Coverage tests are a bit more complicated than other test suites, because we want to run the same set of test files in multiple different modes, in a way thatβs convenient and flexible when invoked manually.
- Rustdoc is special in various ways, which is why this step is different from
Crate
. - 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.
- Special-handling is needed for
run-make
, so donβt usedefault_test
for definingRunMake
tests.
Constants§
- ADB_TEST_DIR π
Functions§
- 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 π