From patchwork Fri Feb 2 20:00:07 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: 126762 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp946497ljc; Fri, 2 Feb 2018 12:01:27 -0800 (PST) X-Google-Smtp-Source: AH8x227RLxCOMBAh+6bbDekmEcgNpBNAsOpJrQ0WitTecOhsQsgnE9adXe8I7H73+p6HvjlocZCe X-Received: by 10.237.57.231 with SMTP id m94mr61141780qte.17.1517601686946; Fri, 02 Feb 2018 12:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517601686; cv=none; d=google.com; s=arc-20160816; b=0Qqhjj0SjhI1Lt4l7PEtUO5Jk+BshCFhRGhj7vJZ/t2bCWsZVVpQgGclFiwvp052R5 9U4JuKeBNWTUfv4Lgue07djtqVn8jjWNBCYqADJJGrC6EjtQQBcHEwQnreeHZbosruR3 rWpGBliFHdHXyUpJzYM36jQk+/G3ez+L2AWOzKo/5vLCCQ2UkC53dxIhnYyLPpWhcX3g DbeAUdTodibasyf21Ob/5TW627ulFAtkbOG0bhJB7/ceXu6Fl6ttI+6mXHKZz7D1ISyE 1ugiTYjPCEUBa2cY6NshIDAiIFQbWgIIrlbdmWV9fhyA/3xtkfdodLJUGBRtWG7H/z4Y Bp1A== 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=MDPgi99rIx4wZ1Lg6UAGi/PA5vdjksYpsJchKCFcPHk=; b=utkH+afJIskcOU6y7oiRtxByXiyY1caI97Ez7c478fNxNwSk/F1mFBMAupcUc4x2P4 738p9WRgvpLvlz9+OMogI0rwT6IEAOHjHLGqEskVp06o2qNnPeAK8X1ccY8PHSFNEzn8 lj4XoJN8vUM3xjQ1DphY4+7gFJ2S+vulsYu440tSSNhfU4zDJPZ5WfymzmTO72JYVwWG tzgLNOtxDqON+GF/FyvYbgbxZspa0EwPRf1DqAWsv/knhQD3gY0Eh1ZPrc7udLi8tCXO mTEAt5LvjBqJ/T7SvQYv7UkQQvT8M0X80F78JAYqNDbDwj+ByrjYZBNU4iIWor0oqaDN lZUA== 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 o2si2754597qtj.92.2018.02.02.12.01.26; Fri, 02 Feb 2018 12:01:26 -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 971A96176F; Fri, 2 Feb 2018 20:01:26 +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 981BB61754; Fri, 2 Feb 2018 20:00:27 +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 50DF66173F; Fri, 2 Feb 2018 20:00:19 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id A4D23608BD for ; Fri, 2 Feb 2018 20:00:15 +0000 (UTC) Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward101o.mail.yandex.net (Yandex) with ESMTP id C55981342B6B for ; Fri, 2 Feb 2018 23:00:13 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 557M62S4B9-0DmOhZwi; Fri, 02 Feb 2018 23:00:13 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rsIYih2Oy4-0CsmdYAS; Fri, 02 Feb 2018 23:00:12 +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: Fri, 2 Feb 2018 23:00:07 +0300 Message-Id: <1517601611-6263-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> References: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v10 1/5] shippable: report test results even if ci step failed 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 According to the documentation post_ci is executed only if ci finished successfully. Move test result reporting to separate script and call it from on_success and on_failure steps. 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: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: 01cdfba8d0a64c3f3144219f06c11740bccfda7e **/ .shippable.yml | 10 +++------- scripts/shippable-post.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100755 scripts/shippable-post.sh diff --git a/.shippable.yml b/.shippable.yml index 9bc2cb6f7..35292d983 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -40,14 +40,10 @@ build: - make - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check - post_ci: - - wget https://raw.githubusercontent.com/shawnliang/cunit-to-junit/master/cunit-to-junit.xsl - - | - for FILE in `find ./test ./platform/ -name "*.xml"`; do - bname=`basename $FILE`; - xsltproc --novalid cunit-to-junit.xsl $FILE > $SHIPPABLE_BUILD_DIR/shippable/testresults/${bname} - done + on_success: + - ./scripts/shippable-post.sh on_failure: + - ./scripts/shippable-post.sh - cat config.log - find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done diff --git a/scripts/shippable-post.sh b/scripts/shippable-post.sh new file mode 100755 index 000000000..ed5a44168 --- /dev/null +++ b/scripts/shippable-post.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +wget https://raw.githubusercontent.com/shawnliang/cunit-to-junit/master/cunit-to-junit.xsl + +for FILE in `find ./test ./platform/ -name "*.xml"`; do + bname="`basename $FILE`"; + xsltproc --novalid cunit-to-junit.xsl "$FILE" > \ + "$SHIPPABLE_BUILD_DIR/shippable/testresults/${bname}" +done From patchwork Fri Feb 2 20:00:08 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: 126761 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp945876ljc; Fri, 2 Feb 2018 12:00:58 -0800 (PST) X-Google-Smtp-Source: AH8x225p0mZs0MZCN3SOKV8NIA/lYsXgPHrA+y8gtRaVwdFAlCWUV0JP7aOtXF0tExO3xcQdcwEc X-Received: by 10.237.47.195 with SMTP id m61mr10691036qtd.95.1517601658105; Fri, 02 Feb 2018 12:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517601658; cv=none; d=google.com; s=arc-20160816; b=hll+rUu3EvfymR0SCG6qWq5rP7CcX/IlfO3M3dUeWZD5IzOz7hiTLQkpQss8KYyQyz hIitTV1Hl4w1wzPgkoadQiQWGJ6930YLdV9dIxAcq49vB1lv3oiMYSwlzPVT8+ga+fFt 9S6l2EbK8hI5REzrxZfIVQCOdMlKssbi7fTlgbfPJ7A5xWhsox4CdUSUmlqnOGqWfZ1/ wyChGnnqyyUNXZj6K8b7GrOHawWSVMCYC8OUh3s8+BpcAkeuz2aYzaDhfk+bEi0hynK2 9fUBFdrFwTHncv5ZubTBm1R+Y7UVHdjjWimDLWzXWXwfXDsn1GlasA9mP0vxHHRfMpWa uZwA== 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=HzuVA4SswrVDARSy6YJE5EG3Zb+VBuaGPsWKXXuvcMA=; b=PM5P1/B4Gdk6rTTz1Lw3t/fH5o0g2AVoTYX4l09QmhZc1t5WGr2WggjOFT0463pzQ9 fb0SBszsZibI16422FVakLE7AHsaPH4TG7q3ujFO/BdNSUlPrlAjs8w9QIZOgtss2e4S lTg1JInVx+yd4U++kH9VU67oJUOVvW55/rFl/Ly/VNvjffkWk8VgkRvzIZ7SDGBBaN74 Je8SlMgKWp+3GOavnYqxsb0X5bxGNfVJAVKShyTUe0YobFQGmr0isnFBqAcogguId6hv 49p8D/NVUN7Ez5xT40mcsrYEGnOew6atErdim47+TGnWGwvvBxsTh0ZnD9miegGVx3uL /RmQ== 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 9si2709712qtd.455.2018.02.02.12.00.57; Fri, 02 Feb 2018 12:00:58 -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 CA31461776; Fri, 2 Feb 2018 20:00:57 +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 170BC6173F; Fri, 2 Feb 2018 20:00:23 +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 8989961742; Fri, 2 Feb 2018 20:00:17 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id BC91060B0E for ; Fri, 2 Feb 2018 20:00:15 +0000 (UTC) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 54F1C4443A5D for ; Fri, 2 Feb 2018 23:00:14 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WVCrte9GSU-0EoikWb0; Fri, 02 Feb 2018 23:00:14 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rsIYih2Oy4-0DsiXXlt; Fri, 02 Feb 2018 23:00:13 +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: Fri, 2 Feb 2018 23:00:08 +0300 Message-Id: <1517601611-6263-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> References: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v10 2/5] shippable: run all tests 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 Use `make check -k' to run testsuite, so that all tests have a chance to be executed, not stopping after first failure. 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: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: 01cdfba8d0a64c3f3144219f06c11740bccfda7e **/ .shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.shippable.yml b/.shippable.yml index 35292d983..a9e008439 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -38,7 +38,7 @@ build: - ./bootstrap - ./configure --disable-test-perf - make - - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check + - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check -k on_success: - ./scripts/shippable-post.sh From patchwork Fri Feb 2 20:00:09 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: 126763 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp946622ljc; Fri, 2 Feb 2018 12:01:33 -0800 (PST) X-Google-Smtp-Source: AH8x226dqin1WTKF1yQ3yLbc9IuzEnxn5hNM9/PVDDQSlobacfzQb8KO+B6XaB4B/TQLmj21Gxop X-Received: by 10.200.51.21 with SMTP id t21mr6113656qta.263.1517601693132; Fri, 02 Feb 2018 12:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517601693; cv=none; d=google.com; s=arc-20160816; b=PhKbxPKXJadvdvWhT2J4goPXm3A+uNpc1FrAqqsm5oyllPVXp7SqtKVu9BbhS9VsQU 6JfvKUdLNRRic3q2NBVPIcByuxK1sHUu/ZRliVFC5OFsoVb7zzvh4GkTLLH33a2XBkzA LBgzEYbQTzCnOxh36SKFu+PYVX3NvaMCOPe5Zs1/KtEpDWui5uR9tyh+jRw7AtSdhLd5 wa0TcLy5ytrvLGNjLEASjCjkbSZMzHcub7LmsnZh/5WboIzyQpeMbOIzJPTNGQjhf3CJ 8w/jBJyiKw+j+QdUwTG55iVHDvg2vr2IwEWqGKU1fAk3Z9rUl4ID/7H8doUj9m5Vv3va u/Gg== 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=meYV5rh4YI5++mxKpZg7Qs4jHBx8PVbJnYPs/Hdt3BY=; b=tuyJ2apV8qvxaG3jRh7WBFA9sPXeBP+5pijUO/0Sk0qxL2rF41+DDSjiNaIzBS18gy bJHz1TF6kAMrlEQhmULvvnZ3z09P4Xba2PrBlMNTn6ZDHCCY4O8r++e4SlF+T/2taDHA BnBYc2N4jRVY18kqfjPwdtdJZxyo8KIW82u/bp5+Fbm4IM3pvcK733P2DyAfMk10ueGK 4lzOiRQ0FlNOA7xNsaDvFiXpSifmSk6P1zggeMfjykfoeTsQyC2sqvPNs0m1xS17SwfU 30MlnNNQ5ul/jxwzf9NsKgt+JKwAT2OSsbT1bR1AC2HQrCIUQsBNCeVOjOHWviICit+M aGTw== 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 l184si428271qkb.369.2018.02.02.12.01.32; Fri, 02 Feb 2018 12:01:33 -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 B189E61776; Fri, 2 Feb 2018 20:01:32 +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_H3, RCVD_IN_MSPIKE_WL 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 E011E6174D; Fri, 2 Feb 2018 20:00:29 +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 77C1E60B0E; Fri, 2 Feb 2018 20:00:19 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id C907E600CD for ; Fri, 2 Feb 2018 20:00:16 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward102j.mail.yandex.net (Yandex) with ESMTP id F29045604050 for ; Fri, 2 Feb 2018 23:00:14 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id si7ahwnyOi-0EkmFSMB; Fri, 02 Feb 2018 23:00:14 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rsIYih2Oy4-0EsOZ7WJ; Fri, 02 Feb 2018 23:00:14 +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: Fri, 2 Feb 2018 23:00:09 +0300 Message-Id: <1517601611-6263-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> References: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v10 3/5] shippable: set CXX for clang case 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: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: 01cdfba8d0a64c3f3144219f06c11740bccfda7e **/ .shippable.yml | 1 + scripts/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/.shippable.yml b/.shippable.yml index a9e008439..d17319e70 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -36,6 +36,7 @@ build: - sudo mount -t hugetlbfs nodev /mnt/huge - mkdir -p /dev/shm/odp - ./bootstrap + - if [ "${CC#clang}" != "${CC}" ] ; then export CXX="${CC/clang/clang++}"; fi - ./configure --disable-test-perf - 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 7e117971d..3e1d54dbd 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -25,3 +25,4 @@ RUN sudo apt-get update && sudo apt-get install -yy \ RUN sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 RUN sudo ln -s /usr/bin/clang-3.8 /usr/bin/clang +RUN sudo ln -s /usr/bin/clang++-3.8 /usr/bin/clang++ From patchwork Fri Feb 2 20:00:10 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: 126764 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp947219ljc; Fri, 2 Feb 2018 12:02:03 -0800 (PST) X-Google-Smtp-Source: AH8x226Lb4D7woxbNgRspwuDkvhLQMkscVoOVwV+kYLZmO4IKo43wYvwvYhLznLaxMJ8RKXnrutu X-Received: by 10.200.24.180 with SMTP id s49mr4156164qtj.239.1517601723520; Fri, 02 Feb 2018 12:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517601723; cv=none; d=google.com; s=arc-20160816; b=ZUHn7E2qgFwmtgLb54zv6jdBoZpwJaqjDidnC6ROdwQUZiHknhO7AOqsS75xGX3hIf JPXA4DQW4nL43kxDzqyHj9P7+kwAn3GQSMuwS+RDafbexVtCadgwo1aFeY8FEvUi1uCq BLqaSvwvAh1z9sQtZ5KmsHJ2NsKVSjEy+IhR++AZGGT6Eo9N7CetmjWFTIxMIg1OtV5Y PgGyPj8ahWFn3YB7TQPqHt+kxEB1Z4hT/vPW4oLw08Nh1rrlN6BYDJ/wUT0OEtgx9GwC yjwZUPdAWTHTyP5jIQXwnPEHwX3GLyAa15rB3XcGVstZHXWjLlIdRd6Xz2w9/RbklARw cu+g== 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=RTi0y1q2SRKV5ysLNlAI+gzAjMFKrIJ5mJq6A4eEWtw=; b=sbMWG99d+hy+X/uDwGmcb8+roUCeKzPaExGDoK1uKGJ/xa6TUWUu/ob2t27ok+yXrg K4Yzz1zkD4ephQ704UNLo0TH38FSU/q7rCo2IpEWTKRY+YgKfkkr28hMgVNBq1JpePP9 e4Clfj6Kgxaqfxv7VkOxiclyoWcDVTajHGh3Z7SDQThMrvyERDz4VyascolHT7bXDANG gslCMwr3ZBQ4NQB3BwLWa948//TYwLFu4UFQdaoYWzk1peatRLs5vJNfdCBku78A2uDM Bihtk1HlxS+ae6qAjhATUefg8qn8ZptmFbJSci8eWngt5bTQkIrM5gWJi01JC2XH99KV nyNw== 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 z188si485705qkc.400.2018.02.02.12.02.03; Fri, 02 Feb 2018 12:02:03 -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 22FA761742; Fri, 2 Feb 2018 20:02:03 +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 43E9061764; Fri, 2 Feb 2018 20:00:35 +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 5D798609C7; Fri, 2 Feb 2018 20:00:20 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id D7AAA616F6 for ; Fri, 2 Feb 2018 20:00:16 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 8C1E04304E43 for ; Fri, 2 Feb 2018 23:00:15 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gFYyyExcCg-0FjaVp3Z; Fri, 02 Feb 2018 23:00:15 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rsIYih2Oy4-0FsOhB99; Fri, 02 Feb 2018 23:00:15 +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: Fri, 2 Feb 2018 23:00:10 +0300 Message-Id: <1517601611-6263-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> References: <1517601611-6263-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v10 4/5] 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: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: 01cdfba8d0a64c3f3144219f06c11740bccfda7e **/ .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..9eae06262 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 -r . --xml-pretty --exclude 'test/|.*/test/|example/' -o shippable/codecoverage/coverage.xml