mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
2fad097788
This adds a "fate" make target which runs the full FATE test suite. Individual tests can be run with "make fate-$testname". The location of the FATE test samples must be specified with the --samples=PATH option to configure. The tests/fate-update.sh script regenerates the references files and test list from the online FATE database. These are checked in since generating them requires non-standard tools. Originally committed as revision 22552 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 lines
312 B
Bash
Executable File
20 lines
312 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
|
|
|
|
ref="${base}/ref/fate/${test}"
|
|
outdir="tests/data/fate"
|
|
outfile="${outdir}/${test}"
|
|
|
|
mkdir -p "$outdir"
|
|
|
|
eval $target_exec $command > "$outfile" 2>/dev/null
|
|
diff -u -w "$ref" "$outfile"
|