github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/third_party/mlir/bindings/python/test/BUILD (about)

     1  # Description:
     2  #   BUILD file for the Python wrappers for EDSCs
     3  
     4  licenses(["notice"])  # Apache 2.0
     5  
     6  # Export the BUILD file so automated tooling can check licenses
     7  exports_files(["BUILD"])
     8  
     9  load("//third_party/llvm/build_defs:lit.bzl", "glob_lit_tests")
    10  
    11  glob_lit_tests(
    12      data = [":test_utilities"],
    13      driver = "@local_config_mlir//:run_lit.sh",
    14      test_file_exts = ["py"],
    15  )
    16  
    17  # Bundle together all of the test utilities that are used by tests.
    18  filegroup(
    19      name = "test_utilities",
    20      testonly = True,
    21      data = [
    22          ":test_edsc",
    23          "//third_party/llvm/llvm:FileCheck",
    24      ],
    25  )
    26  
    27  py_binary(
    28      name = "test_edsc",
    29      srcs = ["test_py2and3.py"],
    30      main = "test_py2and3.py",
    31      python_version = "PY2",
    32      deps = [
    33          "//testing/pybase",
    34          "@local_config_mlir//bindings/python:_pybind",
    35      ],
    36  )