Commit 83b203dc authored by Måns Rullgård's avatar Måns Rullgård

fate: ensure file sizes match in oneoff tests

Originally committed as revision 24164 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6a59b984
......@@ -18,7 +18,9 @@ outfile="${outdir}/${test}"
oneoff(){
psnr=$(tests/tiny_psnr "$1" "$2" 2 0 0)
max=$(expr "$psnr" : '.*MAXDIFF: *\([0-9]*\)')
if [ $max -gt ${3:-1} ]; then
size1=$(expr "$psnr" : '.*bytes: *\([0-9]*\)')
size2=$(expr "$psnr" : '.*bytes:[ 0-9]*/ *\([0-9]*\)')
if [ $max -gt ${3:-1} ] || [ $size1 != $size2 ]; then
echo "$psnr"
return 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment