You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
312B

  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"