Debian Codegraph @

tests/imuxsock_traillf_syssock.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 . ${srcdir:=.}/diag.sh init
3 skip_platform "SunOS" "This test does not work on Solaris"
4
5 ./syslog_caller -fsyslog_inject-l -m0 > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
6 no_liblogging_stdlog=$?
7 if [scip-shell system . . `[`. $no_liblogging_stdlog -ne 0 ];then
8 echoscip-shell system . . echo. "liblogging-stdlog not available - skipping test"
9 exit 77
10 fi
11
12 export NUMMESSAGES=1
13 export QUEUE_EMPTY_CHECK_FUNC=wait_file_lines
14 generate_conf
15 add_conf '
16 module(load="../plugins/imuxsock/.libs/imuxsock"
17 SysSock.name="'$RSYSLOG_DYNNAME'-testbench_socket")
18
19 template(name="outfmt" type="string" string="%msg:%\n")
20 local1.* action(type="omfile" file="'$RSYSLOG_OUT_LOG'" template="outfmt")
21 '
22 startup
23 ./syslog_caller -fsyslog_inject-l -m1 -C "uxsock:$RSYSLOG_DYNNAME-testbench_socket"
24 shutdown_when_empty
25 wait_shutdown
26 export EXPECTED=" test"
27 cmp_exact