summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-10-19 21:54:37 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-10-19 21:54:37 +0000
commitdd65909a7875b754426cacd17199945c66452cc8 (patch)
treea718291802ec136c6f3a369173447442a3857253 /tests
parentc0da46c8e040e586165d11b7061f15e1046d0fb9 (diff)
Give symbolic names to the positional parameters of the
codec-regression.sh script. Originally committed as revision 20321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rwxr-xr-xtests/codec-regression.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index 3cac096d59..933bb5251f 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -7,6 +7,9 @@
set -e
+test_ref=$2
+raw_src_dir=$3
+outfile_prefix=$4
target_exec=$5
target_path=$6
@@ -14,9 +17,9 @@ datadir="./tests/data"
target_datadir="${target_path}/${datadir}"
test="${1#regtest-}"
-this="$test.$2"
+this="$test.$test_ref"
logfile="$datadir/$this.regression"
-outfile="$datadir/$4-"
+outfile="$datadir/${outfile_prefix}-"
eval do_$test=y
@@ -26,12 +29,12 @@ tiny_psnr="tests/tiny_psnr"
benchfile="$datadir/$this.bench"
bench="$datadir/$this.bench.tmp"
bench2="$datadir/$this.bench2.tmp"
-raw_src="${target_path}/$3/%02d.pgm"
+raw_src="${target_path}/$raw_src_dir/%02d.pgm"
raw_dst="$datadir/$this.out.yuv"
-raw_ref="$datadir/$2.ref.yuv"
+raw_ref="$datadir/$test_ref.ref.yuv"
pcm_src="$target_datadir/asynth1.sw"
pcm_dst="$datadir/$this.out.wav"
-pcm_ref="$datadir/$2.ref.wav"
+pcm_ref="$datadir/$test_ref.ref.wav"
crcfile="$datadir/$this.crc"
target_crcfile="$target_datadir/$this.crc"