diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
commit | dcc721a95bef6f0d8e6d8775b8efe33e5aecd562 (patch) | |
tree | 66a2774cd0ee294d019efd71d2544c70f42b2842 /tests/diskqueue-non-unique-prefix.sh | |
parent | Initial commit. (diff) | |
download | rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.tar.xz rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.zip |
Adding upstream version 8.2402.0.upstream/8.2402.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/diskqueue-non-unique-prefix.sh')
-rwxr-xr-x | tests/diskqueue-non-unique-prefix.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/diskqueue-non-unique-prefix.sh b/tests/diskqueue-non-unique-prefix.sh new file mode 100755 index 0000000..f11da27 --- /dev/null +++ b/tests/diskqueue-non-unique-prefix.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Test for config parser to check that disk queue file names are +# unique. +# added 2019-05-02 by Rgerhards +# This file is part of the rsyslog project, released under ASL 2.0 +. ${srcdir:=.}/diag.sh init +generate_conf +add_conf ' +global(workDirectory="'${RSYSLOG_DYNNAME}'.spool") +if 0 then { + action(type="omfile" file="'$RSYSLOG_DYNNAME'.notused" + queue.filename="qf1" queue.type="linkedList") + action(type="omfile" file="'$RSYSLOG_DYNNAME'.notused" + queue.filename="qf1" queue.type="linkedList") + action(type="omfile" file="'$RSYSLOG_DYNNAME'.notused" + queue.filename="qf2" queue.type="linkedList") + action(type="omfile" file="'$RSYSLOG_DYNNAME'.notused" + queue.spooldirectory="'$RSYSLOG_DYNNAME'.spool2" + queue.filename="qf2" queue.type="linkedList") +} + +action(type="omfile" file="'$RSYSLOG_OUT_LOG'") +' +startup +shutdown_when_empty +wait_shutdown +content_check "and file name prefix 'qf1' already used" +check_not_present "and file name prefix 'qf2' already used" +exit_test |