summaryrefslogtreecommitdiff
path: root/tests/regression.sh
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-01-14 23:22:49 +0000
committerDiego Biurrun <diego@biurrun.de>2007-01-14 23:22:49 +0000
commit8deb894f11e3e5821fd07c77a5201b8b07805ca1 (patch)
treee9a3791f83868a45142117a4b77115f3f7fec824 /tests/regression.sh
parentd9c211ee74aa592495d04310738d8f14171a2d62 (diff)
downloadffmpeg-8deb894f11e3e5821fd07c77a5201b8b07805ca1.tar.gz
Add two more variables for temporary files.
Originally committed as revision 7512 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/regression.sh')
-rwxr-xr-xtests/regression.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/regression.sh b/tests/regression.sh
index a2374a60cc..fbae05b730 100755
--- a/tests/regression.sh
+++ b/tests/regression.sh
@@ -93,6 +93,8 @@ ffmpeg="../ffmpeg_g"
tiny_psnr="./tiny_psnr"
reffile="$2"
benchfile="$datadir/ffmpeg.bench"
+bench="$datadir/bench.tmp"
+bench2="$datadir/bench2.tmp"
raw_src="$3/%02d.pgm"
raw_dst="$datadir/out.yuv"
raw_ref="$datadir/ref.yuv"
@@ -117,7 +119,7 @@ do_ffmpeg()
f="$1"
shift
echo $ffmpeg $FFMPEG_OPTS $*
- $ffmpeg $FFMPEG_OPTS -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
+ $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 $f >> $logfile
@@ -128,8 +130,8 @@ do_ffmpeg()
else
wc -c $f >> $logfile
fi
- expr "`cat $datadir/bench.tmp`" : '.*utime=\(.*s\)' > $datadir/bench2.tmp
- echo `cat $datadir/bench2.tmp` $f >> $benchfile
+ expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
+ echo `cat $bench2` $f >> $benchfile
}
do_ffmpeg_crc()
@@ -148,11 +150,11 @@ do_ffmpeg_nocheck()
f="$1"
shift
echo $ffmpeg $FFMPEG_OPTS $*
- $ffmpeg $FFMPEG_OPTS -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
+ $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 $datadir/bench.tmp`" : '.*utime=\(.*s\)' > $datadir/bench2.tmp
- echo `cat $datadir/bench2.tmp` $f >> $benchfile
+ expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
+ echo `cat $bench2` $f >> $benchfile
}
do_video_decoding()