From patchwork Thu Feb 8 01:00:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 127241 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1009652ljc; Wed, 7 Feb 2018 17:11:14 -0800 (PST) X-Google-Smtp-Source: AH8x227mbCCtw4wI6Xs6ugIcVvnEw2Ut3iq4eTzKGnShALH9Hztt0CEzNCqKSun5Rjcqr95KE4eW X-Received: by 10.55.24.204 with SMTP id 73mr12129217qky.298.1518052274374; Wed, 07 Feb 2018 17:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518052274; cv=none; d=google.com; s=arc-20160816; b=KkNM8/5eM2ujuu/F1wDKcKWpERbClzAvpZ95W1r6FdGvTkEJ2rAdSqL5I62Ri/adan iaO22g6A+JZPIHRinyrRG/P6E/Z4U6WsnopalnrYczzowBKiTJlLLduT/7Eul1HAQOoR NmhEaAQRll4pkCNbANE0/4lOeWz5iBNCvxrkGKm+hFMo0IU2NWI9ico2I7HRSeLH3jxu O9T++YVlZDXIx4AlzBL3pobv0fF0bsbWUABCa2j4Y/ynmlCvcivoZglNO1/TiWEXy6GT 9qdybyKCzAGCfpDP52A0Il/c2XZnL+WX8DgoRGufTXAt1jW4r5+5rnPLLTjJpf1xz8qk g9yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=NUXGpFsurBL2gD9aPiRfb84ctMFw1rMWHvGgx/weyAk=; b=rQaQu+tXdM5ancCFVZXQFh+cD9GsgsE2n6GV/wZjeqkBvZ13qsvnpFw8TjrYbAzC6Y +3gd4WF1jtXSbID6k3wTRtpSYhqOisetpuOx45Q3fT/ckwbkCpRwY4R/dGalk36A7ZI9 MATHnWYey2pVJmcmJhWac4M/8QBSCrpK0RSQJCtD+QiavTd+ksAzkNvmDiX02Ne1b/ur S9Ude/m7TKlOXDh2skx8keyAqZcijvAvPZKY2OxTpIgmA0MLme5UnAnYKs3HoY4q1GiK CflM6N7uEOKC1xbfp5cN9tUpgvdNdRj2+BK0OWcM/mRIUdtxLiwHnD74BwbI4u70+S5m p5HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id c4si2506173qtg.366.2018.02.07.17.11.14; Wed, 07 Feb 2018 17:11:14 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id E515960CBD; Thu, 8 Feb 2018 01:11:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id C36486182D; Thu, 8 Feb 2018 01:01:51 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0D63C61728; Thu, 8 Feb 2018 01:01:39 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id DBFC66172A for ; Thu, 8 Feb 2018 01:00:23 +0000 (UTC) Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 7752E21846D2 for ; Thu, 8 Feb 2018 04:00:22 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GBpuB4X874-0MFSuC2e; Thu, 08 Feb 2018 04:00:22 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bROEKCQMzX-0Mn4grux; Thu, 08 Feb 2018 04:00:22 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 8 Feb 2018 04:00:17 +0300 Message-Id: <1518051619-20953-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518051619-20953-1-git-send-email-odpbot@yandex.ru> References: <1518051619-20953-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v13 4/6] shippable: generate code coverage reports X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 441 (lumag:shippable-ci) ** https://github.com/Linaro/odp/pull/441 ** Patch: https://github.com/Linaro/odp/pull/441.patch ** Base sha: 257b08b35ceea41bad5a7f1c626496cf111e657a ** Merge commit sha: 223a609fc64a296b12ffa57310c51ace739462bc **/ .shippable.yml | 8 ++++++-- scripts/Dockerfile | 1 + scripts/shippable-post.sh | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.shippable.yml b/.shippable.yml index d17319e70..045019788 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -6,7 +6,7 @@ compiler: env: matrix: - - CONF="" + - CONF="--disable-test-perf" # - CONF="--disable-abi-compat" # - CONF="--enable-schedule-sp" # - CONF="--enable-schedule-iquery" @@ -37,7 +37,11 @@ build: - mkdir -p /dev/shm/odp - ./bootstrap - if [ "${CC#clang}" != "${CC}" ] ; then export CXX="${CC/clang/clang++}"; fi - - ./configure --disable-test-perf + - if [ "${CC#clang}" = "${CC}" ] ; then + ./configure $CONF CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" LDFLAGS="--coverage" ; + else + ./configure $CONF ; + fi - make - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check -k diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 3e1d54dbd..dc4411aa1 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -10,6 +10,7 @@ RUN sudo apt-get update && sudo apt-get install -yy \ ccache \ clang-3.8 \ gcc-4.8 \ + gcovr \ graphviz \ kmod \ libconfig-dev \ diff --git a/scripts/shippable-post.sh b/scripts/shippable-post.sh index ed5a44168..edd3a4238 100755 --- a/scripts/shippable-post.sh +++ b/scripts/shippable-post.sh @@ -7,3 +7,6 @@ for FILE in `find ./test ./platform/ -name "*.xml"`; do xsltproc --novalid cunit-to-junit.xsl "$FILE" > \ "$SHIPPABLE_BUILD_DIR/shippable/testresults/${bname}" done + +mkdir -p shippable/codecoverage +gcovr -v -r . --xml-pretty --exclude 'test/|.*/test/|example/' -o shippable/codecoverage/coverage.xml