blob: e8ce30240cfb27cb0f2b6ba2df632aef7612a417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
## TODO:
## 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)
RUNTESTS_TXT=runtests.txt
RUNTESTS_LOG=log-runtests.${SUFFIX}
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
NUMTESTS=`grep -c . ${RUNTESTS_TXT}`
echo "regression-test: ${NUMTESTS} tests total" >> ${RUNTESTS_LOG}
cat ${RUNTESTS_LOG} | egrep "^regression-test: " | sed -e 's/^regression-test: //'
}
function run_withgui() {
${PD} ${LIBFLAGS} -stderr runtests.pd > ${RUNTESTS_LOG} 2>&1
}
if test "x$1" = "x-gui"; then
run_withgui
else
run_nogui
fi
|