rsyslog/tests/json_var_cmpr.sh
2015-12-16 18:34:26 +00:00

15 lines
705 B
Bash
Executable File

#!/bin/bash
# added 2015-11-24 by portant
# This file is part of the rsyslog project, released under ASL 2.0
echo =============================================================================================
echo \[json_var_case.sh\]: test for referencing local and global variables properly in comparisons
. $srcdir/diag.sh init
. $srcdir/diag.sh startup json_var_cmpr.conf
. $srcdir/diag.sh tcpflood -m 1 -M "\"<167>Nov 6 12:34:56 172.0.0.1 test: @cee: { \\\"val\\\": \\\"abc\\\" }\""
echo doing shutdown
. $srcdir/diag.sh shutdown-when-empty
echo wait on shutdown
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh content-check "json prop:abc local prop:def global prop:ghi"
. $srcdir/diag.sh exit