aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-10 16:58:00 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-10 16:58:00 +0000
commit83b203dc94e05eab5e14dd07e00959ace9bad422 (patch)
tree1d441d951c9e6209d2adb69bf3e515b50c17eab6 /tests/fate-run.sh
parent6a59b98445d4fef09024716dfa80f6d5170bded7 (diff)
downloadffmpeg-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-xtests/fate-run.sh4
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