aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/runtests.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/runtests.sh b/tests/runtests.sh
index e5f4098..4b9c7f7 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -18,18 +18,18 @@ RUNTESTS_LOG=log-runtests.${SUFFIX}
LIBFLAGS="-path ../src:../ -lib zexy -path ../abs/"
-function list_tests() {
+list_tests() {
# find . -mindepth 2 -name "*.pd" | sed 's|\.pd$|;|'
ls -1 */*.pd | sed 's|\.pd$|;|'
}
-function debug() {
+debug() {
:
if [ "x${DEBUG}" = "xyes" ]; then echo $@; fi
}
-function evaluate_tests() {
+evaluate_tests() {
local logfile
local testfile
local numtests
@@ -41,7 +41,7 @@ function evaluate_tests() {
numtests=$(grep -c . ${testfile})
numpass=$(egrep -c "regression-test: (.*/fail.*: failed|.*: OK)$" ${logfile})
- let numfail=0
+ numfail=0
failtests=""
for t in $(egrep "regression-test: .*: (failed|OK)$" ${logfile} | egrep -v "regression-test: (.*/fail.*: failed|.*: OK)$" | awk '{print $2}')
do
@@ -60,7 +60,7 @@ function evaluate_tests() {
}
-function run_nogui() {
+run_nogui() {
debug "running test without gui"
${PD} ${LIBFLAGS} -nogui runtests_nogui.pd > ${RUNTESTS_LOG} 2>&1
debug "testing done"
@@ -68,7 +68,7 @@ function run_nogui() {
debug "testing finished"
}
-function run_withgui() {
+run_withgui() {
debug "running test with gui"
${PD} ${LIBFLAGS} -stderr runtests.pd 2>&1 | tee ${RUNTESTS_LOG}
echo "testing completed, no evaluation will be done; see ${RUNTESTS_LOG} for results"