summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-09 00:40:45 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-09 00:40:45 +0000
commit3ade7d32c1f17f2f833ff17c2cbd46d6de66104c (patch)
tree2c22d6c989cb39414f2eb32204e281c4cee886d1 /tests
parentcb0067ec258d2ef4c2441eb54aafcec88eb9d400 (diff)
fate: pass additional variables to test script
This passes the following additional variables to the test script: - CMP method to use comparing output with reference, default 'diff' - REF reference file, default 'tests/ref/fate/${test}' - FUZZ maximum fuzz factor in comparison, meaning depends on CMP Originally committed as revision 24133 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rwxr-xr-xtests/fate-run.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 899580fa71..39f42ffcc3 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -8,12 +8,17 @@ SAMPLES_PATH=$2
target_exec=$3
BUILD_PATH=$4
command=$5
+cmp=${6:-diff}
-ref="${base}/ref/fate/${test}"
+ref=${7:-"${base}/ref/fate/${test}"}
+fuzz=$8
outdir="tests/data/fate"
outfile="${outdir}/${test}"
mkdir -p "$outdir"
eval $target_exec $command > "$outfile" 2>/dev/null
-diff -u -w "$ref" "$outfile"
+
+case $cmp in
+ diff) diff -u -w "$ref" "$outfile" ;;
+esac