mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 02:20:29 +00: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>
44 lines
1.1 KiB
Python
44 lines
1.1 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_python//python:defs.bzl", "py_test")
|
|
|
|
# The filegroups establishing root rules for `genquery` invocations can be
|
|
# updated by running:
|
|
#
|
|
# ```
|
|
# ./bazel/check_deps/update_roots.py
|
|
# ```
|
|
filegroup(
|
|
name = "non_test_cc_rules",
|
|
data = [
|
|
"//explorer",
|
|
"//installers/local:carbon",
|
|
"//language_server",
|
|
"//migrate_cpp:rewriter",
|
|
"//migrate_cpp/cpp_refactoring",
|
|
"//toolchain/driver:carbon",
|
|
"//utils/treesitter",
|
|
],
|
|
tags = ["manual"],
|
|
)
|
|
|
|
genquery(
|
|
name = "non_test_cc_deps.txt",
|
|
expression = "kind('cc.* rule', deps(//bazel/check_deps:non_test_cc_rules))",
|
|
opts = [
|
|
"--notool_deps",
|
|
"--noimplicit_deps",
|
|
],
|
|
scope = [":non_test_cc_rules"],
|
|
)
|
|
|
|
py_test(
|
|
name = "check_non_test_cc_deps",
|
|
size = "small",
|
|
srcs = ["check_non_test_cc_deps.py"],
|
|
data = [":non_test_cc_deps.txt"],
|
|
main = "check_non_test_cc_deps.py",
|
|
)
|