mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 19:36:40 +00:00
- Moves most parts to //testing/lit_test to be consistent with //testing/file_test. - Separates the autoupdate script out because it's shared between lit_test and file_test now, not lit-specific. - Renames scripts to autoupdate_testdata (or autoupdate_lit_testdata for explorer's extra) to be more consistent with the non-lit-specific setup. - Switches from execv to subprocess.call to head off a subtle issue regarding execution of multiple scripts, which we're likely to want in the future. Mostly in this PR because everything was already being touched. - Removes autoupdate's dependency on merge_output in order to (a) better support the division of lit and non-lit logic and (b) remove a subprocess, for reasons similar to file_test's removal of subprocesses.
35 lines
845 B
Python
35 lines
845 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(
|
|
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",
|
|
)
|