| # Copyright 2026 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/bazel/bazel_test_suite.gni") | |
| bazel_test_suite("bazel_tests") { | |
| target_tests = [ "//src/developer/lib/uart_fpl:uart-fpl-target-tests" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":bazel_tests", | |
| ":uart_fpl_test($host_toolchain)", | |
| ] | |
| if (is_fuchsia) { | |
| deps += [ ":uart-fpl-target-tests" ] | |
| } | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| rustc_library("uart_fpl") { | |
| sources = [ | |
| "src/error.rs", | |
| "src/frame.rs", | |
| "src/handshake.rs", | |
| "src/lib.rs", | |
| "src/parser.rs", | |
| "src/resend_sp.rs", | |
| "src/window.rs", | |
| ] | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/tests/uart:*", | |
| "//src/developer/ffx/tools/uart:*", | |
| "//src/developer/ffx/tools/uart_driver/impl:*", | |
| "//src/developer/lib:*", | |
| "//src/developer/remote-control/fdomain-uart-driver:*", | |
| ] | |
| deps = [ | |
| "//third_party/rust_crates:crc32fast", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:zerocopy", | |
| ] | |
| } | |
| rustc_test("uart_fpl_test") { | |
| sources = [ | |
| "src/error.rs", | |
| "src/frame.rs", | |
| "src/handshake.rs", | |
| "src/lib.rs", | |
| "src/parser.rs", | |
| "src/resend_sp.rs", | |
| "src/window.rs", | |
| ] | |
| edition = "2024" | |
| deps = [ | |
| "//third_party/rust_crates:crc32fast", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:zerocopy", | |
| ] + [ "//src/lib/fuchsia" ] | |
| } | |
| fuchsia_unittest_package("uart-fpl-target-tests") { | |
| package_name = "uart-fpl-target-tests-gn" | |
| component_name = "uart-fpl-target-tests" | |
| deps = [ ":uart_fpl_test" ] | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "ERROR" | |
| } | |
| } | |
| } |