You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
545 B
20 lines
545 B
#!/bin/bash |
|
# |
|
# Copyright 2015 PDFium Authors. All rights reserved. |
|
# Use of this source code is governed by a BSD-style license that can be |
|
# found in the LICENSE file. |
|
# |
|
# 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
|
|
|