Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1360)

Side by Side Diff: gm/tests/run.sh

Issue 12825005: gm self-test: make sure we report failures in individual rendering modes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: update gm self-test expectations to match patchset 3 Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Self-tests for gm, based on tools/tests/run.sh 3 # Self-tests for gm, based on tools/tests/run.sh
4 # 4 #
5 # These tests are run by the Skia_PerCommit_House_Keeping bot at every commit, 5 # These tests are run by the Skia_PerCommit_House_Keeping bot at every commit,
6 # so make sure that they still pass when you make changes to gm! 6 # so make sure that they still pass when you make changes to gm!
7 # 7 #
8 # TODO: because this is written as a shell script (instead of, say, Python) 8 # TODO: because this is written as a shell script (instead of, say, Python)
9 # it only runs on Linux and Mac. 9 # it only runs on Linux and Mac.
10 # See https://code.google.com/p/skia/issues/detail?id=677 10 # See https://code.google.com/p/skia/issues/detail?id=677
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 gm_test "--hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pix els.json" "$GM_OUTPUTS/compared-against-different-pixels-json" 147 gm_test "--hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pix els.json" "$GM_OUTPUTS/compared-against-different-pixels-json"
148 148
149 # Compare generated image against an empty "expected image" dir. 149 # Compare generated image against an empty "expected image" dir.
150 gm_test "--hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/images/empty-dir" "$GM_OUTPUTS/compared-against-empty-dir" 150 gm_test "--hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/images/empty-dir" "$GM_OUTPUTS/compared-against-empty-dir"
151 151
152 # If run without "-r", the JSON's "actual-results" section should contain 152 # If run without "-r", the JSON's "actual-results" section should contain
153 # actual checksums marked as "failure-ignored", but the "expected-results" 153 # actual checksums marked as "failure-ignored", but the "expected-results"
154 # section should be empty. 154 # section should be empty.
155 gm_test "--hierarchy --match selftest1 $CONFIGS" "$GM_OUTPUTS/no-readpath" 155 gm_test "--hierarchy --match selftest1 $CONFIGS" "$GM_OUTPUTS/no-readpath"
156 156
157 # Test what happens if a subset of the drawing methods fail (e.g. pipe)
158 gm_test "--simulatePipePlaybackFailure --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/identical-pixels.json" "$GM_OUTPUTS/pipe-playback-failure"
159
157 echo "All tests passed." 160 echo "All tests passed."
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698