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 - test ๐Declares a test step that invokes compiletest on a particular test suite.
- test_
book ๐
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.
- Runs the
tests/coverage
test suite in โcoverage-mapโ mode only. Used byx test
andx test coverage-map
. - Runs the
tests/coverage
test suite in โcoverage-runโ mode only. Used byx test
andx test coverage-run
. - 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 usetest!
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 ๐