From patchwork Thu Feb 1 14: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: 126541 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1741356ljc; Thu, 1 Feb 2018 06:05:51 -0800 (PST) X-Google-Smtp-Source: AH8x225Nkq9Up465vuUyZ04NbRVRD4uUAQXehPi3TXosN/B2SBGvkS2+mVB293QSlOu2cpaXmCYE X-Received: by 10.200.51.225 with SMTP id d30mr58377195qtb.338.1517493950995; Thu, 01 Feb 2018 06:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517493950; cv=none; d=google.com; s=arc-20160816; b=H2PiHBS5T4VMNmz8Ulzr3qJQaTPN88/zSIXieeII1fiCQlE9F3nGjyI838xV4ilUjr ifJaPvpIAZsMEKI04EVgVDTZLU/e7zlV1Os3TLH32h96rIIjnHOXMUlu7cyOlxJLn8wX hpvtSobrIlCkcxiSiKTyoI/kzPXmt4YqU4kocVrN+pNwnfSW/dCrWmTrpSXewOuntlqm SV68j21Ryk/4Q6PIxYJWbTUVI+zxT+MEvq9BxJnkgOKF255ma6Go2jk9tgJMIcMnPhEI 3Y/gmZIs5Shj4y4SrPP6NqPUaGgGTVfOsoccLJCyrrrm4bPepABzH/XYjEBohVWjLyWH f6/A== 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=OAa4tHoSILkNrdvJShisR9dz9gzmBypgdS696IdbmAA=; b=Ls+Yttx+iyqPfHg5SHWlmm6RQhC2mxKScLnwInMGS5RQVqhGGrr3Obiw6SYshgv1nE 7bIyocKlAiaU1JteG0mSMulQj4Q4QljlCm9ZzdRCbHrbHE049HGEPGkvbqTsTrR73OpU qTCq8g7Ayz7K80K6WitUYkU6SYG2m85j+cTRml5e7XtPIvyi43z1GKrnke8oWIjg8gqr e2FyRnmbIAe8vPIidm+/iequtMwvRqD0iOtxksciW+/mW1mi5vxr1FZiov52uLgltGYI NL8ZSG8pLoNQMtgtC6eKy+Y/Nux/23FUhVXFHqnx8zkYlkTqV2gfV3KjU6QEjMm1UhOw DlYA== 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 r14si6421800qki.155.2018.02.01.06.05.50; Thu, 01 Feb 2018 06:05:50 -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 62D0A617A8; Thu, 1 Feb 2018 14:05:50 +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 5B5016177A; Thu, 1 Feb 2018 14:00:48 +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 CAEB661762; Thu, 1 Feb 2018 14:00:25 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 02C8461762 for ; Thu, 1 Feb 2018 14:00:15 +0000 (UTC) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward106o.mail.yandex.net (Yandex) with ESMTP id A2897782C90 for ; Thu, 1 Feb 2018 17:00:13 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 6CLV4gK3l5-0DDaxqhB; Thu, 01 Feb 2018 17:00:13 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 84IFXYC70u-0DnGfXDZ; Thu, 01 Feb 2018 17: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: Thu, 1 Feb 2018 17:00:07 +0300 Message-Id: <1517493607-30535-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517493607-30535-1-git-send-email-odpbot@yandex.ru> References: <1517493607-30535-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH v1 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: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: a7eb054a87f5e31ccdca856470dd8e2ce0dcdd1b **/ .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.travis.yml b/.travis.yml index b7d6cd415..dbb91e06a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -228,6 +228,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 @@ -412,6 +423,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 --with-papi-path=$HOME/papi-install + - 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 after_failure: - cat config.log