From patchwork Thu Aug 2 16:00:13 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: 143365 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2349325ljj; Thu, 2 Aug 2018 09:10:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeOZSGoOG2h8FFYXzMhH0b7sguUgiRbS2Uxzt1czCr5rjQGLS8GA7muCLwqjmgWR/M7VLgr X-Received: by 2002:a0c:92e4:: with SMTP id c33-v6mr133215qvc.178.1533226230246; Thu, 02 Aug 2018 09:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533226230; cv=none; d=google.com; s=arc-20160816; b=WnNrh6Cdkf7KeY8iHlnxMqSyqyvB/JJ9nFDx5pGFUVYZAkJGsXDtHRtmPayjJTjpzl oRCUDsMDpsVv9AcB1/rg6DBy7ZxJw7b5jggC2gKqqJXrDWeQ2UF2iljfOCIkbJCd2MPr 6mBSbRN7QgbsHxsj3inlTkbwRBacdpP2omfbhs8MXZFgVGBpS95a5majfNlHH/3O077u tSSs0oTqKc8Iq6Vgv+zseyykwQPEWEnAqcA03OvM721yYQYmBda3EB9gw7FPFZZnDpb2 WCNGRoyoq8Lmd6CXbvBnVp2D7M6EaBgY2QrKRNiofKqoPImpNFtG4iE/P24HYFz3FMCH kuQQ== 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=aLY0fI9bJ647qKqzz9jYMTBw/BA1VlHqgtUu+ddD3x0=; b=VHRHthdyn6TiKqurHqWDNTkZCav1w2RkJNwcDgiwPNOykEFwmLsb0oo6jclfQwGZSX bJkNtsyn1ixfAGRKzZOPGMHNI8UKYvNOdxFjla0o6sX/ffJGm8mL8ia7qzVb9MUKfcIk pUUYJzdYigPqB3hkOTqk5JFIOpdxtwlfILOHwX0xzNKPnd6Wgic3wAWW8iqR3PvY1yOP +wb5qesKJN7bDm8y/Wqd+IV20scteEt/3GtC+RuUfLc3MKi44mbRvr7CxXNobFTRYFIK 5WhLiNyauQO4YzljMcb0wSPLvdr+Qvw1esEtX5h4ImcCZLfPwu3ED5PIEjr5K1nUydfw eAZA== 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 y17-v6si2308199qtj.52.2018.08.02.09.10.29; Thu, 02 Aug 2018 09:10:30 -0700 (PDT) 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 D966F68614; Thu, 2 Aug 2018 16:10:29 +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=-3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW 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 D6CF768639; Thu, 2 Aug 2018 16:03:41 +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 6EB3568638; Thu, 2 Aug 2018 16:03:31 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id DAE6868616 for ; Thu, 2 Aug 2018 16:00:32 +0000 (UTC) Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:167]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 5439843078E9 for ; Thu, 2 Aug 2018 19:00:31 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id cbjtKotIUX-0VSmS3So; Thu, 02 Aug 2018 19:00:31 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Gj7hFMLav7-0U9K0O0l; Thu, 02 Aug 2018 19:00:30 +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, 2 Aug 2018 16:00:13 +0000 Message-Id: <1533225614-20192-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533225614-20192-1-git-send-email-odpbot@yandex.ru> References: <1533225614-20192-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 647 Subject: [lng-odp] [PATCH v5 10/11] ci: refine coverage 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: Maxim Uvarov Signed-off-by: Maxim Uvarov --- /** Email created from pull request 647 (muvarov:master_docker2) ** https://github.com/Linaro/odp/pull/647 ** Patch: https://github.com/Linaro/odp/pull/647.patch ** Base sha: 6886a2ca3d3dd1157302ddee424c36f632903bd0 ** Merge commit sha: 1ca948a3fc61fc94775495bb529ab02560071b04 **/ scripts/ci/coverage.sh | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/scripts/ci/coverage.sh b/scripts/ci/coverage.sh index 279ab5dcf..2627d64ba 100755 --- a/scripts/ci/coverage.sh +++ b/scripts/ci/coverage.sh @@ -10,21 +10,47 @@ CWD=$(dirname "$0") TDIR=`mktemp -d -p ~` cd ${TDIR} +echo 1000 | tee /proc/sys/vm/nr_hugepages +mkdir -p /mnt/huge +mount -t hugetlbfs nodev /mnt/huge git clone ${CWD}/../../ odp cd ./odp ./bootstrap ./configure \ - CFLAGS="-O0 -coverage" CXXFLAGS="-O0 -coverage" LDFLAGS="--coverage" \ + CFLAGS="-O0 -coverage $CLFAGS" CXXFLAGS="-O0 -coverage $CXXFLAGS" LDFLAGS="--coverage $LDFLAGS" \ --enable-debug=full --enable-helper-linux --enable-dpdk export CCACHE_DISABLE=1 make -j $(nproc) +# ignore possible failures there because these tests depends on measurements +# and systems might differ in performance. +export ci="true" + ODP_SCHEDULER=basic make check +if [ $? -ne 0 ]; then + find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done +fi + ODP_SCHEDULER=sp make check +if [ $? -ne 0 ]; then + find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done +fi + ODP_SCHEDULER=iquery make check +if [ $? -ne 0 ]; then + find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done +fi + ODP_SCHEDULER=scalable make check +if [ $? -ne 0 ]; then + find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done +fi + + bash <(curl -s https://codecov.io/bash) -X coveragepy cd ~ rm -rf ${TDIR} + +umount /mnt/huge