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 |
epoger
2013/06/18 04:32:27
I had to add this special treatment for the PDF fi
|
+ echo "[contents of $IMAGEFILE]" >$IMAGEFILE |
+ done |
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. |