OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 # | |
3 # Script to generate expected result files. | |
4 # | |
5 | |
6 while (( "$#" )); do | |
7 INFILE="$1" | |
8 out/Debug/pdfium_test --png $INFILE | |
9 RESULTS="$INFILE.*.png" | |
10 for RESULT in $RESULTS ; do | |
Lei Zhang
2015/07/30 21:18:16
This won't work correctly if there's spaces in fil
| |
11 EXPECTED=`echo -n $RESULT | sed 's/[.]pdf[.]/_expected.pdf./'` | |
12 mv $RESULT $EXPECTED | |
13 done | |
14 shift | |
15 done | |
OLD | NEW |