rsyslog/tests/variable_leading_underscore.sh
Peter Portante bdc54a180e Accept leading underscores for variable names
The grammar now allows for leading underscores for variable names. This
addresses a problem stemming from the fact that the imjournal module
will create variables using the given name from systemd. All "trusted"
variables in systemd begin with a leading underscore.
2015-12-19 16:16:00 +00:00

16 lines
607 B
Bash
Executable File

#!/bin/bash
# Copyright 2015 Red Hat, Inc.
# This file is part of the rsyslog project, released under ASL 2.0
# The configuration test should pass because we now support leading
# underscores in variable names.
echo ===============================================================================
echo \[variable_leading_underscore.sh\]: testing variables with leading underscores
. $srcdir/diag.sh init
../tools/rsyslogd -C -N1 -f$srcdir/testsuites/variable_leading_underscore.conf -M../runtime/.libs:../.libs
if [ $? -ne 0 ]; then
echo "Error: config check fail"
exit 1
fi
. $srcdir/diag.sh exit