modulesloadd_DATA = \
configs/tizen-modules-dlog-zero-copy.conf
-bin_SCRIPTS = dlog_test dlog_test_header dlog_test_daemon_early_quit dlog_test_tid_filtering_secure_logging dlog_test_backend_autodetection dlog_test_logger_buffering_logging dlog_cpu
+bin_SCRIPTS = dlog_test dlog_test_header dlog_test_daemon_early_quit dlog_test_stdout_redirect dlog_test_tid_filtering_secure_logging dlog_test_backend_autodetection dlog_test_logger_buffering_logging dlog_cpu
[run-unittest.sh:tests/dlog_coverage.in]
[dlog_test_header:tests/dlog_test_header.in]
[dlog_test_daemon_early_quit:tests/dlog_test_daemon_early_quit.in]
+ [dlog_test_stdout_redirect:tests/dlog_test_stdout_redirect.in]
[dlog_test_tid_filtering_secure_logging:tests/dlog_test_tid_filtering_secure_logging.in]
[dlog_test_backend_autodetection:tests/dlog_test_backend_autodetection.in]
[dlog_test_logger_buffering_logging:tests/dlog_test_logger_buffering_logging.in]
%{_bindir}/dlog_test_daemon_early_quit
%{_bindir}/dlog_test_backend_autodetection
%{_bindir}/dlog_test_tid_filtering_secure_logging
+%{_bindir}/dlog_test_stdout_redirect
%{_bindir}/dlog_test_logger_buffering_logging
%{_bindir}/dlog_cpu
/usr/share/doc/dlog/README.testsuite
DLOG_PREV_PATH=$DLOG_CONFIG_PATH
-LOG_DETAILS="testing if config has control over redirecting to stdout (1/3)"
-DLOG_CONFIG_PATH="@datadir@/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="@datadir@/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="@datadir@/dlog-$type.conf.stdout_enable.3"
-test_config_redirect 1 1 0 0 && ok || fail
+dlog_test_stdout_redirect $type
DLOG_CONFIG_PATH=$DLOG_PREV_PATH
--- /dev/null
+#!/bin/sh
+
+source dlog_test_header
+
+trap cleanup 0
+
+if [ "$1" = "zero-copy" ]; then
+ echo "zero-copy not supported for this test"
+ exit 1
+fi
+
+LOG_DETAILS="testing if config has control over redirecting to stdout (1/3)"
+DLOG_CONFIG_PATH="@datadir@/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="@datadir@/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="@datadir@/dlog-$type.conf.stdout_enable.3"
+test_config_redirect 1 1 0 0 && ok || fail
+
+