Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1233)

Issue 6940053: Add --writeJsonSummary option to gm (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by epoger
Modified:
11 years, 6 months ago
Reviewers:
EricB
CC:
skia-review_googlegroups.com, edisonn, bungeman
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add --writeJsonSummary option to gm This writes out a JSON file containing expected and actual checksum values for every test. Next step: allow the same checksum file to be compared against, instead of PNG files. Committed: https://code.google.com/p/skia/source/detail?r=6843

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -10 lines) Patch
gm/gmmain.cpp View 1 9 chunks +81 lines, -7 lines 0 comments Download
gm/tests/inputs/empty-dir/README View 1 1 chunk +1 line, -0 lines 0 comments Download
gm/tests/outputs/compared-against-different-pixels/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
gm/tests/outputs/compared-against-different-pixels/output-expected/json-summary.txt View 1 1 chunk +17 lines, -0 lines 0 comments Download
gm/tests/outputs/compared-against-empty-dir/output-expected/command_line View 1 1 chunk +1 line, -0 lines 0 comments Download
gm/tests/outputs/compared-against-empty-dir/output-expected/images/8888/dashing2.png View 1 0 chunks +-1 lines, --1 lines 0 comments Download
gm/tests/outputs/compared-against-empty-dir/output-expected/json-summary.txt View 1 1 chunk +17 lines, -0 lines 2 comments Download
gm/tests/outputs/compared-against-empty-dir/output-expected/return_value View 1 1 chunk +1 line, -0 lines 0 comments Download
gm/tests/outputs/compared-against-empty-dir/output-expected/stdout View 1 1 chunk +5 lines, -0 lines 0 comments Download
gm/tests/outputs/compared-against-identical-bytes/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
gm/tests/outputs/compared-against-identical-bytes/output-expected/json-summary.txt View 1 1 chunk +17 lines, -0 lines 0 comments Download
gm/tests/outputs/compared-against-identical-pixels/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
gm/tests/outputs/compared-against-identical-pixels/output-expected/json-summary.txt View 1 1 chunk +17 lines, -0 lines 0 comments Download
gm/tests/run.sh View 1 3 chunks +5 lines, -1 line 0 comments Download
gyp/gm.gyp View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5
epoger
+Edi/Ben in CC, just so they know what I've got cooking.
11 years, 6 months ago (2012-12-13 21:42:39 UTC) #1
epoger
https://codereview.appspot.com/6940053/diff/1/gm/tests/outputs/compared-against-different-pixels/output-expected/json-summary.txt File gm/tests/outputs/compared-against-different-pixels/output-expected/json-summary.txt (right): https://codereview.appspot.com/6940053/diff/1/gm/tests/outputs/compared-against-different-pixels/output-expected/json-summary.txt#newcode10 gm/tests/outputs/compared-against-different-pixels/output-expected/json-summary.txt:10: "checksums" : [ 15161495552186645995 ], The idea is that ...
11 years, 6 months ago (2012-12-13 21:45:16 UTC) #2
EricB
Awesome! Just a couple of comments. https://codereview.appspot.com/6940053/diff/1/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.appspot.com/6940053/diff/1/gm/gmmain.cpp#newcode85 gm/gmmain.cpp:85: const static char ...
11 years, 6 months ago (2012-12-13 22:00:06 UTC) #3
epoger
https://codereview.appspot.com/6940053/diff/1/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.appspot.com/6940053/diff/1/gm/gmmain.cpp#newcode85 gm/gmmain.cpp:85: const static char kJsonKey_ExpectedResults_Ignore[] = "ignore"; On 2012/12/13 22:00:07, ...
11 years, 6 months ago (2012-12-14 18:26:03 UTC) #4
EricB
11 years, 6 months ago (2012-12-14 20:02:22 UTC) #5
LGTM!

https://codereview.appspot.com/6940053/diff/6001/gm/tests/outputs/compared-ag...
File
gm/tests/outputs/compared-against-empty-dir/output-expected/json-summary.txt
(right):

https://codereview.appspot.com/6940053/diff/6001/gm/tests/outputs/compared-ag...
gm/tests/outputs/compared-against-empty-dir/output-expected/json-summary.txt:13:
"checksums" : null,
On 2012/12/14 18:26:03, epoger wrote:
> This new test shows that a missing expected image is interpreted as: no known
> checksum to compare against, and ignore any failure.

Nice!  This should make rebaselining super easy.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b