[FFmpeg-cvslog] r24164 - trunk/tests/fate-run.sh

mru subversion
Sat Jul 10 18:58:00 CEST 2010


Author: mru
Date: Sat Jul 10 18:58:00 2010
New Revision: 24164

Log:
fate: ensure file sizes match in oneoff tests

Modified:
   trunk/tests/fate-run.sh

Modified: trunk/tests/fate-run.sh
==============================================================================
--- trunk/tests/fate-run.sh	Sat Jul 10 18:51:04 2010	(r24163)
+++ trunk/tests/fate-run.sh	Sat Jul 10 18:58:00 2010	(r24164)
@@ -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



More information about the ffmpeg-cvslog mailing list