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.
18 lines
366 B
Bash
Executable File
18 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
echo \[fieldtest.sh\]: test fieldtest via udp
|
|
. $srcdir/diag.sh init
|
|
$srcdir/killrsyslog.sh # kill rsyslogd if it runs for some reason
|
|
. $srcdir/diag.sh generate-HOSTNAME
|
|
|
|
./nettester -tfield1 -iudp
|
|
if [ "$?" -ne "0" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
echo test fieldtest via tcp
|
|
./nettester -tfield1 -itcp
|
|
if [ "$?" -ne "0" ]; then
|
|
exit 1
|
|
fi
|
|
. $srcdir/diag.sh exit
|