Files
carbon-lang/testing/fuzzing/BUILD
T
Jonathan B. CoeandChandler Carruth 8c28a0494e Add size="small" to test targets where advised (#3326)
Running `bazel test //...` reported:

```
Test execution time outside of range for MODERATE tests.
Consider setting timeout="short" or size="small".
```

This change adds size="small" to avoid such warnings being reported.

---------

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
2023-10-24 06:52:00 +00:00

60 lines
1.5 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_binary", "cc_library", "cc_proto_library", "cc_test")
load("@rules_proto//proto:defs.bzl", "proto_library")
package(default_visibility = ["//visibility:public"])
proto_library(
name = "carbon_proto",
srcs = ["carbon.proto"],
)
cc_proto_library(
name = "carbon_cc_proto",
testonly = 1,
deps = [":carbon_proto"],
)
cc_library(
name = "proto_to_carbon_lib",
testonly = 1,
srcs = ["proto_to_carbon.cpp"],
hdrs = ["proto_to_carbon.h"],
deps = [
":carbon_cc_proto",
"//common:error",
"@com_google_protobuf//:protobuf_headers",
"@llvm-project//llvm:Support",
],
)
cc_binary(
name = "proto_to_carbon",
testonly = 1,
srcs = ["proto_to_carbon_main.cpp"],
deps = [
":carbon_cc_proto",
":proto_to_carbon_lib",
"//common:bazel_working_dir",
"//common:error",
"@com_google_protobuf//:protobuf_headers",
"@llvm-project//llvm:Support",
],
)
cc_test(
name = "proto_to_carbon_test",
size = "small",
srcs = ["proto_to_carbon_test.cpp"],
deps = [
":carbon_cc_proto",
":proto_to_carbon_lib",
"//common:error",
"//testing/base:gtest_main",
"@com_google_googletest//:gtest",
],
)