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

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

Issue 1259963005: Add a license header for testing/tools/make_expected.sh. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@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
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # Copyright 2015 PDFium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6 #
3 # Script to generate expected result files. 7 # Script to generate expected result files.
4 # 8 #
5 set -e 9 set -e
6 while (( "$#" )); do 10 while (( "$#" )); do
7 INFILE="$1" 11 INFILE="$1"
8 echo $INFILE | grep -qs ' ' && echo space in filename detected && exit 1 12 echo $INFILE | grep -qs ' ' && echo space in filename detected && exit 1
9 out/Debug/pdfium_test --png $INFILE 13 out/Debug/pdfium_test --png $INFILE
10 RESULTS="$INFILE.*.png" 14 RESULTS="$INFILE.*.png"
11 for RESULT in $RESULTS ; do 15 for RESULT in $RESULTS ; do
12 EXPECTED=`echo -n $RESULT | sed 's/[.]pdf[.]/_expected.pdf./'` 16 EXPECTED=`echo -n $RESULT | sed 's/[.]pdf[.]/_expected.pdf./'`
13 mv $RESULT $EXPECTED 17 mv $RESULT $EXPECTED
14 done 18 done
15 shift 19 shift
16 done 20 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