blob: e7e911f619fe3fb8966e57df022a598905eb42ad [file] [edit]
# Copyright 2026 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("@pigweed//zephyr:pw_smoke_tests.bzl", "ZEPHYR_PW_SMOKE_TESTS")
load("@zephyr//:cc.bzl", "zephyr_cc_library")
load(":native_sim_cc_unit_test.bzl", "generate_smoke_tests")
package(default_visibility = ["//visibility:public"])
zephyr_cc_library(
name = "main",
testonly = True,
srcs = ["main.cc"],
target_compatible_with = ["@zephyr//boards/native:sim"],
deps = [
"@pigweed//pw_unit_test",
"@pigweed//pw_unit_test:printf_event_handler",
"@zephyr//scripts/native_simulator",
],
)
_SMOKE_TESTS_TARGETS = generate_smoke_tests(ZEPHYR_PW_SMOKE_TESTS)
test_suite(
name = "pw_smoke_tests",
tests = _SMOKE_TESTS_TARGETS,
)