mirror of https://git.ffmpeg.org/ffmpeg.git
25 lines
386 B
Bash
Executable File
25 lines
386 B
Bash
Executable File
#! /bin/sh
|
|
|
|
base=$(dirname $0)
|
|
. "${base}/md5.sh"
|
|
|
|
test="${1#fate-}"
|
|
SAMPLES_PATH=$2
|
|
target_exec=$3
|
|
BUILD_PATH=$4
|
|
command=$5
|
|
cmp=${6:-diff}
|
|
|
|
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
|
|
|
|
case $cmp in
|
|
diff) diff -u -w "$ref" "$outfile" ;;
|
|
esac
|