CompatibilityTestSuite » History » Version 7
Loic Dachary, 11/13/2016 09:51 PM
USB debugging is set by default
1 | 1 | Loic Dachary | Instructions to run and collect results of the android "Compatibility Test Suite":https://source.android.com/compatibility/cts/setup.html for "Replicant 4.2":https://redmine.replicant.us/projects/replicant/wiki/ReplicantStatus#Replicant-42 |
---|---|---|---|
2 | |||
3 | h1. Installation |
||
4 | |||
5 | * On a newly installed Ubuntu 14.04 |
||
6 | 3 | Loic Dachary | * Install the dependencies |
7 | ** apt-get update |
||
8 | 4 | Loic Dachary | ** apt-get install -y android-tools-adb openjdk-6-jdk wget unzip |
9 | 1 | Loic Dachary | * Install the "pre-built CTS":https://source.android.com/compatibility/cts/downloads.html (or "build it from source":https://source.android.com/compatibility/cts/development.html#building-and-running-cts) |
10 | ** wget https://dl.google.com/dl/android/cts/android-cts-4.2_r4-linux_x86-arm.zip ; unzip android-cts-4.2_r4-linux_x86-arm.zip |
||
11 | ** wget https://dl.google.com/dl/android/cts/android-cts-verifier-4.2_r5-linux_x86-arm.zip ; unzip android-cts-verifier-4.2_r5-linux_x86-arm.zip |
||
12 | ** wget https://dl.google.com/dl/android/cts/android-cts-media-1.2.zip ; unzip android-cts-media-1.2.zip |
||
13 | 3 | Loic Dachary | |
14 | 1 | Loic Dachary | |
15 | h1. Device preparation |
||
16 | |||
17 | * Connect the Replicant 4.2 device to USB and verify *adb* sees it |
||
18 | <pre> |
||
19 | # adb devices |
||
20 | List of devices attached |
||
21 | 00090ad763a48f device |
||
22 | 4df1066d14d15fbd device |
||
23 | </pre> |
||
24 | * Configure the device (adapted from https://source.android.com/compatibility/cts/setup.html#config_device, not including Wifi, GPS, bluetooth since they are not supported) |
||
25 | ** Factory data reset the device: *Settings > Backup & reset > Factory data reset* |
||
26 | ** Set your device's language to English (United States) from: *Settings > Language & input > Language* |
||
27 | ** Make sure no lock pattern or password is set on the device: *Settings > Security > Screen lock > None* |
||
28 | 5 | Loic Dachary | ** Make sure no PIN lock is set on the device: *Settings > Security > Set up SIM card lock > Lock SIM card > unset* (only shows if there is a SIM card in the phone) |
29 | 1 | Loic Dachary | ** Select: *Settings > Developer options > Stay Awake > On* |
30 | ** Select: *Settings > Developer options > Verify apps over USB > Off* |
||
31 | ** Connect the desktop machine that will be used to test the device with a USB cable. The system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. Select Allow USB debugging. |
||
32 | ** Install and configure helper apps on the device: |
||
33 | *** adb install -r android-cts/repository/testcases/CtsDelegatingAccessibilityService.apk |
||
34 | *** On the device, enable: *Settings > Accessibility > Accessibility > Delegating Accessibility Service* |
||
35 | ** Copy the CTS media files to the device as follows: |
||
36 | <pre> |
||
37 | # adb devices |
||
38 | List of devices attached |
||
39 | 00090ad763a48f device |
||
40 | 4df1066d14d15fbd device |
||
41 | # cd android-cts-media-1.2 |
||
42 | # ./copy_media.sh all -s 00090ad763a48f |
||
43 | </pre> |
||
44 | |||
45 | |||
46 | h1. Running CTS |
||
47 | |||
48 | It runs in the background and takes about 8 hours. It will display results as they become available. See "the usage documentation":https://source.android.com/compatibility/cts/run.html#using-cts-v1 for more information. |
||
49 | |||
50 | <pre> |
||
51 | # ./android-cts/tools/cts-tradefed |
||
52 | cts-tf > run cts --plan CTS |
||
53 | </pre> |
||
54 | 2 | Loic Dachary | |
55 | The test results are in *./android-cts/repository/results/* and the logs in *./android-cts/repository/logs/* |