mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
fate: ensure file sizes match in oneoff tests
Originally committed as revision 24164 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6a59b98445
commit
83b203dc94
@ -18,7 +18,9 @@ outfile="${outdir}/${test}"
|
|||||||
oneoff(){
|
oneoff(){
|
||||||
psnr=$(tests/tiny_psnr "$1" "$2" 2 0 0)
|
psnr=$(tests/tiny_psnr "$1" "$2" 2 0 0)
|
||||||
max=$(expr "$psnr" : '.*MAXDIFF: *\([0-9]*\)')
|
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"
|
echo "$psnr"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user