• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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("//build/ohos_var.gni")
15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import("//test/xts/tools/build/suite.gni")
17
18module_output_path = "hats/wlan"
19ohos_moduletest_suite("HatsHdfWifiHdiTest") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "//drivers/peripheral/wlan/client/include",
23    "//drivers/peripheral/wlan/hal/include",
24    "//drivers/peripheral/wlan/interfaces/include",
25  ]
26  sources = [ "./hal/wifi_hal_test.cpp" ]
27  resource_config_file =
28      "//drivers/hdf_core/adapter/uhdf2/test/resource/wlan/ohos_test.xml"
29  cflags = [
30    "-Wall",
31    "-Wextra",
32    "-Werror",
33    "-fsigned-char",
34    "-fno-common",
35    "-fno-strict-aliasing",
36  ]
37  deps = [
38    "//drivers/hdf_core/adapter/build/test_common:libhdf_test_common",
39    "//drivers/peripheral/wlan/client:wifi_driver_client",
40    "//drivers/peripheral/wlan/hal:wifi_hal",
41  ]
42  if (is_standard_system) {
43    external_deps = [
44      "c_utils:utils",
45      "hdf_core:libhdf_utils",
46      "hiviewdfx_hilog_native:libhilog",
47    ]
48  } else {
49    external_deps = [ "hilog:libhilog" ]
50  }
51
52  subsystem_name = "hdf"
53  part_name = "drivers_peripheral_wlan"
54}
55
56module_output_path = "hdf/wlan"
57ohos_moduletest_suite("HatsHdfWifiHdistartandstopTest") {
58  module_out_path = module_output_path
59  include_dirs = [
60    "//drivers/peripheral/wlan/client/include",
61    "//drivers/peripheral/wlan/hal/include",
62    "//drivers/peripheral/wlan/interfaces/include",
63  ]
64  sources = [ "./hal/wifi_hal_startandstop.cpp" ]
65  resource_config_file =
66      "//drivers/hdf_core/adapter/uhdf2/test/resource/wlan/ohos_test.xml"
67  cflags = [
68    "-Wall",
69    "-Wextra",
70    "-Werror",
71    "-fsigned-char",
72    "-fno-common",
73    "-fno-strict-aliasing",
74  ]
75  deps = [
76    "//drivers/hdf_core/adapter/build/test_common:libhdf_test_common",
77    "//drivers/peripheral/wlan/client:wifi_driver_client",
78    "//drivers/peripheral/wlan/hal:wifi_hal",
79  ]
80  if (is_standard_system) {
81    external_deps = [
82      "c_utils:utils",
83      "hdf_core:libhdf_utils",
84      "hiviewdfx_hilog_native:libhilog",
85    ]
86  } else {
87    external_deps = [ "hilog:libhilog" ]
88  }
89
90  subsystem_name = "hdf"
91  part_name = "drivers_peripheral_wlan"
92}
93
94module_output_path = "hdf/wlan"
95ohos_moduletest_suite("HatsHdfWificlientTest") {
96  module_out_path = module_output_path
97  include_dirs = [
98    "//drivers/peripheral/wlan/client/include",
99    "//drivers/peripheral/wlan/hal/include",
100    "//drivers/peripheral/wlan/interfaces/include",
101  ]
102  sources = [ "./client/hdf_client_test.cpp" ]
103  resource_config_file =
104      "//drivers/hdf_core/adapter/uhdf2/test/resource/wlan/ohos_test.xml"
105  cflags = [
106    "-Wall",
107    "-Wextra",
108    "-Werror",
109    "-fsigned-char",
110    "-fno-common",
111    "-fno-strict-aliasing",
112  ]
113  deps = [
114    "//drivers/hdf_core/adapter/build/test_common:libhdf_test_common",
115    "//drivers/peripheral/wlan/client:wifi_driver_client",
116    "//drivers/peripheral/wlan/hal:wifi_hal",
117  ]
118  if (is_standard_system) {
119    external_deps = [
120      "c_utils:utils",
121      "hdf_core:libhdf_utils",
122      "hiviewdfx_hilog_native:libhilog",
123    ]
124  } else {
125    external_deps = [ "hilog:libhilog" ]
126  }
127
128  subsystem_name = "hdf"
129  part_name = "drivers_peripheral_wlan"
130}
131
132module_output_path = "hdf/wlan"
133ohos_moduletest_suite("HatsHdfWificommonTest") {
134  module_out_path = module_output_path
135  include_dirs = [
136    "//drivers/peripheral/wlan/client/include",
137    "//drivers/peripheral/wlan/hal/include",
138    "//drivers/peripheral/wlan/interfaces/include",
139  ]
140  sources = [
141    "./common/hdf_flow_control_test.cpp",
142    "./common/hdf_message_test.cpp",
143    "./common/hdf_module_test.cpp",
144    "./common/hdf_net_buff_test.cpp",
145    "./common/hdf_net_device_test.cpp",
146  ]
147  resource_config_file =
148      "//drivers/hdf_core/adapter/uhdf2/test/resource/wlan/ohos_test.xml"
149  cflags = [
150    "-Wall",
151    "-Wextra",
152    "-Werror",
153    "-fsigned-char",
154    "-fno-common",
155    "-fno-strict-aliasing",
156  ]
157  deps = [
158    "//drivers/hdf_core/adapter/build/test_common:libhdf_test_common",
159    "//drivers/peripheral/wlan/client:wifi_driver_client",
160    "//drivers/peripheral/wlan/hal:wifi_hal",
161  ]
162  if (is_standard_system) {
163    external_deps = [
164      "c_utils:utils",
165      "hdf_core:libhdf_utils",
166      "hiviewdfx_hilog_native:libhilog",
167    ]
168  } else {
169    external_deps = [ "hilog:libhilog" ]
170  }
171
172  subsystem_name = "hdf"
173  part_name = "drivers_peripheral_wlan"
174}
175