summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2024-04-09 15:48:02 -0700
committerYifan Hong <elsk@google.com>2024-04-09 15:55:15 -0700
commitef2d78ee0b5187fb6d85d764462e648344744f31 (patch)
tree057675c0790878e7891ca81dee07e67e3b364e39
parent94e4b5e57ccc5f7414692cf2187b31d4a81b1105 (diff)
downloadtests-ef2d78ee0b5187fb6d85d764462e648344744f31.tar.gz
Delete test_mappings Bazel targets.
We no longer care about a central place for test mapping files. We only need TEST_MAPPING files from common/. Test: TH Bug: 326993647 Change-Id: I30c21f99de98c9c857c6ede0a090dd24e4e8c385
-rw-r--r--net/test/BUILD.bazel22
-rw-r--r--test_mappings/BUILD.bazel75
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"],
-)