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.
13import("//build/lite/config/component/lite_component.gni")
14import("//build/lite/config/test.gni")
15
16unittest("ai_test_performance_unittest") {
17  output_extension = "bin"
18  output_dir = "$root_out_dir/test/unittest/ai"
19  ldflags = [
20    "-lstdc++",
21    "-ldl",
22  ]
23
24  include_dirs = [
25    "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog",
26    "//foundation/ai/ai_engine/interfaces",
27    "//foundation/ai/ai_engine/services/client",
28    "//foundation/ai/ai_engine/services/common",
29    "//foundation/ai/ai_engine/test/utils",
30    "//foundation/ai/ai_engine/test/performance",
31    "//commonlibrary/utils_lite/include",
32  ]
33  deps = [
34    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
35    "//foundation/ai/ai_engine/services/client:client",
36    "//foundation/ai/ai_engine/services/common/platform/dl_operation:dlOperation",
37    "//foundation/ai/ai_engine/services/common/platform/lock:lock",
38    "//foundation/ai/ai_engine/services/common/protocol/data_channel:data_channel",
39    "//foundation/ai/ai_engine/services/server/plugin_manager:plugin_manager",
40    "//foundation/ai/ai_engine/test/sample:sample_plugin_1",
41    "//foundation/ai/ai_engine/test/sample:sample_plugin_2",
42    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
43  ]
44  sources = [
45    "delay/async_process/async_process_delay_test.cpp",
46    "delay/sync_process/sync_process_delay_test.cpp",
47    "reliability/aie_client/aie_client_reliability_test.cpp",
48  ]
49}
50
51group("performance") {
52  deps = [ ":ai_test_performance_unittest" ]
53}
54