blob: 396d793e53b9741d831d7df007ebb10b0d131738 (
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
43
|
#!/bin/sh
EXTERNAL=$1
EXTERNAL=${EXTERNAL%.la}
EXTERNAL=${EXTERNAL#./}
TESTTYPE=$2
##################################
PD=pd
PDARGS="-nrt -nogui -path .libs"
PDARGS="-noprefs -nostdpath -nosound -nrt -nogui -path .libs"
#PDARGS="-nostdpath -nosound -nrt -nogui -path .libs"
#VALGRIND=valgrind
VALGRIND="valgrind --error-exitcode=1"
do_runtest() {
case "$1" in
mem*|MEM*)
${VALGRIND} ${PD} ${PDARGS} -lib ${EXTERNAL}
;;
DRD|drd)
${VALGRIND} --tool=drd ${PD} ${PDARGS} -lib ${EXTERNAL}
;;
HEL*|hel*)
${VALGRIND} --tool=helgrind ${PD} ${PDARGS} -lib ${EXTERNAL}
;;
*)
${PD} ${PDARGS} -lib ${EXTERNAL}
;;
esac
}
#do_runtest
#do_runtest MEM
#do_runtest DRD
#do_runtest HEL
#do_runtest && do_runtest MEM && do_runtest DRD
do_runtest $TESTTYPE
|