| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
test_py() { |
| 4 |
logfile=test-$$.log |
| 5 |
"$1" --csound-executable=csound --source-dir="$2" | tee "${logfile}" |
| 6 |
egrep "Tests Failed: [^0]" "${logfile}" 1>&2 |
| 7 |
rm -f "${logfile}" |
| 8 |
} |
| 9 |
|
| 10 |
for f in tests/commandline/test.py tests/regression/test.py; do |
| 11 |
test_py "${f}" "${f%/*}/" |
| 12 |
done |