blob: 261c90fa41483d3c455d99eaae932cde96fbcc88 [file] [edit]
# Copyright (C) 2024 The Android Open Source Project
#
# 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
#
# http://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("@bazel_skylib//rules:build_test.bzl", "build_test")
load("//build/kernel/kleaf:hermetic_tools.bzl", "hermetic_genrule")
load("//build/kernel/kleaf/impl:empty_binary.bzl", "empty_binary")
empty_binary(
name = "bin",
tags = ["manual"],
)
hermetic_genrule(
name = "executes_bin",
outs = ["out.txt"],
cmd = "$(execpath :bin) > $@",
tags = ["manual"],
tools = [":bin"],
)
build_test(
name = "empty_binary_test",
targets = [
"executes_bin",
],
)