mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:30:12 +01:00
The `file_test` layer still adds it to the VFS and filters it from the dump output, but the driver now injects it into the compilation unites depending on the `--import-prelude` file (enabled by default). This doesn't address improvements to how we find the prelude code, just sinking the needed logic into the driver itself.
55 lines
1.4 KiB
Python
55 lines
1.4 KiB
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("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
|
load("//testing/file_test:rules.bzl", "file_test")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
file_test(
|
|
name = "file_test",
|
|
size = "small",
|
|
srcs = ["file_test.cpp"],
|
|
tests = [
|
|
"//toolchain/check:testdata",
|
|
"//toolchain/codegen:testdata",
|
|
"//toolchain/diagnostics:testdata",
|
|
"//toolchain/driver:testdata",
|
|
"//toolchain/lex:testdata",
|
|
"//toolchain/lower:testdata",
|
|
"//toolchain/parse:testdata",
|
|
],
|
|
deps = [
|
|
"//common:all_llvm_targets",
|
|
"//common:error",
|
|
"//testing/file_test:file_test_base",
|
|
"//toolchain/driver",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "yaml_test_helpers",
|
|
testonly = 1,
|
|
srcs = ["yaml_test_helpers.cpp"],
|
|
hdrs = ["yaml_test_helpers.h"],
|
|
deps = [
|
|
"//common:error",
|
|
"//common:ostream",
|
|
"@googletest//:gtest",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "yaml_test_helpers_test",
|
|
size = "small",
|
|
srcs = ["yaml_test_helpers_test.cpp"],
|
|
deps = [
|
|
":yaml_test_helpers",
|
|
"//testing/base:gtest_main",
|
|
"@googletest//:gtest",
|
|
],
|
|
)
|