mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-11 05:00:41 +01:00
Also now permit interactivly running tests without explicitly setting $srcdir. This now works if we are inside ./tests and fails, as before, when we are in a different directory. Detected by shellcheck via CodeFactor.io
14 lines
455 B
Bash
Executable File
14 lines
455 B
Bash
Executable File
#!/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
|
|
|