mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 03:20:41 +01:00
Most of the tests will not work in other default shells like on Freebsd or Solaris. So we make /bin/bash default now.
17 lines
868 B
Bash
Executable File
17 lines
868 B
Bash
Executable File
#!/bin/bash
|
|
# This runs sends and receives messages via UDP to the standard
|
|
# ports. Note that with UDP we can always have message loss. While this is
|
|
# less likely in a local environment, we strongly limit the amount of data
|
|
# we send in the hope to not lose any messages. However, failure of this
|
|
# test does not necessarily mean that the code is wrong (but it is very likely!)
|
|
# added 2009-11-11 by Rgerhards
|
|
# This file is part of the rsyslog project, released under GPLv3
|
|
echo ===============================================================================
|
|
echo \[sndrcv_omudpspoof_nonstdpt.sh\]: testing sending and receiving via omudp
|
|
echo This test must be run as root [raw socket access required]
|
|
if [ "$EUID" -ne 0 ]; then
|
|
exit 77 # Not root, skip this test
|
|
fi
|
|
export TCPFLOOD_EXTRA_OPTS="-b1 -W1"
|
|
. $srcdir/sndrcv_drvr.sh sndrcv_omudpspoof_nonstdpt 50
|