3 export PATH="$(pwd):${PATH}"
10 sh ./${cmd} >${t}.out 2>${t}.err
13 # strip carriage returns from error output
14 # in case we are trying to run on MinGW
15 tr -d '
\r' >${t}.xerr <${t}.err
23 if ! cmp -s ${exp} ${got}
26 echo FAILED: ${got}: $(cat ${cmd})
33 then rm -f ${t}.out ${t}.err ${t}.rc