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.

1234567891011121314151617
  1. #! /usr/bin/env sh
  2. for tIn in tests/*.in
  3. do
  4. tOut=$(echo "${tIn}" | sed -re 's/(.+).in/\1/')".out"
  5. tmpfile=$(mktemp)
  6. cat "${tIn}" | ./omp-merge-sort --test > "${tmpfile}"
  7. cmp "${tmpfile}" "${tOut}"
  8. res=$?
  9. if [ ${res} -ne 0 ]
  10. then
  11. echo "${tIn} failed"
  12. else
  13. echo "${tIn} succeded"
  14. rm "${tmpfile}"
  15. fi
  16. done