fate: pass additional variables to test script
[libav.git] / tests / fate-run.sh
CommitLineData
2fad0977
MR
1#! /bin/sh
2
3base=$(dirname $0)
4. "${base}/md5.sh"
5
6test="${1#fate-}"
7SAMPLES_PATH=$2
8target_exec=$3
9BUILD_PATH=$4
10command=$5
3ade7d32 11cmp=${6:-diff}
2fad0977 12
3ade7d32
MR
13ref=${7:-"${base}/ref/fate/${test}"}
14fuzz=$8
2fad0977
MR
15outdir="tests/data/fate"
16outfile="${outdir}/${test}"
17
18mkdir -p "$outdir"
19
20eval $target_exec $command > "$outfile" 2>/dev/null
3ade7d32
MR
21
22case $cmp in
23 diff) diff -u -w "$ref" "$outfile" ;;
24esac