# Copyright 2025 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. load("@rules_rust//rust:defs.bzl", "rust_test") load("//pw_kernel/target/qemu_virt_riscv32:defs.bzl", "TARGET_COMPATIBLE_WITH") load("//pw_kernel/tooling:system_linker_script.bzl", "system_linker_script") system_linker_script( name = "linker_script", system_config = "system.json5", tags = ["kernel"], target_compatible_with = TARGET_COMPATIBLE_WITH, template = "//pw_kernel/target/qemu_virt_riscv32:linker_script_template", ) rust_test( name = "unittest_runner", srcs = [ "target.rs", ], tags = ["kernel"], target_compatible_with = TARGET_COMPATIBLE_WITH, use_libtest_harness = False, deps = [ ":linker_script", "//pw_kernel/kernel", "//pw_kernel/kernel/tests:integration_tests", "//pw_kernel/lib/unittest:unittest_core", "//pw_kernel/subsys/console:console_backend", "//pw_kernel/target:target_common", "//pw_kernel/target/qemu_virt_riscv32:entry", "//pw_log/rust:pw_log", "@rust_crates//:riscv-semihosting", ], )