blob: bca9b20ecc2a0c845b34fe8a537703ac00a02eab [file] [log] [blame]
Matt Kwong0ff19572017-03-30 18:22:21 -07001#!/bin/bash
Jan Tattermusch7897ae92017-06-07 22:57:36 +02002# Copyright 2017 gRPC authors.
Matt Kwong0ff19572017-03-30 18:22:21 -07003#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02004# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
Matt Kwong0ff19572017-03-30 18:22:21 -07007#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02008# http://www.apache.org/licenses/LICENSE-2.0
Matt Kwong0ff19572017-03-30 18:22:21 -07009#
Jan Tattermusch7897ae92017-06-07 22:57:36 +020010# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Matt Kwong0ff19572017-03-30 18:22:21 -070015
16set -ex
17
18if [ "$CONFIG" != "gcov" ] ; then exit ; fi
19
20# change to directory of Python coverage files
Mehrdad Afsharid3143cd2017-06-27 14:47:14 -070021cd "$(dirname "$0")/../../../src/python/grpcio_tests/"
Matt Kwong0ff19572017-03-30 18:22:21 -070022
23coverage combine .
24coverage html -i -d ./../../../reports/python