aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2018-02-20 14:48:40 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-21 20:49:56 +0000
commitf637cc01f8f28d920a1d5b792193e97e8dd63e42 (patch)
tree69736bd4fa9f16b67532d2c3a5cd3123766c8001 /tools
parentcdcadf7a29d3f15389f828ced2d98f2be9b0c460 (diff)
SkQP: run a single test
PLEASE NOTE: Instructions on running `am instrument` for the SkQP APK have changed. To run a single test, see the section "Running a single test" in `tools/skqp/README.md`. No-Try: true Change-Id: I0a2cbc47755929d6c6a927a3591ff98046779c77 Reviewed-on: https://skia-review.googlesource.com/108780 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/skqp/README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/skqp/README.md b/tools/skqp/README.md
index 3583d2abd6..53daf25d6d 100644
--- a/tools/skqp/README.md
+++ b/tools/skqp/README.md
@@ -64,7 +64,7 @@ How to build and run the SkQP tests
platform_tools/android/bin/android_build_app -C out/skqp-arm skqp
adb install -r out/skqp-arm/skqp.apk
adb logcat -c
- adb shell am instrument -w org.skia.skqp/android.support.test.runner.AndroidJUnitRunner
+ adb shell am instrument -w org.skia.skqp
6. Monitor the output with:
@@ -81,6 +81,21 @@ How to build and run the SkQP tests
adb pull $OUTPUT_LOCATION /tmp/
tools/skqp/sysopen.py /tmp/output/skqp_report/report.html
+Running a single test
+---------------------
+
+To run a single test, for example `gles/aarectmodes`:
+
+ adb shell am instrument -e skqp_filter gles/aarectmodes -w org.skia.skqp
+
+Two run multiple tests, simply separate them with commas:
+
+ adb shell am instrument -e skqp_filter gles/aarectmodes,vk/aarectmodes -w org.skia.skqp
+
+Unit tests can be run with the `unitTest/` prefix:
+
+ adb shell am instrument -e skqp_filter unitTest/GrSurface -w org.skia.skqp
+
Run as a non-APK executable
---------------------------