summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-03-10 18:53:19 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-15 14:40:24 -0400
commit5ecadc662042f3d005a1a01618f448c9b1c44afc (patch)
treeaa2be0f773262e86ba5e39ac69139283e329acf8 /tests/fate-run.sh
parent0720d263ea2bdd28cd3be1d1e802d49d7c680b8c (diff)
FATE: allow tests to set CMP_SHIFT to pass to tiny_psnr
This will allow adjusting for any encoder or decoder delay when doing comparisons.
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 419a3ebc8a..94d7cf8a0c 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -18,6 +18,7 @@ fuzz=${8:-1}
threads=${9:-1}
thread_type=${10:-frame+slice}
cpuflags=${11:-all}
+cmp_shift=${12:-0}
outdir="tests/data/fate"
outfile="${outdir}/${test}"
@@ -26,7 +27,7 @@ cmpfile="${outdir}/${test}.diff"
repfile="${outdir}/${test}.rep"
do_tiny_psnr(){
- psnr=$(tests/tiny_psnr "$1" "$2" 2 0 0)
+ psnr=$(tests/tiny_psnr "$1" "$2" 2 $cmp_shift 0)
val=$(expr "$psnr" : ".*$3: *\([0-9.]*\)")
size1=$(expr "$psnr" : '.*bytes: *\([0-9]*\)')
size2=$(expr "$psnr" : '.*bytes:[ 0-9]*/ *\([0-9]*\)')