Name | Updated at | |
---|---|---|
README | ||
gen_smoke_tests.py | ||
save_logs.py | ||
util.py |
These scripts help generate the libcore TEST_MAPPING smoke tests, i.e. a set of tests to run on every change, chosen to run as many as possible in less than some time limit.
The process is as follows.
source build/envsetup.sh
and lunch <whatever>
as normal.atest CtsLibcoreTestCases
as normal. Make sure to use
an appropriate device (virtual or physical).time atest --test-mapping libcore
to check it runs okay.The scripts take no options. There are some constants at the start you can adjust. (These could be converted to command-line options if convenient.)
See comments in the scripts for more on how they work.
At time of writing, with the current configuration, this generates a sensible number of classes to exclude, so the TEST_MAPPING looks reasonable. If this list becomes too long, we'll have to find a way to simplify it, by rolling up to a higher granularity. Given the way that atest et al are configured, that will probably mean excluding more things.
TODO(peteg): What about PTS?