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

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: 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
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
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