Android CTS

You can get more information from http://source.android.com/compatibility/cts-intro.html

How to Run

 $ mkdir android-cts-2.3_r3
 $ cd android-cts-2.3_r3
 $ wget http://dl.google.com/dl/android/cts/android-cts-2.3_r3-x86.zip
 $ unzip android-cts-2.3_r3-x86.zip
  • Setup adb connection

 $ adb connect <device_ip>
  • You may would like to modify android-cts/repository/host_config.xml
  • Launch CTS

 $ cd android-cts/tools
 $ ./startcts
Android CTS version 2.3_r3
cts_host >
  • Test by specific package

cts_host > start --plan Android -p android.apidemos.cts
There are 6 existing session(s) for plan Android.
Create a new session or choose an existing one?
  Create a new session [0]
  Choose a session     [1]
0
start java package android.apidemos.cts

CTS_INFO >>> Running reference tests for ApiDemos
(pass)
Time: 12.111s
  • Test a whole plan, for example, Android plan

cts_host > start --plan Android
There are 7 existing session(s) for plan Android.
Create a new session or choose an existing one?
  Create a new session [0]
  Choose a session     [1]
0
start test plan Android
.....

View the result

The report is a .zip archived file under android-cts/repository/results/ that contains XML results and supplemental information such as screen captures.

 $ cd android-cts/repository/results/${test_result_directory}
 $ firefox testResult.xml

internal/archive/Platform/Android/Specs/LinaroAndroidCTS (last modified 2013-08-29 09:10:27)