blob: 2ab7703b256be9f9742ab9f1809c011843fa1649 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
. ${FLB_RUNTIME_SHELL_PATH}/common.sh
input_generator() {
result=$(wait_for_fluent_bit ${SIGNAL_FILE_PATH})
if test "$result" -eq "0"
then
echo '<13>Jan 1 00:00:00 testuser: Hello!' | nc -w 1 -U -u $SOCKET_PATH
fi
}
test_in_syslog_uds_stream_plaintext_filter_expect() {
platform=$(uname)
if test "$platform" != "Darwin"
then
export SIGNAL_FILE_PATH="/tmp/fb_signal_$$"
export SOCKET_PATH=/tmp/fluent_bit_syslog_uds_dgram.sock
input_generator &
$FLB_BIN -c $FLB_RUNTIME_SHELL_CONF/in_syslog_uds_dgram_plaintext_expect.conf
fi
}
# The following command launch the unit test
. $FLB_RUNTIME_SHELL_PATH/runtime_shell.env
|