fate-run.sh 312 B

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