rsyslog/tests/msgvar-concurrency.sh
Rainer Gerhards d82f54a28c CI: add way to gather all check logs if CI times out "make check"
This can happen under buildbot, and with it we can use the new script
in a follow-on buildbot step. Doesn't work with travis as it
terminates the complete CI run on timeout (no single-step timeout).
2017-04-12 10:37:20 +02:00

22 lines
731 B
Bash
Executable File

#!/bin/bash
# Test concurrency of message variables
# Added 2015-11-03 by rgerhards
# This file is part of the rsyslog project, released under ASL 2.0
echo ===============================================================================
echo \[msgvar-concurrency.sh\]: testing concurrency of local variables
uname
if [ `uname` = "SunOS" ] ; then
echo "This test currently does not work on all flavors of Solaris."
exit 77
fi
. $srcdir/diag.sh init
. $srcdir/diag.sh startup msgvar-concurrency.conf
sleep 1
. $srcdir/diag.sh tcpflood -m500000
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh seq-check 0 499999
. $srcdir/diag.sh exit