diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2011-09-28 19:44:43 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2011-09-28 19:44:43 +0000 |
commit | 065b46dda5fce8e39217137513583f6d2a64345b (patch) | |
tree | 2f584d51bd9f9587fbc42ed4023ac15e2331df96 /tests | |
parent | b70ade0a46186a32cdbe6e93741290ad1c94b9d6 (diff) |
less bashisms
svn path=/trunk/externals/zexy/; revision=15389
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.sh | 12 |
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" |