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 theCoverage
tests in only one mode. Adapted fromtest_definitions
. - default_
test π - host_
test π - test π
- test_
book π - test_
definitions π
Structs§
- Book
Test π - 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 acargo test
subcommand, pass it the appropriate test flags given abuilder
. - run_
cargo_ πtest Given acargo test
subcommand, add the appropriate flags and run it. - testdir π