aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.sh
blob: 4c9f04d24445bca0b858f1201d8c1aae49f9e3ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

ls -1 */*.pd | sed 's/\.pd/;/' > runtests.txt

function run_nogui() {
 pd -lib ../iemmatrix -nogui runtests_nogui.pd > runtests.log.$$ 2>&1 
cat runtests.log.$$ | egrep "^regression-test: " | sed -e 's/^regression-test: //'
}

function run_withgui() {
 pd -lib ../iemmatrix runtests.pd > runtests.log 2>&1
}

if test "x$1" = "x-gui"; then
 run_withgui
else
 run_nogui
fi