Index: gm/tests/run.sh |
=================================================================== |
--- gm/tests/run.sh (revision 11031) |
+++ gm/tests/run.sh (working copy) |
@@ -163,6 +163,11 @@ |
$GM_BINARY --hierarchy --match selftest1 $CONFIGS -r $THIS_IMAGE_DIR \ |
--writeJsonSummaryPath $JSON_DIR/different-pixels.json |
+ # TODO: for now, this just copies in the different-pixels.json input file |
epoger
2013/08/30 19:32:03
Patchset 1 adds a new "different-pixels-ignore-som
|
+ # verbatim. In the next patchset, I will use "sed" to change one |
+ # ignore-failure from false to true. |
+ cp $JSON_DIR/different-pixels.json $JSON_DIR/different-pixels-ignore-some-failures.json |
+ |
THIS_IMAGE_DIR=$IMAGES_DIR/different-pixels-no-hierarchy |
mkdir -p $THIS_IMAGE_DIR |
$GM_BINARY --match selftest2 $CONFIGS -w $THIS_IMAGE_DIR |
@@ -193,6 +198,10 @@ |
gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/images/different-pixels" "$GM_OUTPUTS/compared-against-different-pixels-images" |
gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels.json" "$GM_OUTPUTS/compared-against-different-pixels-json" |
+# Compare different pixels, but with a SUBSET of the expectations marked as |
+# ignore-failure. |
+gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/json/different-pixels-ignore-some-failures.json" "$GM_OUTPUTS/ignoring-some-failures" |
+ |
# Compare generated image against an empty "expected image" dir. |
gm_test "--verbose --hierarchy --match selftest1 $CONFIGS -r $GM_INPUTS/images/empty-dir" "$GM_OUTPUTS/compared-against-empty-dir" |
@@ -205,9 +214,8 @@ |
# 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. |
+# Test what happens if run without -r (no expected-results.json to compare |
+# against). |
gm_test "--verbose --hierarchy --match selftest1 $CONFIGS" "$GM_OUTPUTS/no-readpath" |
# Test what happens if a subset of the renderModes fail (e.g. pipe) |