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