Use a longer timeout for Bazel tests. (#2956)

This commit is contained in:
Ehsan 2019-10-09 15:14:42 -05:00 committed by GitHub
parent c705032b2b
commit 82f84c4b8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 20 deletions

View File

@ -507,20 +507,7 @@ base_test(
) for f in glob( ) for f in glob(
["test/val/*.cpp"], ["test/val/*.cpp"],
exclude = [ exclude = [
"test/val/val_capability_test.cpp", # has its own val_test below.
"test/val/val_limits_test.cpp", # has its own val_test below.
"test/val/pch_test_val.cpp", # pch tests are skipped. "test/val/pch_test_val.cpp", # pch tests are skipped.
], ],
)] )]
val_test(
name = "capability",
size = "large",
srcs = ["test/val/val_capability_test.cpp"],
)
val_test(
name = "limits",
size = "large",
srcs = ["test/val/val_limits_test.cpp"],
)

View File

@ -185,7 +185,7 @@ def base_test(name, srcs, deps = []):
srcs = srcs, srcs = srcs,
compatible_with = [], compatible_with = [],
copts = TEST_COPTS, copts = TEST_COPTS,
size = "small", size = "large",
deps = [ deps = [
":test_common", ":test_common",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
@ -202,7 +202,7 @@ def link_test(name, srcs, deps = []):
srcs = srcs, srcs = srcs,
compatible_with = [], compatible_with = [],
copts = TEST_COPTS, copts = TEST_COPTS,
size = "small", size = "large",
deps = [ deps = [
":link_test_common", ":link_test_common",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
@ -219,7 +219,7 @@ def opt_test(name, srcs, deps = []):
srcs = srcs, srcs = srcs,
compatible_with = [], compatible_with = [],
copts = TEST_COPTS, copts = TEST_COPTS,
size = "small", size = "large",
deps = [ deps = [
":opt_test_common", ":opt_test_common",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
@ -236,7 +236,7 @@ def reduce_test(name, srcs, deps = []):
srcs = srcs, srcs = srcs,
compatible_with = [], compatible_with = [],
copts = TEST_COPTS, copts = TEST_COPTS,
size = "small", size = "large",
deps = [ deps = [
":reduce_test_common", ":reduce_test_common",
":spirv_tools_reduce", ":spirv_tools_reduce",
@ -254,7 +254,7 @@ def util_test(name, srcs, deps = []):
srcs = srcs, srcs = srcs,
compatible_with = [], compatible_with = [],
copts = TEST_COPTS, copts = TEST_COPTS,
size = "small", size = "large",
deps = [ deps = [
":opt_test_common", ":opt_test_common",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
@ -263,7 +263,7 @@ def util_test(name, srcs, deps = []):
] + deps, ] + deps,
) )
def val_test(name, srcs = [], size = "small", copts = [], deps = [], **kwargs): def val_test(name, srcs = [], copts = [], deps = [], **kwargs):
if name[-5:] != "_test": if name[-5:] != "_test":
name = name + "_test" name = name + "_test"
if name[:4] != "val_": if name[:4] != "val_":
@ -273,7 +273,7 @@ def val_test(name, srcs = [], size = "small", copts = [], deps = [], **kwargs):
srcs = srcs, srcs = srcs,
compatible_with = [], compatible_with = [],
copts = TEST_COPTS + copts, copts = TEST_COPTS + copts,
size = size, size = "large",
deps = [ deps = [
":val_test_common", ":val_test_common",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",