summaryrefslogtreecommitdiffstats
path: root/tests/abort-uncleancfg-badcfg-check_1.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:28:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:28:20 +0000
commitdcc721a95bef6f0d8e6d8775b8efe33e5aecd562 (patch)
tree66a2774cd0ee294d019efd71d2544c70f42b2842 /tests/abort-uncleancfg-badcfg-check_1.sh
parentInitial commit. (diff)
downloadrsyslog-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/abort-uncleancfg-badcfg-check_1.sh')
-rwxr-xr-xtests/abort-uncleancfg-badcfg-check_1.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/abort-uncleancfg-badcfg-check_1.sh b/tests/abort-uncleancfg-badcfg-check_1.sh
new file mode 100755
index 0000000..986688b
--- /dev/null
+++ b/tests/abort-uncleancfg-badcfg-check_1.sh
@@ -0,0 +1,15 @@
+#!/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 fail because of the invalid config file.
+echo ===============================================================================
+echo \[abort-uncleancfg-badcfg_1.sh\]: testing abort on unclean configuration
+echo "testing a bad Configuration verification run"
+. ${srcdir:=.}/diag.sh init
+../tools/rsyslogd -C -N1 -f$srcdir/testsuites/abort-uncleancfg-badcfg_1.conf -M../runtime/.libs:../.libs
+if [ $? == 0 ]; then
+ echo "Error: config check should fail"
+ exit 1
+fi
+exit_test
+