llvm/utils/bazel/llvm-project-overlay/mlir/test/mlir-pdll/BUILD.bazel

load("//llvm:lit_test.bzl", "lit_test")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

[
    lit_test(
        name = "%s.test" % src,
        srcs = [src],
        data = glob([
            "Parser/include/**",
            "CodeGen/MLIR/include/**",
            "CodeGen/CPP/include/**",
        ]) + [
            "//mlir:OpBaseTdFiles",
            "//mlir:mlir-pdll",
            "//mlir/test:lit_data",
        ],
    )
    for src in glob(
        include = ["**/*.pdll"],
        exclude = ["Parser/include/included.pdll"],
    )
]