From 82f84c4b8f19a3a59647e851a5b3921d63b7b8e4 Mon Sep 17 00:00:00 2001 From: Ehsan Date: Wed, 9 Oct 2019 15:14:42 -0500 Subject: [PATCH] Use a longer timeout for Bazel tests. (#2956) --- BUILD.bazel | 13 ------------- build_defs.bzl | 14 +++++++------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index bac1a660..dc1ca604 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -507,20 +507,7 @@ base_test( ) for f in glob( ["test/val/*.cpp"], 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. ], )] -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"], -) diff --git a/build_defs.bzl b/build_defs.bzl index 7d0c48cd..483fd2ae 100644 --- a/build_defs.bzl +++ b/build_defs.bzl @@ -185,7 +185,7 @@ def base_test(name, srcs, deps = []): srcs = srcs, compatible_with = [], copts = TEST_COPTS, - size = "small", + size = "large", deps = [ ":test_common", "@com_google_googletest//:gtest_main", @@ -202,7 +202,7 @@ def link_test(name, srcs, deps = []): srcs = srcs, compatible_with = [], copts = TEST_COPTS, - size = "small", + size = "large", deps = [ ":link_test_common", "@com_google_googletest//:gtest_main", @@ -219,7 +219,7 @@ def opt_test(name, srcs, deps = []): srcs = srcs, compatible_with = [], copts = TEST_COPTS, - size = "small", + size = "large", deps = [ ":opt_test_common", "@com_google_googletest//:gtest_main", @@ -236,7 +236,7 @@ def reduce_test(name, srcs, deps = []): srcs = srcs, compatible_with = [], copts = TEST_COPTS, - size = "small", + size = "large", deps = [ ":reduce_test_common", ":spirv_tools_reduce", @@ -254,7 +254,7 @@ def util_test(name, srcs, deps = []): srcs = srcs, compatible_with = [], copts = TEST_COPTS, - size = "small", + size = "large", deps = [ ":opt_test_common", "@com_google_googletest//:gtest_main", @@ -263,7 +263,7 @@ def util_test(name, srcs, deps = []): ] + deps, ) -def val_test(name, srcs = [], size = "small", copts = [], deps = [], **kwargs): +def val_test(name, srcs = [], copts = [], deps = [], **kwargs): if name[-5:] != "_test": name = name + "_test" if name[:4] != "val_": @@ -273,7 +273,7 @@ def val_test(name, srcs = [], size = "small", copts = [], deps = [], **kwargs): srcs = srcs, compatible_with = [], copts = TEST_COPTS + copts, - size = size, + size = "large", deps = [ ":val_test_common", "@com_google_googletest//:gtest_main",