mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 19:40:41 +01:00
27 lines
989 B
Bash
Executable File
27 lines
989 B
Bash
Executable File
#!/bin/bash
|
|
# added 2015-09-30 by singh.janmejay
|
|
# This file is part of the rsyslog project, released under ASL 2.0
|
|
|
|
uname
|
|
if [ `uname` = "FreeBSD" ] ; then
|
|
echo "This test currently does not work on FreeBSD."
|
|
exit 77
|
|
fi
|
|
|
|
echo ===============================================================================
|
|
echo \[unused_lookup_table.sh\]: test for ensuring clean destruction of lookup-table even when it is never used
|
|
. $srcdir/diag.sh init
|
|
cp $srcdir/testsuites/xlate.lkp_tbl $srcdir/xlate.lkp_tbl
|
|
. $srcdir/diag.sh startup-vg unused_lookup_table.conf
|
|
. $srcdir/diag.sh injectmsg 0 1
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
. $srcdir/diag.sh wait-shutdown-vg
|
|
. $srcdir/diag.sh check-exit-vg
|
|
. $srcdir/diag.sh content-check "msgnum:00000000:"
|
|
. $srcdir/diag.sh exit
|
|
|
|
# the test actually expects clean destruction of lookup_table
|
|
# when lookup_table is loaded, it can either be:
|
|
# - used (clean destruct covered by another test)
|
|
# - not-used (this test ensures its destroyed cleanly)
|