aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.sh
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-09-28 10:15:10 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-09-28 10:15:10 +0000
commit96331849f73b6a5d5e05ce6584fc597e80a69c34 (patch)
tree06cb5f534dddc5b4fad338695f12d59316bef7a9 /tests/runtests.sh
parent1985d7e33f6b03337ac20ed8dc427ba75041d05c (diff)
allow to set pd-binary with ${PD}
svn path=/trunk/externals/zexy/; revision=6043
Diffstat (limited to 'tests/runtests.sh')
-rwxr-xr-xtests/runtests.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/runtests.sh b/tests/runtests.sh
index 47573c9..e8ce302 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -4,6 +4,11 @@
## find zexy (either in ../src or ../)
## if it is not there, assume it is split into externals
+if [ "x${PD}" = "x" ]
+then
+ PD=pd
+fi
+
#SUFFIX="$$"
SUFFIX=$(date +%y%m%d-%H%M%S)
@@ -17,7 +22,7 @@ ls -1 */*.pd | sed 's/\.pd/;/' > ${RUNTESTS_TXT}
LIBFLAGS="-path ../src:../ -lib zexy -path ../abs/"
function run_nogui() {
- pd ${LIBFLAGS} -nogui runtests_nogui.pd > ${RUNTESTS_LOG} 2>&1
+ ${PD} ${LIBFLAGS} -nogui runtests_nogui.pd > ${RUNTESTS_LOG} 2>&1
NUMTESTS=`grep -c . ${RUNTESTS_TXT}`
echo "regression-test: ${NUMTESTS} tests total" >> ${RUNTESTS_LOG}
@@ -25,7 +30,7 @@ function run_nogui() {
}
function run_withgui() {
- pd ${LIBFLAGS} -stderr runtests.pd > ${RUNTESTS_LOG} 2>&1
+ ${PD} ${LIBFLAGS} -stderr runtests.pd > ${RUNTESTS_LOG} 2>&1
}
if test "x$1" = "x-gui"; then