blob: e15f1a804eada7ebe57766af99874d6d29554349 [file]
# 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/starnix/modules/devpts:starnix-devpts-tests" ]
}
group("tests") {
testonly = true
deps = [ ":starnix-devpts-tests-package" ]
# TODO(https://fxbug.dev/42059075): Re-enable starnix in these environments.
# The GN copy's test binary is excluded from asan/hwasan variants with
# exclude_toolchain_tags, which Bazel ignores.
if (!is_asan) {
deps += [ ":bazel_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("devpts") {
sources = [ "lib.rs" ]
crate_name = "starnix_modules_devpts"
source_root = "lib.rs"
edition = "2024"
lint_config = "//src/starnix/build:kernel_library_config"
visibility = [
":*",
"//src/starnix/modules/*",
]
deps = [
"//src/starnix/kernel/core",
"//src/starnix/lib/starnix_logging",
"//src/starnix/lib/starnix_sync",
"//src/starnix/lib/starnix_syscalls",
"//src/starnix/lib/starnix_types",
"//src/starnix/lib/starnix_uapi",
]
}
rustc_test("starnix_modules_devpts_lib_test") {
sources = [ "lib.rs" ]
source_root = "lib.rs"
edition = "2024"
deps = [
"//src/starnix/kernel/core",
"//src/starnix/lib/starnix_logging",
"//src/starnix/lib/starnix_sync",
"//src/starnix/lib/starnix_syscalls",
"//src/starnix/lib/starnix_types",
"//src/starnix/lib/starnix_uapi",
] +
[
"//src/lib/fuchsia",
"//third_party/rust_crates:zerocopy",
]
lint_config = "//src/starnix/config:starnix_clippy_lints_test"
exclude_toolchain_tags = [
"asan",
"hwasan",
]
}
fuchsia_component_manifest("starnix-devpts-tests-manifest") {
testonly = true
component_name = "starnix-devpts-tests"
manifest = "meta/starnix_devpts_tests.cml"
}
fuchsia_test_component("starnix-devpts-tests-component") {
cm_label = ":starnix-devpts-tests-manifest"
test_type = "starnix"
deps = [
":starnix_modules_devpts_lib_test",
"//src/starnix/kernel/vdso",
]
}
fuchsia_test_package("starnix-devpts-tests-package") {
package_name = "starnix-devpts-tests-gn"
test_components = [ ":starnix-devpts-tests-component" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}