Christian Sigg 70ac466676 [Bazel] Add lit tests to bazel builds.
Add BUILD.bazel files for most of the MLIR tests and lit tests itself.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D133455
2022-09-15 07:49:37 +02:00

18 lines
326 B
Python

load("//llvm:lit_test.bzl", "lit_test")
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
[
lit_test(
name = "%s.test" % src,
srcs = [src],
data = [
"//mlir:mlir-opt",
"//mlir/test:lit_data",
],
)
for src in glob(["**/*.mlir"])
]