From patchwork Mon Feb 5 16:00:18 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: 126918 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2100153ljc; Mon, 5 Feb 2018 08:11:37 -0800 (PST) X-Google-Smtp-Source: AH8x22714v3e7wzTnGEdalCuXilepzIfx3B/n0fC4GY4W9+3kWL0fmTgKiZaBTJ3L57gXVDDHYdC X-Received: by 10.55.24.204 with SMTP id 73mr20057138qky.298.1517847097478; Mon, 05 Feb 2018 08:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517847097; cv=none; d=google.com; s=arc-20160816; b=lRIxzNqgFMo4R03rsr5rUqknvXgZoD3o0/K5q8ey32BLyt0kDU/T0yZq813T9dzVlx tLRJTSLSpDwHcmK5AKWVAtcsVUOTsZFadCMi4j11GctWbSvos9ubUTf79Abn1Q0lyGEY TZPEij1nCqd6Fv4o/G0xutSxaaPWY3piX37K2VAd3rkjQExNO2bw4yas0C/u2FNF8iUl Rzm899EcCKs30K6JFlrj4RrF5ZtJbiA+0cnGXFWfcvhn7CcxXUYyNZ1v2kt5g4M00UY9 9IKfpSx4nxNohg73Tvj0NZHsfaYh9NGg0l0+i3kvzGGPk6QaFW95QpEbWzmiUJmWbl/s hXwg== 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=qobs94WXTGnwlI9eIDgvzCHqDkJ59l4PbOkbwyjNwic=; b=G8z8HR3kV0caHA6izKPApaa8iepXN7rQAzwx9flVq69Dt8DGaJKz3ICotw7J5ztMjB UEw1t6xhg4jbmVY3QDvJjifIGp1mKuu8RYa453m7CPIo213z0hY+EWLODqg+ED3xAU2w iXABPWRP2kP0zFaKQ2QN2oiq3dXaNwc21dVLP2iX62b9YY7R/pIW0rlJCoAy+Bl3Z2uy GQq7yrYaL0XzkvQF0JlWNK0uRRR+gGt1DU4wf9mT1kLg/ZRqLt/vyJxocLx/bNgw4xGv 1m2uFHHrLx6beE1jIvhTZdvWwnm4Ld07wiZLk7Cc4tVNZWhKpzJApYNH9sDjHb/tTThf bz9Q== 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 23si769897qtr.35.2018.02.05.08.11.37; Mon, 05 Feb 2018 08:11:37 -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 258186276F; Mon, 5 Feb 2018 16:11:37 +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 2199062777; Mon, 5 Feb 2018 16:01:39 +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 0DFA762777; Mon, 5 Feb 2018 16:01:32 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id A880D6178E for ; Mon, 5 Feb 2018 16:00:26 +0000 (UTC) Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 8A8BC408335B for ; Mon, 5 Feb 2018 19:00:25 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id SxSFnHsPxz-0PbqbLN4; Mon, 05 Feb 2018 19:00:25 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sIMWrr2EaX-0OpmssQa; Mon, 05 Feb 2018 19:00:24 +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: Mon, 5 Feb 2018 19:00:18 +0300 Message-Id: <1517846418-10342-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517846418-10342-1-git-send-email-odpbot@yandex.ru> References: <1517846418-10342-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH v3 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: be5c8bc74d773397cd54e079ddbad67c56d6fa33 **/ .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.travis.yml b/.travis.yml index e36c7bcb2..ab13968a0 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 PKG_CONFIG_PATH=$HOME/papi-install/lib/pkgconfig + - 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