diff options
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh new file mode 100755 index 0000000000..899580fa71 --- /dev/null +++ b/tests/fate-run.sh @@ -0,0 +1,19 @@ +#! /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" |