| # 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("//build/python/python_mobly_test.gni") |
| import("//build/testing/environments.gni") |
| |
| assert(is_host, "Python E2E tests are host-only") |
| |
| python_mobly_test("soft_reboot_test_fc") { |
| main_source = "test_soft_reboot.py" |
| libraries = [ |
| "//src/testing/end_to_end/honeydew", |
| "//src/testing/end_to_end/mobly_base_tests:fuchsia_base_test", |
| ] |
| |
| params_source = "params.yaml" |
| transport = "fuchsia-controller" |
| |
| environments = [ |
| # Only enable for AEMU-x64 as host-tests aren't supported on QEMU-arm64. |
| aemu_env, |
| vim3_env, |
| nuc11_env, |
| ] |
| } |
| |
| # This test will run using "fuchsia-controller-preferred" transport. |
| # It uses "fuchsia-controller" to reboot the device. However, once device comes |
| # back up, it starts SL4F server and sends an SL4F request. |
| # Thus this test will ensure SL4F functionality in Honeydew is still working. |
| |
| # Note - To run this test in CQ, ensure builder config has SL4F as dependency. |
| python_mobly_test("soft_reboot_test_fc_preferred") { |
| main_source = "test_soft_reboot.py" |
| libraries = [ |
| "//src/testing/end_to_end/honeydew", |
| "//src/testing/end_to_end/mobly_base_tests:fuchsia_base_test", |
| ] |
| |
| params_source = "params.yaml" |
| transport = "fuchsia-controller-preferred" |
| |
| environments = [ emu_env ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ |
| ":soft_reboot_test_fc($host_toolchain)", |
| ":soft_reboot_test_fc_preferred($host_toolchain)", |
| ] |
| } |