[SCM] libav/experimental: fate: ensure file sizes match in oneoff tests

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:10:56 UTC 2013


The following commit has been merged in the experimental branch:
commit 83b203dc94e05eab5e14dd07e00959ace9bad422
Author: Måns Rullgård <mans at mansr.com>
Date:   Sat Jul 10 16:58:00 2010 +0000

    fate: ensure file sizes match in oneoff tests
    
    Originally committed as revision 24164 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index ba5d09d..83befed 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

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list