Name | Updated at | |
---|---|---|
etc | ||
res | ||
tests | ||
Android.bp | ||
DynamicConfig.xml | ||
OWNERS | ||
README |
CTS Trade Federation, cts-tradefed for short, is the next generation test harness for CTS.
cts-tradefed is built on top of the Android Trade Federation test harness.
It works in a similar manner to the prior CTS harness, but supports some advanced features such as:
Example: PATH=$PATH:/home/myuser/android-sdk-linux_x86/platform-tools
Follow the 'Setting up your device' steps documented in the CTS User Manual. The CTS User Manual can be downloaded at http://source.android.com/compatibility/downloads.html
Connect the device to the host machine.
Ensure device is visible via 'adb devices'
To run a test plan on a single device:
Some other useful commands are
To run a test module: 'run cts --module <module_name>'
To run a specific test: 'run cts --module <module_name> --test <test_name>'
To shard a plan test run on multiple devices 'run cts --shard-count note: all connected devices must be running the same build
For more options: 'run cts --help'
See http://source.android.com for instructions on obtaining the Android platform source code and setting up a build environment.
The source for the CTS extensions for tradefed can be found at /cts/tools/tradefed-host
The source for the tradefed framework can be found on the 'tradefed' branch.
Perform these steps to build and run cts-tradefed from the development environment: cd make cts cts-tradefed
More documentation and details on using and extending trade federation will be forthcoming in the near future.