Test variants¶
As described in the qualification plan, test variants are a way to run a test suite multiple times for each target, each time varying some of the configuration.
To enable a variant when running tests, add the --test-variant=NAME
to ./x
test
. The default variant (when the flag is not passed) depends on the target
you are testing: if you are reproducing a CI failure make sure to specify the
correct variant.
Available variants¶
The available variants are defined in
src/bootstrap/src/ferrocene/test_variants.rs
:
("2021", &[
VariantCondition::Edition("2015"),
]),
("2021-cortex-a53", &[
VariantCondition::Edition("2015"),
VariantCondition::QemuCpu("cortex-a53"),
]),
("2021-cortex-m4", &[
VariantCondition::Edition("2015"),
VariantCondition::QemuCpu("cortex-m4"),
]),