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

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

Issue 15298010: Improve tool that analyzes gm JSON summary (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: sync_to_r9215 Created 7 years, 7 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
« no previous file with comments | « gm/gm_expectations.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # To generate new baselines when gm behavior changes, run gm/tests/rebaseline.sh 8 # To generate new baselines when gm behavior changes, run gm/tests/rebaseline.sh
9 # 9 #
10 # TODO: because this is written as a shell script (instead of, say, Python) 10 # TODO: because this is written as a shell script (instead of, say, Python)
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 # Confirm that IntentionallySkipped tests are recorded as such. 210 # Confirm that IntentionallySkipped tests are recorded as such.
211 gm_test "--verbose --hierarchy --match selftest1 selftest2 $CONFIGS" "$GM_OUTPUT S/intentionally-skipped-tests" 211 gm_test "--verbose --hierarchy --match selftest1 selftest2 $CONFIGS" "$GM_OUTPUT S/intentionally-skipped-tests"
212 212
213 # Ignore some error types (including ExpectationsMismatch) 213 # Ignore some error types (including ExpectationsMismatch)
214 gm_test "--ignoreErrorTypes ExpectationsMismatch NoGpuContext --verbose --hierar chy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels.json" "$GM_OU TPUTS/ignore-expectations-mismatch" 214 gm_test "--ignoreErrorTypes ExpectationsMismatch NoGpuContext --verbose --hierar chy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels.json" "$GM_OU TPUTS/ignore-expectations-mismatch"
215 215
216 # Test non-hierarchical mode. 216 # Test non-hierarchical mode.
217 gm_test "--verbose --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixel s-no-hierarchy.json" "$GM_OUTPUTS/no-hierarchy" 217 gm_test "--verbose --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixel s-no-hierarchy.json" "$GM_OUTPUTS/no-hierarchy"
218 218
219 # Exercise confirm_no_failures_in_json.py 219 # Exercise display_json_results.py
220 PASSING_CASES="compared-against-identical-bytes-json compared-against-identical- pixels-json" 220 PASSING_CASES="compared-against-identical-bytes-json compared-against-identical- pixels-json"
221 FAILING_CASES="compared-against-different-pixels-json" 221 FAILING_CASES="compared-against-different-pixels-json"
222 for CASE in $PASSING_CASES; do 222 for CASE in $PASSING_CASES; do
223 assert_passes "python gm/confirm_no_failures_in_json.py $GM_OUTPUTS/$CASE/$OUT PUT_EXPECTED_SUBDIR/json-summary.txt" 223 assert_passes "python gm/display_json_results.py $GM_OUTPUTS/$CASE/$OUTPUT_EXP ECTED_SUBDIR/json-summary.txt"
224 done 224 done
225 for CASE in $FAILING_CASES; do 225 for CASE in $FAILING_CASES; do
226 assert_fails "python gm/confirm_no_failures_in_json.py $GM_OUTPUTS/$CASE/$OUTP UT_EXPECTED_SUBDIR/json-summary.txt" 226 assert_fails "python gm/display_json_results.py $GM_OUTPUTS/$CASE/$OUTPUT_EXPE CTED_SUBDIR/json-summary.txt"
227 done 227 done
228 228
229 if [ $ENCOUNTERED_ANY_ERRORS == 0 ]; then 229 if [ $ENCOUNTERED_ANY_ERRORS == 0 ]; then
230 echo "All tests passed." 230 echo "All tests passed."
231 exit 0 231 exit 0
232 else 232 else
233 exit 1 233 exit 1
234 fi 234 fi
OLDNEW
« no previous file with comments | « gm/gm_expectations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698