Chromium Code Reviews| Index: testing/tools/make_expected.sh |
| diff --git a/testing/tools/make_expected.sh b/testing/tools/make_expected.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..282d41611c71fb777ba6340e82384754d235c44b |
| --- /dev/null |
| +++ b/testing/tools/make_expected.sh |
| @@ -0,0 +1,15 @@ |
| +#!/bin/bash |
| +# |
| +# Script to generate expected result files. |
| +# |
| + |
| +while (( "$#" )); do |
| + INFILE="$1" |
| + out/Debug/pdfium_test --png $INFILE |
| + RESULTS="$INFILE.*.png" |
| + for RESULT in $RESULTS ; do |
|
Lei Zhang
2015/07/30 21:18:16
This won't work correctly if there's spaces in fil
|
| + EXPECTED=`echo -n $RESULT | sed 's/[.]pdf[.]/_expected.pdf./'` |
| + mv $RESULT $EXPECTED |
| + done |
| + shift |
| +done |