Reputation: 30144
How do I start the Android CTS from the command line, I have tried every combination that I can think of:
~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS
and the like does not work. Any input will be very much appreciated?
Upvotes: 0
Views: 1753
Reputation: 894
I have been using CTS version CTS4.4R3.
Below is how we can run CTS on KK .
Go to "tools" folder in CTS4.4R3 and enter the below commands :
command to Run CTS :
.../tools$./cts-tradefed
>run cts --plan CTS
Creating a Plan for Failed Cases in the 1st run:
add derivedplan -p "anyName"-s <SessionID> -r fail
Run added Plan : run cts --plan <PlanName>
SessionID can be checked as : list results
Running individual class in CTS :
run cts -c <ClassName>
run cts -c com.android.cts.monkey.android.widget.cts.AutoCompleteTextViewTest
Upvotes: 1
Reputation: 30144
Apparently it is just a matter of reading the CTS source code, and then getting the parameters correct: :)
$ ./startcts start --plan CTS
Upvotes: 0
Reputation: 11230
Run the command startcts in the tools folder
<install_dir>/tools$./startcts
cts shell will show up, Choose the plan you want to run as shown below
cts_host > ls --plan
List of plans (10 in total):
Android
AppSecurity
CTS-TF
CTS
Java
Performance
RefApp
Signature
VM-TF
VM
cts_host > start --plan Android
Upvotes: 0