summaryrefslogtreecommitdiff
path: root/cpp/src/tests/stop_broker
blob: 0e67ac24dd3f31c8058b479088da4f2b3b866421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Stop the broker, check for errors.
# 
export QPID_PORT=`cat qpidd.port`
rm -f qpidd.port

../qpidd --quit || ERROR=1

# Check qpidd.log.
grep -a 'warning\|error\|critical' qpidd.log && {
    echo "WARNING: Suspicious broker log entries in qpidd.log, above."
}

# Check valgrind log.
if test -n "$VALGRIND"; then
    source `dirname $0`/vg_check $VG_LOG*
    vg_check qpidd.vglog* || ERROR=1
fi

exit $ERROR