| # Copyright 2023 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//third_party/antlion/antlion_host_test.gni") |
| import("//third_party/antlion/environments.gni") |
| |
| assert(is_host, "antlion tests only supported for host testing") |
| |
| antlion_host_test("beacon_loss_test") { |
| main_source = "BeaconLossTest.py" |
| environments = display_ap_envs |
| } |
| |
| antlion_host_test("channel_switch_test") { |
| main_source = "ChannelSwitchTest.py" |
| environments = display_ap_envs |
| } |
| |
| antlion_host_test("connection_stress_test") { |
| main_source = "ConnectionStressTest.py" |
| environments = display_ap_envs |
| } |
| |
| antlion_host_test("download_stress_test") { |
| main_source = "DownloadStressTest.py" |
| |
| # Requires external internet access. This is considered bad practice for an |
| # automated test due to reliance on external services. Will remain an at-desk |
| # dest until rewritten to remove dependance on external services. |
| # environments = display_ap_envs |
| environments = [] |
| } |
| |
| antlion_host_test("ping_stress_test") { |
| main_source = "PingStressTest.py" |
| environments = display_ap_envs |
| } |
| |
| antlion_host_test("soft_ap_test") { |
| main_source = "SoftApTest.py" |
| |
| # Requires one Fuchsia device and one Anddroid device. There are no |
| # infra-hosted environments to run this test on. Will likely remain an at-desk |
| # test for as long as it requires an Android device. |
| environments = [] |
| } |
| |
| antlion_host_test("wlan_scan_test") { |
| main_source = "WlanScanTest.py" |
| environments = display_ap_envs |
| } |
| |
| antlion_host_test("wlan_target_security_test") { |
| main_source = "WlanTargetSecurityTest.py" |
| environments = display_ap_envs |
| } |
| |
| antlion_host_test("wlan_wireless_network_management_test") { |
| main_source = "WlanWirelessNetworkManagementTest.py" |
| environments = display_ap_envs |
| } |
| |
| group("e2e_tests") { |
| testonly = true |
| public_deps = [ |
| ":beacon_loss_test($host_toolchain)", |
| ":channel_switch_test($host_toolchain)", |
| ":ping_stress_test($host_toolchain)", |
| ":wlan_scan_test($host_toolchain)", |
| ":wlan_target_security_test($host_toolchain)", |
| ":wlan_wireless_network_management_test($host_toolchain)", |
| "reboot:e2e_tests", |
| ] |
| } |
| |
| group("e2e_tests_quick") { |
| testonly = true |
| public_deps = [ |
| ":ping_stress_test($host_toolchain)", |
| ] |
| } |
| |
| # Tests that are disabled in automation |
| group("e2e_tests_manual") { |
| testonly = true |
| public_deps = [ |
| ":download_stress_test($host_toolchain)", |
| ":soft_ap_test($host_toolchain)", |
| ] |
| } |