From dd65909a7875b754426cacd17199945c66452cc8 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 19 Oct 2009 21:54:37 +0000 Subject: [PATCH] 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 --- tests/codec-regression.sh | 13 ++++++++----- 1 file 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"