summaryrefslogtreecommitdiffstats
path: root/fluent-bit/tests/runtime_shell/in_tail_expect.sh
blob: c847d65f418c1b75b9e5876e26d46e0589fed882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

test_in_tail_filter_expect() {
    rm -rf /tmp/flb_*

    # Monitor this file
    echo "{\"key\": \"val\"}" > /tmp/flb_tail_expect_1.log

    # Excluded file
    echo "{\"nokey\": \"\"}" > /tmp/flb_tail_expect_2.log

    $FLB_BIN -c $FLB_RUNTIME_SHELL_CONF/in_tail_expect.conf
}

# The following command launch the unit test
. $FLB_RUNTIME_SHELL_PATH/runtime_shell.env