| # Copyright 2024 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_library.gni") |
| import("//build/python/python_mobly_test.gni") |
| import("//build/testing/environments.gni") |
| |
| assert(is_host, "Python E2E tests are host-only") |
| |
| python_mobly_test("data_resource_access_test") { |
| main_source = "test_data_resource_access.py" |
| libraries = [ |
| "//src/testing/end_to_end/honeydew", |
| "//src/testing/end_to_end/mobly_base_tests/fuchsia_base_test", |
| ":my_resources", |
| ] |
| environments = [ |
| # Only enable for AEMU-x64 as host-tests aren't supported on QEMU-arm64. |
| aemu_env, |
| ] |
| } |
| |
| python_library("my_resources") { |
| testonly = true |
| source_root = "my_resources" |
| sources = [ |
| "__init__.py", |
| "test_data.json", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":data_resource_access_test($host_toolchain)" ] |
| } |