• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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/build/suite.gni")
15
16config("nnrt_config") {
17  include_dirs = [ "../common" ]
18  cflags = [ "-Wno-error" ]
19  cflags_cc = [ "-fexceptions" ]
20}
21
22ohos_moduletest_suite("ActsAiNnrtFunctionV2_0Test") {
23  module_out_path = "acts/nnrt"
24  sources = [
25    "../common/mock_idevice.cpp",
26    "../common/nnrt_utils.cpp",
27    "src/CompileTest.cpp",
28    "src/DeviceTest.cpp",
29    "src/ExecutorTest.cpp",
30    "src/MemoryTest.cpp",
31    "src/ModelTest.cpp",
32  ]
33
34  configs = [ ":nnrt_config" ]
35
36  external_deps = [
37    "c_utils:utils",
38    "drivers_interface_nnrt:libnnrt_proxy_2.0",
39    "googletest:gmock_main",
40    "googletest:gtest_main",
41    "hdf_core:libhdf_utils",
42    "hdf_core:libhdi",
43    "hilog:libhilog",
44    "hitrace:libhitracechain",
45    "ipc:ipc_single",
46    "mindspore:mindir_lib",
47    "neural_network_runtime:libneural_network_core",
48    "neural_network_runtime:libneural_network_runtime",
49  ]
50
51  subsystem_name = "ai"
52  part_name = "neural_network_runtime"
53}
54