diff --git a/README.md b/README.md
index 3e24dc3cfb2fc4eb44cfd8fc4ba071f9f3662313..97afda4d1e07adea0bc8acbe4a4d702fe6406bef 100644
--- a/README.md
+++ b/README.md
@@ -23,13 +23,13 @@ The directory structure of the WLAN repository is as follows:
```
/drivers/peripheral/wlan
-├── client # Client that implements the communication between the user space and kernel space
+├── client # Client that implements the communication between the user space and kernel space
│ └── include # Client header files
│ └── src # Client code
-├── hal # HAL code
+├── hal # HAL code
│ └── include # HAL header files
│ └── src # HAL code implementation
-├── interfaces # APIs exposed externally
+├── interfaces # APIs exposed externally
│ └── include # Header files containing APIs exposed externally
```
@@ -172,7 +172,7 @@ static void *hal_main()
## Repositories Involved
-Driver subsystem
+[Driver subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/driver-subsystem.md)
-hmf/drivers/framework
+[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README.md)
diff --git a/README_zh.md b/README_zh.md
index 537186414b39c6457566a67f5390ab245b2c221d..54a67c727d713b0e18ea95a911162c4edb800d2f 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -172,7 +172,7 @@ static void *hal_main()
## 相关仓
-驱动子系统
+[驱动子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E9%A9%B1%E5%8A%A8%E5%AD%90%E7%B3%BB%E7%BB%9F.md)
-hmf/drivers/framework
+[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README_zh.md)
diff --git a/test/BUILD.gn b/test/BUILD.gn
index e7dff4220f58d5716342ea122c0bdeea5b007de4..bd8a17b7fb8ea9016d6811893d3e39e4364ccf11 100644
--- a/test/BUILD.gn
+++ b/test/BUILD.gn
@@ -11,16 +11,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-group("hdf_unittest_wifi") {
- if (board_name == "hi3516dv300" || board_name == "hispark_taurus") {
- deps = [
- "performance:hdf_hi3516dv300_${ohos_kernel_type}_test_wifi_performance",
- "unittest:hdf_hi3516dv300_${ohos_kernel_type}_test_wifi",
- ]
- } else if (board_name == "hi3518ev300" || board_name == "hispark_aries") {
+import("//build/lite/config/component/lite_component.gni")
+import("//build/lite/config/test.gni")
+
+lite_component("hdf_test_wlan") {
+ # add hdf subsystem unittest
+ if (ohos_build_type == "debug") {
deps = [
- "performance:hdf_hi3518ev300_${ohos_kernel_type}_test_wifi_performance",
- "unittest:hdf_hi3518ev300_${ohos_kernel_type}_test_wifi",
+ "performance:hdf_peripheral_wlan_test_performance",
+ "unittest:hdf_peripheral_wlan_test",
]
}
+ features = []
}
diff --git a/test/performance/BUILD.gn b/test/performance/BUILD.gn
old mode 100755
new mode 100644
index baef81077f9de3266f58873d2186f758a32f26f9..7334bf11051598c04813238675e1a08d0703112b
--- a/test/performance/BUILD.gn
+++ b/test/performance/BUILD.gn
@@ -13,88 +13,44 @@
import("//build/lite/config/test.gni")
-if (board_name == "hi3516dv300" || board_name == "hispark_taurus") {
- unittest("hdf_hi3516dv300_${ohos_kernel_type}_test_wifi_performance") {
- output_extension = "bin"
- output_dir = "$root_out_dir/test/unittest/hdf"
- include_dirs = [
- "//third_party/googletest/googletest/include",
- "//third_party/bounds_checking_function/include",
- "//drivers/framework/ability/sbuf/include",
- "//drivers/framework/include/platform",
- "//drivers/framework/include/core",
- "//drivers/framework/include/osal",
- "//drivers/adapter/uhdf/posix/include",
- "//drivers/framework/include/utils",
- "//drivers/framework/include/config",
- "//drivers/framework/include",
- "//drivers/peripheral/wlan/client/include",
- "//drivers/peripheral/wlan/hal/include",
- "//drivers/peripheral/wlan/interfaces/include",
- "//drivers/framework/test/unittest/include",
- "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
- ]
+unittest("hdf_peripheral_wlan_test_performance") {
+ output_extension = "bin"
+ output_dir = "$root_out_dir/test/unittest/hdf"
+ include_dirs = [
+ "//third_party/googletest/googletest/include",
+ "//third_party/bounds_checking_function/include",
+ "//drivers/framework/ability/sbuf/include",
+ "//drivers/framework/include/platform",
+ "//drivers/framework/include/core",
+ "//drivers/framework/include/osal",
+ "//drivers/adapter/uhdf/posix/include",
+ "//drivers/framework/include/utils",
+ "//drivers/framework/include/config",
+ "//drivers/framework/include",
+ "//drivers/peripheral/wlan/client/include",
+ "//drivers/peripheral/wlan/hal/include",
+ "//drivers/peripheral/wlan/interfaces/include",
+ "//drivers/framework/test/unittest/include",
+ "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
+ ]
- sources = [ "//drivers/peripheral/wlan/test/performance/common/hdf_wlan_performance_test.cpp" ]
- deps = [
- "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
- "//drivers/adapter/uhdf/manager:hdf_core",
- "//drivers/adapter/uhdf/platform:hdf_platform",
- "//drivers/adapter/uhdf/posix:hdf_posix_osal",
- "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
- "//drivers/peripheral/wlan/client:hdi_wifi",
- "//drivers/peripheral/wlan/hal:wifi_hal_interface",
- ]
- public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
- cflags = [
- "-Wall",
- "-Wextra",
- "-Werror",
- "-fsigned-char",
- "-fno-common",
- "-fno-strict-aliasing",
- ]
- }
-} else if (board_name == "hi3518ev300" || board_name == "hispark_aries") {
- unittest("hdf_hi3518ev300_${ohos_kernel_type}_test_wifi_performance") {
- output_extension = "bin"
- output_dir = "$root_out_dir/test/unittest/hdf"
- include_dirs = [
- "//third_party/googletest/googletest/include",
- "//third_party/bounds_checking_function/include",
- "//drivers/framework/ability/sbuf/include",
- "//drivers/framework/include/platform",
- "//drivers/framework/include/core",
- "//drivers/framework/include/osal",
- "//drivers/adapter/uhdf/posix/include",
- "//drivers/framework/include/utils",
- "//drivers/framework/include/config",
- "//drivers/framework/include",
- "//drivers/peripheral/wlan/client/include",
- "//drivers/peripheral/wlan/hal/include",
- "//drivers/peripheral/wlan/interfaces/include",
- "//drivers/framework/test/unittest/include",
- "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
- ]
-
- sources = [ "//drivers/peripheral/wlan/test/performance/common/hdf_wlan_performance_test.cpp" ]
- deps = [
- "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
- "//drivers/adapter/uhdf/manager:hdf_core",
- "//drivers/adapter/uhdf/platform:hdf_platform",
- "//drivers/adapter/uhdf/posix:hdf_posix_osal",
- "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
- "//drivers/peripheral/wlan/client:hdi_wifi",
- "//drivers/peripheral/wlan/hal:wifi_hal_interface",
- ]
- public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
- cflags = [
- "-Wall",
- "-Wextra",
- "-Werror",
- "-fsigned-char",
- "-fno-common",
- "-fno-strict-aliasing",
- ]
- }
+ sources = [ "//drivers/peripheral/wlan/test/performance/common/hdf_wlan_performance_test.cpp" ]
+ deps = [
+ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
+ "//drivers/adapter/uhdf/manager:hdf_core",
+ "//drivers/adapter/uhdf/platform:hdf_platform",
+ "//drivers/adapter/uhdf/posix:hdf_posix_osal",
+ "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
+ "//drivers/peripheral/wlan/client:hdi_wifi",
+ "//drivers/peripheral/wlan/hal:wifi_hal_interface",
+ ]
+ public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
+ cflags = [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ "-fsigned-char",
+ "-fno-common",
+ "-fno-strict-aliasing",
+ ]
}
diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn
index 2bf73cb84efba830140bde0b2b553292a1699fe2..737c71a653fd820cae039317602bbabc736b2179 100644
--- a/test/unittest/BUILD.gn
+++ b/test/unittest/BUILD.gn
@@ -13,104 +13,52 @@
import("//build/lite/config/test.gni")
-if (board_name == "hi3516dv300" || board_name == "hispark_taurus") {
- unittest("hdf_hi3516dv300_${ohos_kernel_type}_test_wifi") {
- output_extension = "bin"
- output_dir = "$root_out_dir/test/unittest/hdf"
- include_dirs = [
- "//third_party/googletest/googletest/include",
- "//third_party/bounds_checking_function/include",
- "//drivers/framework/ability/sbuf/include",
- "//drivers/framework/include/platform",
- "//drivers/framework/include/core",
- "//drivers/framework/include/osal",
- "//drivers/adapter/uhdf/posix/include",
- "//drivers/framework/include/utils",
- "//drivers/framework/include/config",
- "//drivers/framework/include",
- "//drivers/peripheral/wlan/client/include",
- "//drivers/peripheral/wlan/hal/include",
- "//drivers/peripheral/wlan/interfaces/include",
- "//drivers/framework/test/unittest/include",
- "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
- ]
+unittest("hdf_peripheral_wlan_test") {
+ output_extension = "bin"
+ output_dir = "$root_out_dir/test/unittest/hdf"
+ include_dirs = [
+ "//third_party/googletest/googletest/include",
+ "//third_party/bounds_checking_function/include",
+ "//drivers/framework/ability/sbuf/include",
+ "//drivers/framework/include/platform",
+ "//drivers/framework/include/core",
+ "//drivers/framework/include/osal",
+ "//drivers/adapter/uhdf/posix/include",
+ "//drivers/framework/include/utils",
+ "//drivers/framework/include/config",
+ "//drivers/framework/include",
+ "//drivers/peripheral/wlan/client/include",
+ "//drivers/peripheral/wlan/hal/include",
+ "//drivers/peripheral/wlan/interfaces/include",
+ "//drivers/framework/test/unittest/include",
+ "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
+ ]
- sources = [
- "//drivers/peripheral/wlan/test/unittest/common/hdf_client_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_flow_control_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_message_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_module_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_net_buff_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_net_device_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/wifi_hal_test.cpp",
- ]
- deps = [
- "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
- "//drivers/adapter/uhdf/manager:hdf_core",
- "//drivers/adapter/uhdf/platform:hdf_platform",
- "//drivers/adapter/uhdf/posix:hdf_posix_osal",
- "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
- "//drivers/peripheral/wlan/client:hdi_wifi",
- "//drivers/peripheral/wlan/hal:wifi_hal_interface",
- ]
- public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
- cflags = [
- "-Wall",
- "-Wextra",
- "-Werror",
- "-fsigned-char",
- "-fno-common",
- "-fno-strict-aliasing",
- ]
- }
-} else if (board_name == "hi3518ev300" || board_name == "hispark_aries") {
- unittest("hdf_hi3518ev300_${ohos_kernel_type}_test_wifi") {
- output_extension = "bin"
- output_dir = "$root_out_dir/test/unittest/hdf"
- include_dirs = [
- "//third_party/googletest/googletest/include",
- "//third_party/bounds_checking_function/include",
- "//drivers/framework/ability/sbuf/include",
- "//drivers/framework/include/platform",
- "//drivers/framework/include/core",
- "//drivers/framework/include/osal",
- "//drivers/adapter/uhdf/posix/include",
- "//drivers/framework/include/utils",
- "//drivers/framework/include/config",
- "//drivers/framework/include",
- "//drivers/peripheral/wlan/client/include",
- "//drivers/peripheral/wlan/hal/include",
- "//drivers/peripheral/wlan/interfaces/include",
- "//drivers/framework/test/unittest/include",
- "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
- ]
-
- sources = [
- "//drivers/peripheral/wlan/test/unittest/common/hdf_client_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_flow_control_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_message_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_module_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_net_buff_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/hdf_net_device_test.cpp",
- "//drivers/peripheral/wlan/test/unittest/common/wifi_hal_test.cpp",
- ]
- deps = [
- "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
- "//drivers/adapter/uhdf/manager:hdf_core",
- "//drivers/adapter/uhdf/platform:hdf_platform",
- "//drivers/adapter/uhdf/posix:hdf_posix_osal",
- "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
- "//drivers/peripheral/wlan/client:hdi_wifi",
- "//drivers/peripheral/wlan/hal:wifi_hal_interface",
- ]
- public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
- cflags = [
- "-Wall",
- "-Wextra",
- "-Werror",
- "-fsigned-char",
- "-fno-common",
- "-fno-strict-aliasing",
- ]
- }
+ sources = [
+ "//drivers/peripheral/wlan/test/unittest/common/hdf_client_test.cpp",
+ "//drivers/peripheral/wlan/test/unittest/common/hdf_flow_control_test.cpp",
+ "//drivers/peripheral/wlan/test/unittest/common/hdf_message_test.cpp",
+ "//drivers/peripheral/wlan/test/unittest/common/hdf_module_test.cpp",
+ "//drivers/peripheral/wlan/test/unittest/common/hdf_net_buff_test.cpp",
+ "//drivers/peripheral/wlan/test/unittest/common/hdf_net_device_test.cpp",
+ "//drivers/peripheral/wlan/test/unittest/common/wifi_hal_test.cpp",
+ ]
+ deps = [
+ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
+ "//drivers/adapter/uhdf/manager:hdf_core",
+ "//drivers/adapter/uhdf/platform:hdf_platform",
+ "//drivers/adapter/uhdf/posix:hdf_posix_osal",
+ "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
+ "//drivers/peripheral/wlan/client:hdi_wifi",
+ "//drivers/peripheral/wlan/hal:wifi_hal_interface",
+ ]
+ public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
+ cflags = [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ "-fsigned-char",
+ "-fno-common",
+ "-fno-strict-aliasing",
+ ]
}