blob: ebfa1640da21096494bdbb3d309b42630eb0cff2 [file] [log] [blame]
Roshan Pius1ae4cbb2016-12-06 18:59:15 -08001//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Bob Badourc22b35b2021-02-23 14:26:20 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
Etan Cohena49579b2017-03-10 10:43:31 -080026cc_library_static {
27 name: "VtsHalWifiV1_0TargetTestUtil",
Yuexi Mad56539e2018-03-21 10:47:22 -070028 defaults: ["VtsHalTargetTestDefaults"],
Etan Cohena49579b2017-03-10 10:43:31 -080029 srcs: [
Etan Cohena49579b2017-03-10 10:43:31 -080030 "wifi_hidl_call_util_selftest.cpp",
31 "wifi_hidl_test.cpp",
Zhuoyao Zhang308f1532018-02-08 21:17:39 -080032 "wifi_hidl_test_utils.cpp",
33 ],
Roshan Piusdbd83ef2017-06-20 12:05:40 -070034 export_include_dirs: [
Nate Jiangac6d14d2020-05-14 18:06:26 -070035 ".",
Roshan Piusdbd83ef2017-06-20 12:05:40 -070036 ],
Etan Cohena49579b2017-03-10 10:43:31 -080037 shared_libs: [
Etan Cohena49579b2017-03-10 10:43:31 -080038 "libnativehelper",
Etan Cohena49579b2017-03-10 10:43:31 -080039 ],
Patrik Fimmlc37306e2019-10-08 14:07:57 +020040 static_libs: [
41 "android.hardware.wifi@1.0",
Jimmy Chen1bdf1a72019-12-23 17:53:40 +020042 "android.hardware.wifi@1.3",
43 "android.hardware.wifi@1.5",
Nate Jiangac6d14d2020-05-14 18:06:26 -070044 "libwifi-system-iface",
Patrik Fimmlc37306e2019-10-08 14:07:57 +020045 ],
Etan Cohena49579b2017-03-10 10:43:31 -080046}
47
Roshan Pius1ae4cbb2016-12-06 18:59:15 -080048cc_test {
Zhuoyao Zhangf7693ee2017-02-16 14:58:55 -080049 name: "VtsHalWifiV1_0TargetTest",
Tri Vo6c2bd862017-08-01 13:14:53 -070050 defaults: ["VtsHalTargetTestDefaults"],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080051 tidy_timeout_srcs: [
52 "wifi_chip_hidl_test.cpp",
53 ],
Roshan Pius1ae4cbb2016-12-06 18:59:15 -080054 srcs: [
Roshan Pius1ae4cbb2016-12-06 18:59:15 -080055 "wifi_chip_hidl_test.cpp",
Roshan Pius1ae4cbb2016-12-06 18:59:15 -080056 "wifi_p2p_iface_hidl_test.cpp",
57 "wifi_rtt_controller_hidl_test.cpp",
Tri Vo6c2bd862017-08-01 13:14:53 -070058 "wifi_sta_iface_hidl_test.cpp",
Roshan Pius1ae4cbb2016-12-06 18:59:15 -080059 ],
Tri Vo6c2bd862017-08-01 13:14:53 -070060 static_libs: [
61 "VtsHalWifiV1_0TargetTestUtil",
62 "android.hardware.wifi@1.0",
Ahmed ElArabawyaa1e6b02019-01-02 10:07:05 -080063 "android.hardware.wifi@1.1",
xshu344ab2a2018-10-16 11:44:04 -070064 "android.hardware.wifi@1.2",
65 "android.hardware.wifi@1.3",
Jimmy Chen1bdf1a72019-12-23 17:53:40 +020066 "android.hardware.wifi@1.4",
67 "android.hardware.wifi@1.5",
Nate Jiangac6d14d2020-05-14 18:06:26 -070068 "libwifi-system-iface",
Etan Cohena49579b2017-03-10 10:43:31 -080069 ],
Nate Jiangac6d14d2020-05-14 18:06:26 -070070 test_suites: [
71 "general-tests",
72 "vts",
73 ],
Etan Cohena49579b2017-03-10 10:43:31 -080074}
75
Patrik Fimmlc37306e2019-10-08 14:07:57 +020076// These tests are split out so that they can be conditioned on presence of the
77// "android.hardware.wifi.aware" feature.
Etan Cohena49579b2017-03-10 10:43:31 -080078cc_test {
79 name: "VtsHalWifiNanV1_0TargetTest",
Tri Vo6c2bd862017-08-01 13:14:53 -070080 defaults: ["VtsHalTargetTestDefaults"],
Etan Cohen2d523c02017-03-23 08:11:47 -070081 srcs: [
Patrik Fimmlc37306e2019-10-08 14:07:57 +020082 "wifi_chip_hidl_nan_test.cpp",
Tri Vo6c2bd862017-08-01 13:14:53 -070083 "wifi_nan_iface_hidl_test.cpp",
Etan Cohena49579b2017-03-10 10:43:31 -080084 ],
Tri Vo6c2bd862017-08-01 13:14:53 -070085 static_libs: [
86 "VtsHalWifiV1_0TargetTestUtil",
87 "android.hardware.wifi@1.0",
Nate Jiang3ec67812020-08-24 11:04:31 -070088 "android.hardware.wifi@1.1",
89 "android.hardware.wifi@1.2",
90 "android.hardware.wifi@1.3",
91 "android.hardware.wifi@1.4",
92 "android.hardware.wifi@1.5",
Nate Jiangac6d14d2020-05-14 18:06:26 -070093 "libwifi-system-iface",
Roshan Pius1ae4cbb2016-12-06 18:59:15 -080094 ],
Nate Jiangac6d14d2020-05-14 18:06:26 -070095 test_suites: [
96 "general-tests",
97 "vts",
98 ],
Roshan Pius1ae4cbb2016-12-06 18:59:15 -080099}
Patrik Fimmlc37306e2019-10-08 14:07:57 +0200100
101// These tests are split out so that they can be conditioned on presence of
102// the hostapd HAL, which indicates SoftAP support.
103cc_test {
104 name: "VtsHalWifiApV1_0TargetTest",
105 defaults: ["VtsHalTargetTestDefaults"],
106 srcs: [
Patrik Fimmlc37306e2019-10-08 14:07:57 +0200107 "wifi_ap_iface_hidl_test.cpp",
108 "wifi_chip_hidl_ap_test.cpp",
109 ],
110 static_libs: [
111 "VtsHalWifiV1_0TargetTestUtil",
112 "android.hardware.wifi@1.0",
Roshan Pius274eadd2020-09-16 13:51:11 -0700113 "android.hardware.wifi.hostapd@1.0",
Nate Jiangac6d14d2020-05-14 18:06:26 -0700114 "libwifi-system-iface",
Patrik Fimmlc37306e2019-10-08 14:07:57 +0200115 ],
Roshan Pius274eadd2020-09-16 13:51:11 -0700116 disable_framework: true,
Nate Jiangac6d14d2020-05-14 18:06:26 -0700117 test_suites: [
118 "general-tests",
119 "vts",
120 ],
Patrik Fimmlc37306e2019-10-08 14:07:57 +0200121}