mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 15:20:34 +00:00
This unifies `dump-tokens` and `dump-parse-tree` so that we don't keep writing basically the same code repeatedly. I'll need to modify the output of SemanticsIR::Print more, and may soon unify printing multiple IRs this way (particularly including the builtins SemanticsIR) but this is intended to offer a starting point. I may eventually try to unify lit.cfg.py files, but I was thinking about whether that works in various contexts we may run in and eventually decided copying the driver/testdata/lit.cfg.py file would be the easiest solution.
16 lines
452 B
Python
16 lines
452 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/testing:lit.bzl", "glob_lit_tests")
|
|
|
|
glob_lit_tests(
|
|
data = [
|
|
"//toolchain/driver:carbon",
|
|
"@llvm-project//llvm:FileCheck",
|
|
"@llvm-project//llvm:not",
|
|
],
|
|
driver = "lit.cfg.py",
|
|
test_file_exts = ["carbon"],
|
|
)
|