#!/bin/bash
#
# Script to generate expected result files.
#
set -e
while (( "$#" )); do
  INFILE="$1"
  echo $INFILE | grep -qs ' ' && echo space in filename detected && exit 1
  out/Debug/pdfium_test --png $INFILE
  RESULTS="$INFILE.*.png"
  for RESULT in $RESULTS ; do
      EXPECTED=`echo -n $RESULT | sed 's/[.]pdf[.]/_expected.pdf./'`
      mv $RESULT $EXPECTED
  done
  shift
done

Add simple script to regenerate expected results.
Add simple script to regenerate expected results.

(I've been doing this by hand for far too long).

R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1264873005 .
