diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-10 16:58:00 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-10 16:58:00 +0000 |
commit | 83b203dc94e05eab5e14dd07e00959ace9bad422 (patch) | |
tree | 1d441d951c9e6209d2adb69bf3e515b50c17eab6 /tests/fate-run.sh | |
parent | 6a59b98445d4fef09024716dfa80f6d5170bded7 (diff) | |
download | ffmpeg-83b203dc94e05eab5e14dd07e00959ace9bad422.tar.gz |
fate: ensure file sizes match in oneoff tests
Originally committed as revision 24164 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index ba5d09d233..83befedd37 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -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 |