From patchwork Tue Feb 6 10:00:22 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: 126977 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2767520ljc; Tue, 6 Feb 2018 02:08:43 -0800 (PST) X-Google-Smtp-Source: AH8x224jdtMRLHfwRy4ZExEB6eCCwKA0UEjfpZsahybkQo6S34eUoZIrn3g71b7I755Cer8IwHnU X-Received: by 10.55.103.197 with SMTP id b188mr2678338qkc.244.1517911723551; Tue, 06 Feb 2018 02:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517911723; cv=none; d=google.com; s=arc-20160816; b=soRSs4CJmrpH6BcaDnfhzPRvoa0/ADWHWMKN07IGGXzH28sS8/dAmKyXPrHFOo0tFd Q14+yqs+vwBu6oXXI3ognarHWLCdHtq0KLVVFUH30kXRP8K5hAmISaIBulcXrXCHSaHM fhAi0bT7ru5+/drv8vwH+qyoibgmHGlyau86VcwcP4YtZ86tdPxxYNd8mvxXpocX8YG/ FoGb4AQCJZgSZqbr07LsVaCajwJ7kIhPqhDoe38RcTJEjUSxMiIKQ4tY7fsCejXWltbL OwYIkJgQlGQsaIZs93Y8GuWPj8bbRCzYfww4ECxxrGa0NIJFmrUPWegStw4mmVDCyQqz bIgw== 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=LAIHEdYP5RvAcEgO/R8gMFva6FeYYH/p5/AisvJpGjM=; b=cf7PMwk1gGABAUouNHJm/mKKAYgfKrXma8nTtGkID4vvwvx7HEexjHjuxPjlenBqpA gvpSKHvOfCTLXkZUJ0dqy+n3T5Yu1xhwzy4qFZg2WgA1rVYNHYLSXtT2VAW2HPKNBm6d 5MYZq6ZQ2asWdclAtgtCjq8zG6mjRIoMmvBfkth1Olsq0NA0g4xLHtUVLzZYbSFaqC1m RcXVAuDnsM3HrZW0Lit5kzlBYC7UPphAstcM9aCxZPkzbEFiWqfxyMNNmUGoQOgHlYo+ qxON74V97j9SxXxapxRpJc6lISyfnA8l0rvux4WMS7dm5d1UVCRGw75l0B9H8chWND45 ZD/g== 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 q42si1723686qtc.164.2018.02.06.02.08.43; Tue, 06 Feb 2018 02:08:43 -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 367356276F; Tue, 6 Feb 2018 10:08:43 +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 F28C6617F1; Tue, 6 Feb 2018 10:03:57 +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 7171861784; Tue, 6 Feb 2018 10:03:53 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id C1222607A2 for ; Tue, 6 Feb 2018 10:01:35 +0000 (UTC) Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 6BA51419BC for ; Tue, 6 Feb 2018 13:01:34 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XaQutBxBav-1Y34fPOE; Tue, 06 Feb 2018 13:01:34 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bzfBbjnfEh-1RwWEO6a; Tue, 06 Feb 2018 13:01:27 +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: Tue, 6 Feb 2018 13:00:22 +0300 Message-Id: <1517911222-3896-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517911222-3896-1-git-send-email-odpbot@yandex.ru> References: <1517911222-3896-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH v4 7/7] example: instrum: add travis test 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: Bogdan Pricope Add test to validate ODP build with papi library. Signed-off-by: Bogdan Pricope --- /** Email created from pull request 443 (bogdanPricope:master_benchmark_pr) ** https://github.com/Linaro/odp/pull/443 ** Patch: https://github.com/Linaro/odp/pull/443.patch ** Base sha: 27a7923236030fed0272cc9072f0cde62496e91d ** Merge commit sha: 34bd4730244cef8aa4ef2778135e469012c66768 **/ .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.travis.yml b/.travis.yml index e36c7bcb2..4a60f077a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -240,6 +240,17 @@ install: EXTRA_CONF="$EXTRA_CONF --with-netmap-path=`pwd`/netmap" fi +# PAPI library + - | + if [ -z "$CROSS_ARCH" -a ! -f "$HOME/papi-install/lib/libpapi.so" ]; then + git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=papi-5-6-0-t https://bitbucket.org/icl/papi.git + pushd papi/src + ./configure --prefix=$HOME/papi-install + make + make install + popd + fi + script: - ./bootstrap - ./configure --prefix=$HOME/odp-install @@ -425,6 +436,17 @@ jobs: - echo ${TRAVIS_COMMIT_RANGE}; - ODP_PATCHES=`echo ${TRAVIS_COMMIT_RANGE} | sed 's/\.//'`; - ./scripts/ci-checkpatches.sh ${ODP_PATCHES}; + - stage: test + env: TEST=code_instrum + compiler: gcc + script: + - ./bootstrap + - ./configure --prefix=$HOME/odp-papi-install --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-cunit-path=$HOME/cunit-install/$CROSS_ARCH --enable-code-instrum PAPI_CFLAGS="-I$HOME/papi-install/include" PAPI_LIBS="-L$HOME/papi-install/lib -lpapi" + - make -j $(nproc) + - make install + - sudo $HOME/papi-install/bin/papi_avail + - mkdir $HOME/store + - sudo LD_LIBRARY_PATH="/usr/local/lib:$HOME/odp-papi-install/lib:$HOME/papi-install/lib:$LD_LIBRARY_PATH" ODP_INSTRUM_STORE_DIR=$HOME/store LD_PRELOAD=libinstrum.so.0.0.0 $HOME/odp-papi-install/bin/odp_generator -I lo --srcmac a0:36:9f:28:e2:57 --dstmac 00:0f:fe:c5:73:66 --srcip 192.168.150.1 --dstip 192.168.150.2 -m u -n 200 allow_failures: - canfail: yes