mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 07:00:42 +01:00
FreeBSD is not able to run all tests, therefore all tests that can't be run will be disabled.
34 lines
1.3 KiB
Bash
Executable File
34 lines
1.3 KiB
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 \[lookup_table_no_hup_reload-vg.sh\]: test for lookup-table with HUP based reloading disabled with valgrind
|
|
. $srcdir/diag.sh init
|
|
cp $srcdir/testsuites/xlate.lkp_tbl $srcdir/xlate.lkp_tbl
|
|
. $srcdir/diag.sh startup-vg lookup_table_no_hup_reload.conf
|
|
. $srcdir/diag.sh injectmsg 0 3
|
|
. $srcdir/diag.sh wait-queueempty
|
|
. $srcdir/diag.sh content-check "msgnum:00000000: foo_old"
|
|
. $srcdir/diag.sh content-check "msgnum:00000001: bar_old"
|
|
. $srcdir/diag.sh assert-content-missing "baz"
|
|
cp $srcdir/testsuites/xlate_more.lkp_tbl $srcdir/xlate.lkp_tbl
|
|
. $srcdir/diag.sh issue-HUP
|
|
. $srcdir/diag.sh await-lookup-table-reload
|
|
. $srcdir/diag.sh injectmsg 0 3
|
|
echo doing shutdown
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
echo wait on shutdown
|
|
. $srcdir/diag.sh wait-shutdown-vg
|
|
. $srcdir/diag.sh check-exit-vg
|
|
. $srcdir/diag.sh assert-content-missing "foo_new"
|
|
. $srcdir/diag.sh assert-content-missing "bar_new"
|
|
. $srcdir/diag.sh assert-content-missing "baz"
|
|
. $srcdir/diag.sh exit
|