[Dist/Tizen] Provide GST_PLUGIN_PATH to unittest_tizen_sensor
authorWook Song <wook16.song@samsung.com>
Thu, 7 May 2020 07:57:14 +0000 (16:57 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 7 May 2020 10:25:41 +0000 (19:25 +0900)
'unittest_tizen_sensor' requires a nnstreamer extension plugin,
'tensor_src_tizensensor', in addition to the other nnstreamer plugins.
In order to resolve this dependency at build time, this patch modifies
the rpm spec for Tizen to provide extra GST_PLUGIN_PATH to
'unittest_tizen_sensor'.

Signed-off-by: Wook Song <wook16.song@samsung.com>
packaging/nnstreamer.spec

index d438003..5710925 100644 (file)
@@ -416,7 +416,7 @@ export NNSTREAMER_DECODERS=$(pwd)/build/ext/nnstreamer/tensor_decoder
 %if %{with tizen}
     bash %{test_script} ./tests/tizen_nnfw_runtime/unittest_nnfw_runtime_raw
     ln -s ext/nnstreamer/tensor_source/*.so .
-    bash %{test_script} ./tests/tizen_capi/unittest_tizen_sensor
+    GST_PLUGIN_PATH=${NNSTREAMER_BUILD_ROOT_PATH}/build/ext/nnstreamer/tensor_source:${GST_PLUGIN_PATH} bash %{test_script} ./tests/tizen_capi/unittest_tizen_sensor
 %endif #if tizen
 %if 0%{?unit_test}
     bash %{test_script} ./tests