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
11
12ref="${base}/ref/fate/${test}"
13outdir="tests/data/fate"
14outfile="${outdir}/${test}"
15
16mkdir -p "$outdir"
17
18eval $target_exec $command > "$outfile" 2>/dev/null
19diff -u -w "$ref" "$outfile"
20