blob: c6e50dc652ed0220861b432e7d4022554246e9dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|