good="All heap blocks were freed -- no leaks are possible"
n=$(printf "% 4i" "$1")
eval valgrind ./gwion "$OPT" "$UDP" -d "$DRIVER" "$3" &> "$4"
- ok=0
- grep "$good" "$4" > /dev/null && ok=1
+ if [ -f "$4" ]
+ then grep "$good" "$4" > /dev/null && ok=1
+ else ok=1
+ fi
if [ $ok ]
then echo "ok $n $2"
else echo "not ok $n $2"
#!/bin/bash
-# [test] #11
+# [test] #12
n=0
[ "$1" ] && n="$1"
[ "$n" -eq 0 ] && n=1
# config
n=$((n+1))
-run "$n" "config" "-k" "file"
+cat << EOF >> tmp_gwionrc
+-p.
+-l0
+EOF
+run "$n" "config" "-c tmp_gwionrc" "file"
+
+# loop
+n=$((n+1))
+run "$n" "loop" "-l0" "file"