Add FATE tests
[ffmpeg.git] / tests / fate-run.sh
1 #! /bin/sh
2
3 base=$(dirname $0)
4 . "${base}/md5.sh"
5
6 test="${1#fate-}"
7 SAMPLES_PATH=$2
8 target_exec=$3
9 BUILD_PATH=$4
10 command=$5
11
12 ref="${base}/ref/fate/${test}"
13 outdir="tests/data/fate"
14 outfile="${outdir}/${test}"
15
16 mkdir -p "$outdir"
17
18 eval $target_exec $command > "$outfile" 2>/dev/null
19 diff -u -w "$ref" "$outfile"