| OLD | NEW |
| 1 # Android Test Instructions | 1 # Android Test Instructions |
| 2 | 2 |
| 3 Device Setup Tests are runnable on physical devices or emulators. See the | 3 Device Setup Tests are runnable on physical devices or emulators. See the |
| 4 instructions below for setting up either a physical device or an emulator. | 4 instructions below for setting up either a physical device or an emulator. |
| 5 | 5 |
| 6 [TOC] | 6 [TOC] |
| 7 | 7 |
| 8 ## Physical Device Setup **ADB Debugging** | 8 ## Physical Device Setup **ADB Debugging** |
| 9 | 9 |
| 10 In order to allow the ADB to connect to the device, you must enable USB | 10 In order to allow the ADB to connect to the device, you must enable USB |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 resize2fs android_emulator_sdk/sdk/system-images/android-23/x86/userdata.img 1G | 143 resize2fs android_emulator_sdk/sdk/system-images/android-23/x86/userdata.img 1G |
| 144 | 144 |
| 145 # Set filesystem parameter to continue on errors; Android doesn't like some | 145 # Set filesystem parameter to continue on errors; Android doesn't like some |
| 146 # things e2fsprogs does. | 146 # things e2fsprogs does. |
| 147 tune2fs -e continue android_emulator_sdk/sdk/system-images/android-23/x86/userda
ta.img | 147 tune2fs -e continue android_emulator_sdk/sdk/system-images/android-23/x86/userda
ta.img |
| 148 ``` | 148 ``` |
| 149 | 149 |
| 150 ## Symbolizing Crashes | 150 ## Symbolizing Crashes |
| 151 | 151 |
| 152 Crash stacks are logged and can be viewed using adb logcat. To symbolize the | 152 Crash stacks are logged and can be viewed using adb logcat. To symbolize the |
| 153 traces, pipe the output through | 153 traces, define `CHROMIUM_OUTPUT_DIR=$OUTDIR` where `$OUTDIR` is the argument you |
| 154 `third_party/android_platform/development/scripts/stack`. If you build in an | 154 pass to `ninja -C`, and pipe the output through |
| 155 output directory other than "out", pass | 155 `third_party/android_platform/development/scripts/stack`. If |
| 156 `--chrome-symbols-dir=out_directory/{Debug,Release}/lib` to the script as well. | 156 `$CHROMIUM_OUTPUT_DIR` is unset, the script will search `out/Debug` and |
| 157 `out/Release`. For example: |
| 158 |
| 159 ```shell |
| 160 # If you build with |
| 161 ninja -C out/Debug chrome_public_test_apk |
| 162 # You can run: |
| 163 adb logcat -d | third_party/android_platform/development/scripts/stack |
| 164 |
| 165 # If you build with |
| 166 ninja -C out/android chrome_public_test_apk |
| 167 # You can run: |
| 168 adb logcat -d | CHROMIUM_OUTPUT_DIR=out/android third_party/android_platform/dev
elopment/scripts/stack |
| 169 # or |
| 170 export CHROMIUM_OUTPUT_DIR=out/android |
| 171 adb logcat -d | third_party/android_platform/development/scripts/stack |
| 172 ``` |
| 157 | 173 |
| 158 ## JUnit tests | 174 ## JUnit tests |
| 159 | 175 |
| 160 JUnit tests are Java unittests running on the host instead of the target device. | 176 JUnit tests are Java unittests running on the host instead of the target device. |
| 161 They are faster to run and therefore are recommended over instrumentation tests | 177 They are faster to run and therefore are recommended over instrumentation tests |
| 162 when possible. | 178 when possible. |
| 163 | 179 |
| 164 The JUnits tests are usually following the pattern of *target*\_junit\_tests, | 180 The JUnits tests are usually following the pattern of *target*\_junit\_tests, |
| 165 for example, `content_junit_tests` and `chrome_junit_tests`. | 181 for example, `content_junit_tests` and `chrome_junit_tests`. |
| 166 | 182 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 See | 304 See |
| 289 https://sites.google.com/a/chromium.org/dev/developers/testing/webkit-layout-tes
ts | 305 https://sites.google.com/a/chromium.org/dev/developers/testing/webkit-layout-tes
ts |
| 290 | 306 |
| 291 ## Running GPU tests | 307 ## Running GPU tests |
| 292 | 308 |
| 293 (e.g. the "Android Debug (Nexus 7)" bot on the chromium.gpu waterfall) | 309 (e.g. the "Android Debug (Nexus 7)" bot on the chromium.gpu waterfall) |
| 294 | 310 |
| 295 See http://www.chromium.org/developers/testing/gpu-testing for details. Use | 311 See http://www.chromium.org/developers/testing/gpu-testing for details. Use |
| 296 --browser=android-content-shell. Examine the stdio from the test invocation on | 312 --browser=android-content-shell. Examine the stdio from the test invocation on |
| 297 the bots to see arguments to pass to src/content/test/gpu/run\_gpu\_test.py. | 313 the bots to see arguments to pass to src/content/test/gpu/run\_gpu\_test.py. |
| OLD | NEW |