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_function_door") { 17 output_extension = "bin" 18 output_dir = "$root_out_dir/test/unittest/ai" 19 ldflags = [ 20 "-lstdc++", 21 "-ldl", 22 ] 23 include_dirs = [ 24 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 25 "//foundation/ai/engine/interfaces", 26 "//foundation/ai/engine/services/client", 27 "//foundation/ai/engine/services/common", 28 "//foundation/ai/engine/services/server", 29 "//foundation/ai/engine/test/utils", 30 "//foundation/communication/ipc_lite/frameworks/liteipc/include", 31 "//foundation/communication/ipc_lite/interfaces/kits", 32 "//foundation/distributedschedule/samgr_lite/interfaces/innerkits/registry", 33 "//foundation/distributedschedule/samgr_lite/interfaces/innerkits/samgr", 34 "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry", 35 "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", 36 "//third_party/bounds_checking_function/include", 37 "//utils/native/lite/include", 38 ] 39 deps = [ 40 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 41 "//foundation/ai/engine/services/client:client", 42 "//foundation/ai/engine/services/common/platform/dl_operation:dlOperation", 43 "//foundation/ai/engine/services/common/platform/lock:lock", 44 "//foundation/ai/engine/services/common/protocol/data_channel:data_channel", 45 "//foundation/ai/engine/services/server/plugin_manager:plugin_manager", 46 "//foundation/ai/engine/test/sample:sample_plugin_1", 47 "//foundation/ai/engine/test/sample:sample_plugin_2", 48 "//foundation/distributedschedule/samgr_lite/samgr:samgr", 49 ] 50 sources = [ 51 "async_process/async_process_function_test.cpp", 52 "destroy/destroy_function_test.cpp", 53 "init/init_function_test.cpp", 54 "plugin_manager/plugin_manager_test.cpp", 55 "prepare/prepare_function_test.cpp", 56 "release/release_function_test.cpp", 57 "set_get_option/option_function_test.cpp", 58 "share_memory/share_memory_test.cpp", 59 "sync_process/sync_process_function_test.cpp", 60 ] 61} 62 63group("function") { 64 deps = [ 65 ":ai_test_function_door", 66 "death_callback:testDeathCallback", 67 ] 68} 69