mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:51:09 +01:00
Adding `name` to `glob_lit_tests` will make it conform with other implementations of `glob_lit_tests` out there. If someone uses this repo while providing a different version of `glob_lit_tests` that requires a name, those build rules will become invalid.
36 lines
873 B
Python
36 lines
873 B
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
load("//bazel/sh_run:rules.bzl", "glob_sh_run")
|
|
load("//testing/lit_test:rules.bzl", "glob_lit_tests")
|
|
|
|
glob_lit_tests(
|
|
name = "all_lit_tests",
|
|
data = [
|
|
"//explorer",
|
|
"//testing/lit_test:merge_output",
|
|
"@llvm-project//llvm:FileCheck",
|
|
"@llvm-project//llvm:not",
|
|
],
|
|
driver = "lit.cfg.py",
|
|
test_file_exts = ["carbon"],
|
|
)
|
|
|
|
glob_sh_run(
|
|
args = ["$(location //explorer)"],
|
|
data = ["//explorer"],
|
|
file_exts = ["carbon"],
|
|
)
|
|
|
|
glob_sh_run(
|
|
args = [
|
|
"$(location //explorer)",
|
|
"--parser_debug",
|
|
"--trace_file=-",
|
|
],
|
|
data = ["//explorer"],
|
|
file_exts = ["carbon"],
|
|
run_ext = "verbose",
|
|
)
|