• 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 = [
18    "../common",
19    "//foundation/ai/neural_network_runtime",
20    "//foundation/ai/neural_network_runtime/third_party/include",
21    "//third_party/googletest/googletest/include",
22    "//third_party/googletest/googlemock/include",
23    "//third_party/mindspore/mindspore/lite/mindir/include",
24  ]
25  cflags = [ "-Wno-error" ]
26}
27
28ohos_moduletest_suite("ActsAiNnrtStabilityTest") {
29  module_out_path = "acts/nnrt"
30  sources = [
31    "../common/mock_idevice.cpp",
32    "../common/nnrt_utils.cpp",
33    "src/MultiThreadTest.cpp",
34  ]
35
36  configs = [ ":nnrt_config" ]
37
38  deps = [
39    "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime",
40    "//third_party/googletest:gmock",
41    "//third_party/googletest:gtest",
42  ]
43
44  external_deps = [
45    "c_utils:utils",
46    "drivers_interface_nnrt:libnnrt_proxy_1.0",
47    "hdf_core:libhdf_utils",
48    "hdf_core:libhdi",
49    "hilog_native:libhilog",
50    "hitrace_native:libhitracechain",
51    "ipc:ipc_single",
52    "mindspore:mindir",
53  ]
54
55  subsystem_name = "ai"
56  part_name = "neural_network_runtime"
57}
58