From patchwork Thu Aug 16 18: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: 144446 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2382643ljj; Thu, 16 Aug 2018 11:08:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzNIQLEuNyG7kyinNGw42KUNA7wQ2PLkxBOu/3VroueebJ0CLUHxqmHyKnSnEd00qbyANhZ X-Received: by 2002:a0c:f883:: with SMTP id u3-v6mr27843003qvn.28.1534442922228; Thu, 16 Aug 2018 11:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534442922; cv=none; d=google.com; s=arc-20160816; b=GgGU4ZgrBPUZvwJYBydvUAeSP/CphyJzV2OLwLUBBrHEs70kzKuNimC3IJYcUM9/ab ska7ku+B/6nhKD/7sYSXSsAUP1+K0RNL5mvQ+BeeFqwQ7WM9HnK2FaBolkZIcXp2spkp 9WXJ0T/PHsTQmYBZ4nnf9QE0ChDdud3td3YmFsJEiSLjr2sN/zw/FTTZI9CVhzN9dAMo ujKEK0GKNWDtl8Yx3Ajhd4aAKEZiH8G+QkVfI9IjcOoyfLmngU27cc2NKmvA9UJWTd/w 4C2bVZJgKnfBEtyTU49k7eht3Rje4b8js3Pn6HB1mzUeA6jr1tC0Krhid+/z5BNIIoeI RiZg== 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=YPgczfCaweUUU5uWYTAOCXglVZYZA1S3nQQ+r9yfDg4=; b=jo2YZkbAG+b5O+2Uo8ojYAip+6Xw7dF31E5U66aVz1Yb0BPIi1mHe/Ks2gXt4IhFmS 9mkJO9VQQgNuoL7/Ipjm53XfHG+a746d0DIQp0CeRMCvPlhVTLVHpSZ2kNwT75AiU1Kz OZjujMtW0tbvIdjN4EMNuIjS2cv1QvIBsF5Xjz7MBzGN51ewPAWI6BkNqynMuvZLYBH9 DzUQIdtI8cUPvG7mZEhz3VzqQhFqF1vb+7UbzoaQzEm91PMxjENVNrMetdGGTFCpgnyd xwmtfUdEW6DiaXicCFqQByoNN/ZZj3HOxLp4iDP76gnYArnhuLQXd+euzPVP00SOjRXI pZQA== 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 n10-v6si1116078qtp.100.2018.08.16.11.08.41; Thu, 16 Aug 2018 11:08:42 -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 CFC56685FF; Thu, 16 Aug 2018 18:08:41 +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 7D72168625; Thu, 16 Aug 2018 18:02:34 +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 8FB51686BA; Thu, 16 Aug 2018 18:02:26 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 9B24C686A8 for ; Thu, 16 Aug 2018 18:00:58 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 0E761134648F for ; Thu, 16 Aug 2018 21:00:57 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YV1lcXytdk-0oEWfWJ8; Thu, 16 Aug 2018 21:00:50 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 161oJSJY57-0ofWFb2x; Thu, 16 Aug 2018 21:00:50 +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, 16 Aug 2018 18:00:08 +0000 Message-Id: <1534442411-9502-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534442411-9502-1-git-send-email-odpbot@yandex.ru> References: <1534442411-9502-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 647 Subject: [lng-odp] [PATCH v6 10/13] 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: f6c5d19f7fb9f83b8a2cbbed692a510146ca7df9 **/ 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