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/abort-uncleancfg-goodcfg-check.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 '')
-rwxr-xr-x | tests/abort-uncleancfg-goodcfg-check.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/abort-uncleancfg-goodcfg-check.sh b/tests/abort-uncleancfg-goodcfg-check.sh new file mode 100755 index 0000000..cc576a8 --- /dev/null +++ b/tests/abort-uncleancfg-goodcfg-check.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Copyright 2015-01-29 by Tim Eifler +# This file is part of the rsyslog project, released under ASL 2.0 +# The configuration test should pass because of the good config file. +. ${srcdir:=.}/diag.sh init +echo "testing a good Configuration verification run" +../tools/rsyslogd -C -N1 -f$srcdir/testsuites/abort-uncleancfg-goodcfg.conf -M../runtime/.libs:../.libs +if [ $? -ne 0 ]; then + echo "Error: config check fail" + exit 1 +fi +exit_test + |