diff options
author | Adele Zhou <adelez@google.com> | 2018-02-16 18:26:13 -0800 |
---|---|---|
committer | Adele Zhou <adelez@google.com> | 2018-02-16 22:16:55 -0800 |
commit | 9f810b59f2091e8821f0999c5d66cbec7b522240 (patch) | |
tree | 7979fbff8d59355a9ce9bda1a7053ce394473f4d /test/core | |
parent | a2013f86a07505e74b91d284a75e49b839eca41b (diff) |
Run end2end tests with different pollers with Bazel.
Diffstat (limited to 'test/core')
-rwxr-xr-x | test/core/end2end/end2end_test.sh | 4 | ||||
-rwxr-xr-x | test/core/end2end/generate_tests.bzl | 19 |
2 files changed, 17 insertions, 6 deletions
diff --git a/test/core/end2end/end2end_test.sh b/test/core/end2end/end2end_test.sh index b1b9a65a1b..5bfb253090 100755 --- a/test/core/end2end/end2end_test.sh +++ b/test/core/end2end/end2end_test.sh @@ -15,4 +15,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +if [ -z "$3" ] + then + export GRPC_POLL_STRATEGY=$3 +fi "$1" "$2" diff --git a/test/core/end2end/generate_tests.bzl b/test/core/end2end/generate_tests.bzl index 1d759e1ecb..bfd5d8525e 100755 --- a/test/core/end2end/generate_tests.bzl +++ b/test/core/end2end/generate_tests.bzl @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +POLLERS = ['epollex', 'epollsig', 'epoll1', 'poll', 'poll-cv'] + load("//bazel:grpc_build_system.bzl", "grpc_sh_test", "grpc_cc_binary", "grpc_cc_library") """Generates the appropriate build.json data for all the end2end tests.""" @@ -219,9 +221,14 @@ def grpc_end2end_tests(): for t, topt in END2END_TESTS.items(): #print(compatible(fopt, topt), f, t, fopt, topt) if not compatible(fopt, topt): continue - grpc_sh_test( - name = '%s_test@%s' % (f, t), - srcs = ['end2end_test.sh'], - args = ['$(location %s_test)' % f, t], - data = [':%s_test' % f], - ) + for poller in POLLERS: + native.sh_test( + name = '%s_test@%s@poller=%s' % (f, t, poller), + data = [':%s_test' % f], + srcs = ['end2end_test.sh'], + args = [ + '$(location %s_test)' % f, + t, + poller, + ], + ) |