mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 08:35:00 +01:00
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>
38 lines
1013 B
Python
38 lines
1013 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("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
|
|
|
package(default_visibility = [
|
|
"//explorer:__pkg__",
|
|
"//explorer/fuzzing:__pkg__",
|
|
])
|
|
|
|
cc_library(
|
|
name = "parse_and_execute",
|
|
srcs = ["parse_and_execute.cpp"],
|
|
hdrs = ["parse_and_execute.h"],
|
|
deps = [
|
|
"//common:check",
|
|
"//common:error",
|
|
"//explorer/base:trace_stream",
|
|
"//explorer/interpreter:exec_program",
|
|
"//explorer/interpreter:stack_space",
|
|
"//explorer/syntax",
|
|
"//explorer/syntax:prelude",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "parse_and_execute_test",
|
|
size = "small",
|
|
srcs = ["parse_and_execute_test.cpp"],
|
|
deps = [
|
|
":parse_and_execute",
|
|
"//testing/base:gtest_main",
|
|
"@com_google_googletest//:gtest",
|
|
],
|
|
)
|