The Linaro Android team automatically test daily platform builds on our LAVA server, but what’s less well known is that we can also run Android tests locally using lava-android-test. I tried this out in order to debug a new benchmark I wanted to add, and it turns out that creating a mini version of validation.linaro.org is remarkably easy. It’s as simple as getting a board powered up and available to adb, installing the tool and then running three commands to install, run and parse the results of your test case.
There are two options here, Ubuntu users can use the validation team’s ppa:
sudo apt-get install lava-android-test.
Hackers can install from source into a python virtualenv:
sudo apt-get install python-virtualenv virtualenv lava-android-test-env . lava-android-test-env/bin/activate bzr branch lp:lava-android-test cd lava-android-test python setup.py install deactivate
List available tests
Install the test you want to run
lava-android-test install toolchain-benchmark -o <options> -s <adb device id>
Run the test
lava-android-test run toolchain-benchmark This will output the test results file name.
Parse the results
lava-android-test parse <test results file name>
 Linaro Validation Server http://validation.linaro.org  Lava Android Test Runner https://launchpad.net/lava-android-test  Lava team PPA https://launchpad.net/~linaro-validation/+archive/ppa