1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//test/xts/tools/lite/build/suite_lite.gni")
15
16hcpptest_suite("ActsAiEngineTest") {
17  suite_name = "acts"
18  sources = [
19    # Utils files
20    "src/utils/aie_client_common.cpp",
21    "src/utils/utils.cpp",
22
23    # AieClient Function Test Cases
24    "src/aie_client/AieClientAsyncProcessFunctionTest.cpp",
25    "src/aie_client/AieClientDestroyFunctionTest.cpp",
26    "src/aie_client/AieClientInitFunctionTest.cpp",
27    "src/aie_client/AieClientPrepareFunctionTest.cpp",
28    "src/aie_client/AieClientReleaseFunctionTest.cpp",
29    "src/aie_client/AieClientSetOptionFunctionTest.cpp",
30    "src/aie_client/AieClientSyncProcessFunctionTest.cpp",
31    "src/aie_client/AieClientSyncProcessShareMemoryFunctionTest.cpp",
32
33    # pluginManager Function Test Cases
34    "src/plugin_manager/PluginManagerFunctionTest.cpp",
35  ]
36
37  include_dirs = [
38    "src",
39    "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog",
40    "//foundation/ai/ai_engine/interfaces",
41    "//foundation/ai/ai_engine/services/common",
42    "//foundation/ai/ai_engine/services/client",
43    "//foundation/ai/ai_engine/services/server",
44    "//foundation/ai/ai_engine/services/algorithmsdk",
45    "//foundation/ai/ai_engine/services/server/plugin",
46    "//third_party/bounds_checking_function/include",
47    "//commonlibrary/utils_lite/include",
48    "//kernel/liteos-a/kernel/include",
49    "//kernel/liteos-a/kernel/common",
50    "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/registry",
51    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
52    "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/samgr",
53    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
54  ]
55  deps = [
56    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
57    "//foundation/ai/ai_engine/services/client:client",
58    "//foundation/ai/ai_engine/services/common/platform/dl_operation:dlOperation",
59    "//foundation/ai/ai_engine/services/server/plugin_manager:plugin_manager",
60    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
61    "//test/xts/acts/ai_lite/ai_engine_posix/base/src/sample:sample_plugin_1_sync",
62    "//test/xts/acts/ai_lite/ai_engine_posix/base/src/sample:sample_plugin_2_async",
63  ]
64  cflags = [ "-Wno-error" ]
65  ldflags = [
66    "-lstdc++",
67    "-ldl",
68    "-lpthread",
69  ]
70}
71