diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-04-16 20:42:11 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-04-16 20:42:11 +0000 |
commit | cde4ff6749ed3ef5b6658b45e3e76b235d89363c (patch) | |
tree | 542969f44a825983e4064ff996b8dfc9eef9684f | |
parent | e5d5a0e522de601dd03d3a5eb32e6075cf5f4c22 (diff) | |
parent | ef2d78ee0b5187fb6d85d764462e648344744f31 (diff) | |
download | tests-cde4ff6749ed3ef5b6658b45e3e76b235d89363c.tar.gz |
Merge "Delete test_mappings Bazel targets." into main
-rw-r--r-- | net/test/BUILD.bazel | 22 | ||||
-rw-r--r-- | test_mappings/BUILD.bazel | 75 |
2 files changed, 0 insertions, 97 deletions
diff --git a/net/test/BUILD.bazel b/net/test/BUILD.bazel deleted file mode 100644 index f0fc0f9..0000000 --- a/net/test/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -# 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("@rules_pkg//pkg:mappings.bzl", "pkg_files") - -pkg_files( - name = "test_mappings", - srcs = ["TEST_MAPPING"], - prefix = package_name(), - visibility = ["//kernel/tests/test_mappings:__pkg__"], -) diff --git a/test_mappings/BUILD.bazel b/test_mappings/BUILD.bazel deleted file mode 100644 index b9dcf67..0000000 --- a/test_mappings/BUILD.bazel +++ /dev/null @@ -1,75 +0,0 @@ -# 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("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup") - -# Collect into a .zip file the TEST_MAPPING files for packages whose tests -# should be run in kernel presubmit and postsubmit testing. -# This rule is in this directory -# because these TEST_MAPPING files are used when testing kernel code and -# kernel/tests is the good place for that. -# -# Conventions: -# - Each package declares a :test_mappings pkg_files() target that contains -# all TEST_MAPPING files in that package. Avoid -# exports_files(["TEST_MAPPING"]) -# because it requires this target to poke into the implementation -# detail of each package, and it is less flexible if the package has -# more TEST_MAPPING files in the future. -# - Be careful about package boundaries, especially if you are using a -# glob() expression. See -# https://bazel.build/reference/be/functions#glob -# -# Example for a package with a single TEST_MAPPING file at the top level: -# -# pkg_files( -# name = "test_mappings", -# srcs = ["TEST_MAPPING"], -# prefix = package_name(), -# visibility = ["//kernel/tests/test_mappings:__pkg__"], -# ) -# -# Example for a package with multiple TEST_MAPPING files. Use `renames` -# to preserve the directory structure within the archive: -# -# _TEST_MAPPINGS = glob(["**/TEST_MAPPING"]) -# pkg_files( -# name = "test_mappings", -# srcs = _TEST_MAPPINGS, -# prefix = package_name(), -# renames = {file: file for file in _TEST_MAPPINGS}, -# visibility = ["//kernel/tests/test_mappings:__pkg__"], -# ) - -# All interesting test_mappings targets, except the one in the kernel tree -# (usually //common). -pkg_filegroup( - name = "non_kernel_test_mappings", - srcs = [ - "//kernel/tests/net/test:test_mappings", - - # Drop external/zlib/TEST_MAPPING because //external is not a valid - # package. If we need this in the future, it needs to be changed to - # @zlib instead. - # "//external/zlib:test_mappings", - - # Drop prebuilts/rust/TEST_MAPPING because: - # - It doesn't contain useful content; the files it imports do not - # exist in the kernel tree as of 2024-03-28. - # - prebuilts/rust does not exist on android15-6.1 manifest. - # TODO(b/330775243): Add it back after main-kernel-build-2024 cut over. - # "//prebuilts/rust:test_mappings", - ], - visibility = ["//visibility:public"], -) |