• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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")
15module_output_path = "acts/nnrt"
16
17config("ops_config") {
18  include_dirs = [ "include" ]
19  cflags = [ "-Wno-error" ]
20  cflags_cc = [ "-fexceptions" ]
21}
22
23ohos_moduletest_suite("ActsNnrtOpsTest") {
24  module_out_path = module_output_path
25  sources = [
26    "src/abs_test.cpp",
27    "src/all_test.cpp",
28    "src/assert_test.cpp",
29    "src/broadcast_to_test.cpp",
30    "src/ceil_test.cpp",
31    "src/clip_test.cpp",
32    "src/constant_of_shape_test.cpp",
33    "src/cos_test.cpp",
34    "src/crop_test.cpp",
35    "src/depth_to_space_test.cpp",
36    "src/detection_post_process_test.cpp",
37    "src/equal_test.cpp",
38    "src/erf_test.cpp",
39    "src/exp_test.cpp",
40    "src/flatten_test.cpp",
41    "src/floor_test.cpp",
42    "src/gather_nd_test.cpp",
43    "src/greater_equal_test.cpp",
44    "src/greater_test.cpp",
45    "src/hard_sigmoid_test.cpp",
46    "src/instance_norm_test.cpp",
47    "src/l2_normalize_test.cpp",
48    "src/leaky_relu_test.cpp",
49    "src/less_test.cpp",
50    "src/log_softmax_test.cpp",
51    "src/log_test.cpp",
52    "src/logical_and_test.cpp",
53    "src/logical_not_test.cpp",
54    "src/logical_or_test.cpp",
55    "src/lrn_test.cpp",
56    "src/lstm_test.cpp",
57    "src/minimum_test.cpp",
58    "src/mock_idevice.cpp",
59    "src/mod_test.cpp",
60    "src/neg_test.cpp",
61    "src/nncore_utils.cpp",
62    "src/not_equal_test.cpp",
63    "src/pow_test.cpp",
64    "src/quant_dtype_cast_test.cpp",
65    "src/range_test.cpp",
66    "src/rank_test.cpp",
67    "src/reciprocal_test.cpp",
68    "src/reducel2_test.cpp",
69    "src/reducemax_test.cpp",
70    "src/reducemin_test.cpp",
71    "src/reducesum_test.cpp",
72    "src/round_test.cpp",
73    "src/scatter_nd_test.cpp",
74    "src/select_test.cpp",
75    "src/sin_test.cpp",
76    "src/space_to_depth_test.cpp",
77    "src/sparse_to_dense_test.cpp",
78    "src/square_test.cpp",
79    "src/swish_test.cpp",
80    "src/unstack_test.cpp",
81    "src/where_test.cpp",
82  ]
83
84  configs = [ ":ops_config" ]
85
86  external_deps = [
87    "c_utils:utils",
88    "drivers_interface_nnrt:libnnrt_proxy_2.1",
89    "googletest:gmock_main",
90    "googletest:gtest_main",
91    "hilog:libhilog",
92    "ipc:ipc_single",
93    "mindspore:mindir_lib",
94    "neural_network_runtime:libneural_network_core",
95    "neural_network_runtime:libneural_network_runtime",
96  ]
97
98  subsystem_name = "ai"
99  part_name = "neural_network_runtime"
100}
101