Android CTS documents said as below.
"To shard a plan test run on multiple devices:-
run cts -plan CTS --shards <number of shards>
then I do in this way. but I can not do. surely PC can recognize the multi devices but cannot run on them.
If you know how, please help me!!!
I'm sorry. the above comment was not drawn in details.
I show you what I did.
Firstly I downloaded Android 4.0.3 R3 Compatibility Test Suite (CTS) from the following google site. http://source.android.com/compatibility/downloads.html
then I constructed CTS and SDK in my PC and connected 2 device to my PC.
I executed the commands as below.
- ./android-cts/tool/cts-tradefed
- run -plan CTS --shards 2
Consequently, the following message was shown.
cts-tf>10-23 18:xx:xx I/unknown_devices: Created result dir 2012.10.xx._xx.xx.xx Android CTS 4.0.3_r3 I/Device Manager : Detected new device a61xxxxx I/Device Manager : Detected new device de0xxxxx
but after that, no message was shown.
You won't see test status output on the console when sharding. You can use the '-l debug' option to 'run cts' to see debug information.
For example:
If you input the above command in console, you can see all the activities going on your 2 devices. Like installing the testrunner apks, running the tests and uninstalling the apks after tests.