This patch changes plugin test program paths.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Requires: npu-engine = %{version}-%{release}
Summary: NPU Engine Example Package
%description utils
-This probides utility packages for NPU Engine, including metadata extraction of model files.
+This provides utility packages for NPU Engine, including metadata extraction of model files.
%files utils
%manifest npu-engine.manifest
%defattr(-,root,root,-)
%{neexampledir}/utils/*
+%if ( 0%{?npumgr_plugin} || 0%{?nns_plugin} )
+%package example-plugins
+Requires: npu-engine = %{version}-%{release}
+Summary: NPU Engine Example Package for Plugins
+%description example-plugins
+Example application package for NPU Engine plugins
+%files example-plugins
+%manifest npu-engine.manifest
+%defattr(-,root,root,-)
+%if 0%{?npumgr_plugin}
+%{neexampledir}/plugins/npumgr/*
+%endif
+%if 0%{?nns_plugin}
+%{neexampledir}/plugins/nnstreamer/*
+%endif
+%endif
+
%if 0%{?npumgr_plugin}
%package -n npumgr-srnpu
Summary: Tizen NPU Manager plugin for SR-NPU device family
Reference implementation of Tizen NPU Manager TRIV2 plugin, including a dummy NPU Manager module.
%files -n npumgr-srnpu
%manifest npu-engine.manifest
-%{neexampledir}/plugins/npumgr/*
%{_libdir}/libnpumgr*.so
%{_datadir}/dbus-1/system.d/*
%endif
Reference implementation of NNStreamer filter subplugin for SR-NPU (for now, TRIV2 only).
%files -n nnstreamer-srnpu
%manifest npu-engine.manifest
-# Uncomment below when test-cases are ready
-# %{neexampledir}/plugins/nnstreamer/*
%{_prefix}/lib/nnstreamer/filters/libnnstreamer_filter_srnpu.so
%endif
# dummy npu manager
subdir('dummy')
-subdir('tests')
-if ne_test_utils_gtest_dep.found()
- testenv = environment()
- testenv.set('LD_LIBRARY_PATH', ne_libdir)
-
- if get_option('enable_plugin_nns')
- plugintest_nnstreamer = executable('plugintest_nnstreamer',
- ['nnstreamer_test.cc'],
- dependencies: [ne_test_utils_gtest_dep, glib_dep, gst_dep],
- install : true,
- install_rpath : ne_libdir,
- install_dir : join_paths(ne_bindir, 'plugins')
- )
- test('plugintest_nnstreamer', plugintest_nnstreamer, env: testenv)
- endif
+if get_option('enable_plugin_nns')
+ subdir('nnstreamer')
+endif
+if get_option('enable_plugin_npumgr')
+ subdir('npumgr')
endif
--- /dev/null
+if ne_test_utils_gtest_dep.found()
+ testenv = environment()
+ testenv.set('LD_LIBRARY_PATH', ne_libdir)
+
+ if get_option('enable_plugin_nns')
+ plugintest_nnstreamer = executable('plugintest_nnstreamer',
+ ['nnstreamer_test.cc'],
+ dependencies: [ne_test_utils_gtest_dep, glib_dep, gst_dep],
+ install : true,
+ install_rpath : ne_libdir,
+ install_dir : join_paths(ne_bindir, 'plugins', 'nnstreamer')
+ )
+ test('plugintest_nnstreamer', plugintest_nnstreamer, env: testenv)
+ endif
+endif
+testenv = environment()
+testenv.set('LD_LIBRARY_PATH', ne_libdir)
+
# npu manager test program
-executable ('apptest_npumgr',
- 'npumgr_test.cc',
+plugintest_npumgr = executable ('plugintest_npumgr',
+ ['npumgr_test.cc'],
include_directories : [npumgr_common_inc],
dependencies : [glib_dep, ne_test_utils_common_dep, npumgr_dep],
install : true,
install_rpath : ne_libdir,
install_dir : join_paths(ne_bindir, 'plugins', 'npumgr')
)
+test('plugintest_npumgr', plugintest_npumgr, env: testenv)