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

Issue 7306071: gm: Add ability to compare against checksums (as opposed to image files) (Closed)

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

Description

gm: Add ability to compare against checksums (as opposed to image files) Committed: https://code.google.com/p/skia/source/detail?r=7724

Patch Set 1 #

Total comments: 6

Patch Set 2 : added_readFileIntoSkData #

Total comments: 4

Patch Set 3 : sync_to_head #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -21 lines) Patch
M gm/gm_expectations.h View 1 2 6 chunks +184 lines, -7 lines 0 comments Download
M gm/gmmain.cpp View 1 2 2 chunks +3 lines, -14 lines 0 comments Download
A gm/tests/outputs/compared-against-different-pixels-json/output-expected/command_line View 1 chunk +1 line, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-different-pixels-json/output-expected/json-summary.txt View 1 chunk +25 lines, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-different-pixels-json/output-expected/return_value View 1 chunk +1 line, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-different-pixels-json/output-expected/stdout View 1 chunk +3 lines, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-identical-bytes-json/output-expected/command_line View 1 chunk +1 line, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-identical-bytes-json/output-expected/json-summary.txt View 1 chunk +25 lines, -0 lines 1 comment Download
A gm/tests/outputs/compared-against-identical-bytes-json/output-expected/return_value View 1 chunk +1 line, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-identical-bytes-json/output-expected/stdout View 1 chunk +3 lines, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-identical-pixels-json/output-expected/command_line View 1 chunk +1 line, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-identical-pixels-json/output-expected/json-summary.txt View 1 chunk +25 lines, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-identical-pixels-json/output-expected/return_value View 1 chunk +1 line, -0 lines 0 comments Download
A gm/tests/outputs/compared-against-identical-pixels-json/output-expected/stdout View 1 chunk +3 lines, -0 lines 0 comments Download
M gm/tests/run.sh View 1 2 1 chunk +3 lines, -0 lines 1 comment Download

Messages

Total messages: 5
epoger
I'll happily take a review from either one of you guys, whoever wants it... https://codereview.appspot.com/7306071/diff/1/gm/gm_expectations.h ...
11 years, 10 months ago (2013-02-08 21:01:33 UTC) #1
EricB
This LGTM with a comment/suggestion. https://codereview.appspot.com/7306071/diff/1/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.appspot.com/7306071/diff/1/gm/gm_expectations.h#newcode115 gm/gm_expectations.h:115: SkASSERT(checksumElement.isIntegral()); I realize that ...
11 years, 10 months ago (2013-02-08 22:23:19 UTC) #2
epoger
PTAL at patchset 2... https://codereview.appspot.com/7306071/diff/5001/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.appspot.com/7306071/diff/5001/gm/gm_expectations.h#newcode106 gm/gm_expectations.h:106: fprintf(stderr, "found non-boolean json value ...
11 years, 10 months ago (2013-02-12 18:23:52 UTC) #3
EricB
LGTM! https://codereview.appspot.com/7306071/diff/5001/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.appspot.com/7306071/diff/5001/gm/gm_expectations.h#newcode106 gm/gm_expectations.h:106: fprintf(stderr, "found non-boolean json value for key '%s' ...
11 years, 10 months ago (2013-02-12 19:58:17 UTC) #4
rmistry
11 years, 10 months ago (2013-02-13 20:18:05 UTC) #5
Message was sent while issue was closed.
https://codereview.appspot.com/7306071/diff/2003/gm/tests/outputs/compared-ag...
File
gm/tests/outputs/compared-against-identical-bytes-json/output-expected/json-summary.txt
(right):

https://codereview.appspot.com/7306071/diff/2003/gm/tests/outputs/compared-ag...
gm/tests/outputs/compared-against-identical-bytes-json/output-expected/json-summary.txt:1:
{
What will the summary JSON look like when we do GM comparisons of 9k images, it
will list every single file we compare?
We could save some space by truncating this output in terms of whitespace, I am
not sure if the savings will be significant or not, we can always explore this
option when we get there.

https://codereview.appspot.com/7306071/diff/2003/gm/tests/run.sh
File gm/tests/run.sh (right):

https://codereview.appspot.com/7306071/diff/2003/gm/tests/run.sh#newcode47
gm/tests/run.sh:47: # - writing json summary into
$2/$OUTPUT_ACTUAL_SUBDIR/json-summary.txt
A better name for this is probably summary.json. Not a big deal here because its
for tests but in production we should end with .json
Sign in to reply to this message.

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