tests: extract stdout redirection
[platform/core/system/dlog.git] / tests / dlog_test_stdout_redirect.in
1 #!/bin/sh
2
3 source dlog_test_header
4
5 trap cleanup 0
6
7 if [ "$1" = "zero-copy" ]; then
8         echo "zero-copy not supported for this test"
9         exit 1
10 fi
11
12 LOG_DETAILS="testing if config has control over redirecting to stdout (1/3)"
13 DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.stdout_enable.1"
14
15 test_config_redirect 1 1 1 1 && ok || fail
16
17 LOG_DETAILS="testing if config has control over redirecting to stdout (2/3)"
18 DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.stdout_enable.2"
19 test_config_redirect 0 0 1 1 && ok || fail
20
21 LOG_DETAILS="testing if config has control over redirecting to stdout (3/3)"
22 DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.stdout_enable.3"
23 test_config_redirect 1 1 0 0 && ok || fail
24
25