mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-27 20:40:10 +01:00
Might eventually want to change this further, but I'm just adding the quick framework for it.
40 lines
965 B
Python
40 lines
965 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("//bazel/testing:lit.bzl", "glob_lit_tests")
|
|
|
|
glob_lit_tests(
|
|
data = [
|
|
"//bazel/testing:merge_output",
|
|
"//toolchain/driver:carbon",
|
|
"@llvm-project//llvm:FileCheck",
|
|
"@llvm-project//llvm:not",
|
|
],
|
|
driver = "lit.cfg.py",
|
|
test_file_exts = ["carbon"],
|
|
)
|
|
|
|
glob_sh_run(
|
|
args = [
|
|
"$(location //toolchain/driver:carbon)",
|
|
"dump",
|
|
"parse-tree",
|
|
],
|
|
data = ["//toolchain/driver:carbon"],
|
|
file_exts = ["carbon"],
|
|
)
|
|
|
|
glob_sh_run(
|
|
args = [
|
|
"$(location //toolchain/driver:carbon)",
|
|
"-v",
|
|
"dump",
|
|
"parse-tree",
|
|
],
|
|
data = ["//toolchain/driver:carbon"],
|
|
file_exts = ["carbon"],
|
|
run_ext = "verbose",
|
|
)
|