The Vendor Test Suite (VTS) automates HAL and OS kernel testing. To use VTS to test an Android native system implementation, set up a testing environment then test a patch using a VTS plan.
Establishing a test environment
To set up a testing environment:
- Install Python development kit:
sudo apt-get install python-dev
- Install Protocol Buffer tools (for Python):
sudo apt-get install python-protobufsudo apt-get install protobuf-compiler - Install Python virtual environment-related tools:
sudo apt-get install python-virtualenvsudo apt-get install python-pip
Testing a patch
To test a patch:
- Build a VTS host-side package:
. build/envsetup.shlunch aosp_arm64-userdebugmake vts -j - Run the default VTS tests:
vts-tradefedtf> run vts // where vts is the test plan name
VTS plans
Available VTS test plans include:
| Command | Description |
|---|---|
| > run vts | For default VTS tests |
| > run vts-hal | For default VTS HAL (hardware abstraction layer) tests |
| > run vts-kernel | For default VTS kernel tests |
To view a list of all plans, refer to
/test/vts/tools/vts-tradefed/res/config.md.
Support
You can view a user manual at
/test/vts/doc.
For questions on VTS, please join
android-vts@googlegroups.com.

