#!/bin/sh

source dlog_test_header

trap cleanup 0

LOG_DETAILS="testing if config has control over redirecting to stdout (1/3)"
DLOG_CONFIG_PATH="/usr/share/dlog-$type.conf.stdout_enable.1"

test_config_redirect 1 1 1 1 && ok || fail

LOG_DETAILS="testing if config has control over redirecting to stdout (2/3)"
DLOG_CONFIG_PATH="/usr/share/dlog-$type.conf.stdout_enable.2"
test_config_redirect 0 0 1 1 && ok || fail

LOG_DETAILS="testing if config has control over redirecting to stdout (3/3)"
DLOG_CONFIG_PATH="/usr/share/dlog-$type.conf.stdout_enable.3"
test_config_redirect 1 1 0 0 && ok || fail


