Test: enhancing log behaviors for unittest
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 19 Nov 2021 05:51:41 +0000 (14:51 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 9 Dec 2021 05:53:48 +0000 (14:53 +0900)
commitbde6070ef81ceffae37804fdaf6406a4a41f7a20
treecc21f88858fc03a5a6148efd0381c1a8187cec14
parente762f19a2400433f6803396edf2c8d1b2f66c7bf
Test: enhancing log behaviors for unittest

1. Add a dlog_print hijacker that makes dlog calls independent
from dlog daemon and drivers. As a result, developers can now
read the dlog log messages of unittests in gbs environment.

2. Clean up a bit of meson.build dependency declaration of
unit tests.

3. A unit test without direct dlog call is updated to call
it directly so that the hijacker is linked (edgetpu).

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
13 files changed:
gst/nnstreamer/nnstreamer_log.h
tests/meson.build
tests/nnstreamer_filter_edgetpu/meson.build
tests/nnstreamer_filter_edgetpu/unittest_edgetpu.cc
tests/nnstreamer_filter_extensions_common/meson.build
tests/nnstreamer_filter_mvncsdk2/meson.build
tests/nnstreamer_filter_openvino/meson.build
tests/nnstreamer_filter_tvm/meson.build
tests/nnstreamer_plugins/unittest_plugins.cc
tests/tizen_nnfw_runtime/meson.build
tests/tizen_sensor/meson.build
tests/unittest_util.c
tests/unittest_util.h