Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: testing/tools/make_expected.sh

Issue 1264873005: Add simple script to regenerate expected results. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: space in filename Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2 #
3 # Script to generate expected result files.
4 #
5 set -e
6 while (( "$#" )); do
7 INFILE="$1"
8 echo $INFILE | grep -qs ' ' && echo space in filename detected && exit 1
9 out/Debug/pdfium_test --png $INFILE
10 RESULTS="$INFILE.*.png"
11 for RESULT in $RESULTS ; do
12 EXPECTED=`echo -n $RESULT | sed 's/[.]pdf[.]/_expected.pdf./'`
13 mv $RESULT $EXPECTED
14 done
15 shift
16 done
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698