Debian Codegraph @

debian/tests/runtest

raw
1 #!/bin/sh
2 set -e
3
4 : ${PD:=pd}
5 scriptdir=${0%/*}
6
7 for d in "$@"; do
8 patch=${d%.pd}.pd
9 [ -e "${patch}" ] || patch="${scriptdir}/${patch}"
10 if [ ! -e "${patch}" ]; then
11 echo "cannot find patch ${patch}" 1>&2
12 exit 127
13 fi
14 echo "testing ${d} (as ${patch})"
15 ${PD} -noprefs -verbose -nogui -nrt -nosound -nomidi \
16 -send "pd quit 2" \
17 -open "${patch}" 2>&1
18 done