diff options
author | Diego Biurrun <diego@biurrun.de> | 2007-01-15 07:56:15 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-01-15 07:56:15 +0000 |
commit | 9e32e071e19b30f108d8629cd4339116bd5ee0fd (patch) | |
tree | bfc7731df482f97014285625c40ffa24c1077837 /tests | |
parent | e950141a58f35fc29664b4681d9d78c0773b1f34 (diff) | |
download | ffmpeg-streaming-9e32e071e19b30f108d8629cd4339116bd5ee0fd.zip ffmpeg-streaming-9e32e071e19b30f108d8629cd4339116bd5ee0fd.tar.gz |
Revert broken removal of variable indirection.
Originally committed as revision 7532 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/regression.sh | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/tests/regression.sh b/tests/regression.sh index 8a1e095..f032255 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -116,42 +116,45 @@ FFMPEG_OPTS="-y -flags +bitexact -dct fastint -idct simple" do_ffmpeg() { + f="$1" shift echo $ffmpeg $FFMPEG_OPTS $* $ffmpeg $FFMPEG_OPTS -benchmark $* > $bench 2> /tmp/ffmpeg$$ egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:)" /tmp/ffmpeg$$ || true rm -f /tmp/ffmpeg$$ - do_md5sum $1 >> $logfile - if [ $1 = $raw_dst ] ; then - $tiny_psnr $1 $raw_ref >> $logfile - elif [ $1 = $pcm_dst ] ; then - $tiny_psnr $1 $pcm_ref 2 >> $logfile + do_md5sum $f >> $logfile + if [ $f = $raw_dst ] ; then + $tiny_psnr $f $raw_ref >> $logfile + elif [ $f = $pcm_dst ] ; then + $tiny_psnr $f $pcm_ref 2 >> $logfile else - wc -c $1 >> $logfile + wc -c $f >> $logfile fi expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2 - echo `cat $bench2` $1 >> $benchfile + echo `cat $bench2` $f >> $benchfile } do_ffmpeg_crc() { + f="$1" shift echo $ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc $ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc > /tmp/ffmpeg$$ 2>&1 egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:|ffmpeg version| configuration| built)" /tmp/ffmpeg$$ || true rm -f /tmp/ffmpeg$$ - echo "$1 `cat $datadir/ffmpeg.crc`" >> $logfile + echo "$f `cat $datadir/ffmpeg.crc`" >> $logfile } do_ffmpeg_nocheck() { + f="$1" shift echo $ffmpeg $FFMPEG_OPTS $* $ffmpeg $FFMPEG_OPTS -benchmark $* > $bench 2> /tmp/ffmpeg$$ egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:)" /tmp/ffmpeg$$ || true rm -f /tmp/ffmpeg$$ expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2 - echo `cat $bench2` $1 >> $benchfile + echo `cat $bench2` $f >> $benchfile } do_video_decoding() |