1CTS Instant Trade Federation 2--------------------- 3 4CTS Instant Trade Federation, cts-instant-tradefed for short, is built 5on top of the Android Trade Federation test harness. 6 7It works in a similar manner to the normal CTS harness, but is targeted 8to test Instant App compatiblity. 9 10Configuring cts-instant-tradefed 11------------------------ 12 131. Ensure 'adb' is in your current PATH. adb can be found in the 14Android SDK available from http://developer.android.com 15 16Example: 17 PATH=$PATH:/home/myuser/android-sdk-linux_x86/platform-tools 18 192. Follow the 'Setting up your device' steps documented in the 20CTS User Manual. The CTS User Manual can be downloaded at 21http://source.android.com/compatibility/downloads.html 22 233. Connect the device to the host machine. 24 254. Ensure device is visible via 'adb devices' 26 27Using cts-instant-tradefed 28------------------- 29 30To run a test plan on a single device: 31 321. Make sure you have at least one device connected 332. Launch the cts-instant-tradefed console by running the 'cts-instant-tradefed'. If you've 34downloaded and extracted the CTS zip, the script can be found at 35 android-cts_instant/tools/cts-instant-tradefed 36Or else if you are working from the Android source tree and have run make cts, 37the script can be found at 38 out/host/linux-x86/cts/android-cts_instant/tools/cts-instant-tradefed 393. Type: 40'run cts-instant' to run the default CTS plan 41 42Some other useful commands are 43 44To run a test module: 45'run cts-instant --module <module_name>' 46 47To run a specific test: 48'run cts-instant --module <module_name> --test <test_name>' 49 50To shard a plan test run on multiple devices 51'run cts-instant --shard-count <number of shards> 52note: all connected devices must be running the same build 53 54For more options: 55'run cts-instant --help' 56 57CTS Tradefed Development 58------------------------ 59See http://source.android.com for instructions on obtaining the Android 60platform source code and setting up a build environment. 61 62The source for the CTS extensions for tradefed can be found at 63<android source root>/cts/tools/tradefed-host 64 65The source for the tradefed framework can be found on the 'tradefed' branch. 66 67Perform these steps to build and run cts-instant-tradefed from the development 68environment: 69cd <path to android source root> 70make cts_instant 71cts-instant-tradefed 72 73More documentation and details on using and extending trade federation will 74be forthcoming in the near future. 75 76