Code clean, update document and fix path to run unittest.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
/* SPDX-License-Identifier: Apache-2.0 */
/**
- * @file ml-agent-interface.c
+ * @file mlops-agent-interface.c
* @date 5 April 2023
* @brief A set of exported ml-agent interfaces for managing pipelines, models, and other service.
* @see https://github.com/nnstreamer/deviceMLOps.MLAgent
add_project_arguments('-D__TIZEN__=1', language: ['c', 'cpp'])
endif
-serviceDBPath = get_option('service-db-path')
-add_project_arguments('-DSYS_DB_DIR="' + serviceDBPath + '"', language: ['c', 'cpp'])
-
# Set install path
ml_agent_install_prefix = get_option('prefix')
ml_agent_install_libdir = join_paths(ml_agent_install_prefix, get_option('libdir'))
###########################################################################
# Macros for building and testing option control
+# Note that, when changing install path for unittest,
+# you should update 'run-unittest.sh' in packaging directory.
%define builddir build
%define source_root %{_builddir}/%{?buildsubdir}
%define test_script %{source_root}/packaging/run_unittests.sh
%files unittests
%manifest mlops-agent.manifest
%{test_base_dir}/unittests
-%{_libdir}/libmlops-agent-test.a
-%{_libdir}/libmlops-agent-test.so*
%if 0%{?gcov:1}
%{_bindir}/tizen-unittests/%{name}/run-unittest.sh
%endif # gcov
##
setup() {
echo "setup start"
- export MLAPI_SOURCE_ROOT_PATH=/usr/bin/unittest-ml
- pushd /usr/bin/unittest-ml
+ export MLAGENT_SOURCE_ROOT_PATH=/usr/bin/ml-test/unittests
+ pushd /usr/bin/ml-test/unittests
}
test_main() {
echo "test_main start"
- testlist=$(find /usr/bin/unittest-ml -type f -executable -name "unittest_*")
+ testlist=$(find /usr/bin/ml-test/unittests -type f -executable -name "unittest_*")
for test in ${testlist}; do
${test}
done
/**
- * @file unittest_ml_agent.cc
+ * @file unittest_mlops_agent.cc
* @date 16 Jul 2022
* @brief Unit test for ML-Agent and its interface
* @see https://github.com/nnstreamer/deviceMLOps.MLAgent