Chromium Code Reviews| Index: gm/tests/run.sh |
| =================================================================== |
| --- gm/tests/run.sh (revision 9647) |
| +++ gm/tests/run.sh (working copy) |
| @@ -108,6 +108,9 @@ |
| for IMAGEFILE in $(find $ACTUAL_OUTPUT_DIR -name *.png); do |
| echo "[contents of $IMAGEFILE]" >$IMAGEFILE |
| done |
| + for IMAGEFILE in $(find $ACTUAL_OUTPUT_DIR -name *.pdf); do |
| + echo "[contents of $IMAGEFILE]" >$IMAGEFILE |
| + done |
|
edisonn
2013/06/21 14:04:26
Just a general comment: The thing that I am worrie
|
| if [ -d $ACTUAL_OUTPUT_DIR/mismatchPath ]; then |
| for MISMATCHDIR in $(find $ACTUAL_OUTPUT_DIR/mismatchPath -mindepth 1 -type d); do |
| echo "Created additional file to make sure directory isn't empty, because self-test cannot handle empty directories." >$MISMATCHDIR/bogusfile |
| @@ -199,6 +202,9 @@ |
| # Compare generated image against an empty "expected image" dir, but NOT in verbose mode. |
| gm_test "--hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/images/empty-dir" "$GM_OUTPUTS/nonverbose" |
| +# Add pdf to the list of configs. |
| +gm_test "--verbose --hierarchy --match selftest1 $CONFIGS pdf -r $GM_INPUTS/json/identical-bytes.json" "$GM_OUTPUTS/add-config-pdf" |
| + |
| # If run without "-r", the JSON's "actual-results" section should contain |
| # actual checksums marked as "failure-ignored", but the "expected-results" |
| # section should be empty. |