xref: /aosp_15_r20/external/bazelbuild-rules_testing/tests/BUILD (revision d605057434dcabba796c020773aab68d9790ff9f)
1# Copyright 2023 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
16load("@bazel_skylib//rules:build_test.bzl", "build_test")
17load(":analysis_test_tests.bzl", "analysis_test_test_suite")
18load(":truth_tests.bzl", "truth_test_suite")
19load(":unit_test_tests.bzl", "unit_test_test_suite")
20
21licenses(["notice"])
22
23bzl_library(
24    name = "analysis_test_tests_bzl",
25    srcs = ["analysis_test_tests.bzl"],
26    deps = [
27        "//lib:analysis_test_bzl",
28        "//lib:truth_bzl",
29    ],
30)
31
32bzl_library(
33    name = "truth_tests_bzl",
34    srcs = ["truth_tests.bzl"],
35    visibility = ["//visibility:private"],
36    deps = [
37        "//lib:truth_bzl",
38        "//lib:util_bzl",
39        "@bazel_skylib//lib:unittest",
40    ],
41)
42
43analysis_test_test_suite(name = "analysis_test_test_suite")
44
45truth_test_suite(name = "truth_tests")
46
47unit_test_test_suite(name = "unit_test_test_suite")
48
49build_test(
50    name = "build_tests",
51    targets = [
52        "//lib:util_bzl",
53        "//lib:unit_test_bzl",
54        "//lib:analysis_test_bzl",
55        "//lib:test_suite_bzl",
56        "//lib:truth_bzl",
57    ],
58)
59