From patchwork Mon Feb 5 14:00:28 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: 126893 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2001656ljc; Mon, 5 Feb 2018 06:07:22 -0800 (PST) X-Google-Smtp-Source: AH8x227KfZXAiV/3Z1gVBJmXHqJQyJfTrJnpxkjy7mDrZ8MjRtF9RfKW+tXTVfFpTyD+cvjYD9R0 X-Received: by 10.55.165.205 with SMTP id o196mr6914121qke.262.1517839642072; Mon, 05 Feb 2018 06:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517839642; cv=none; d=google.com; s=arc-20160816; b=c4nHS/Gy68Timf1RhfulTS38llzHEhfTqcI2jwkVrQgSzcCIIUGfhWTLJj0W6qOIyO qdx0004sxNL6kuEW7yToiQQqr8W1YksIcYDOVdf6EgP+QweqVia+LSf7PUKwNwnkD1A1 l+tAVZhTkI4N0UmK2RCFwGRl8/R8JtMRxaS1egPXhJsFcKAwcx3rlkgOiHRNCQKP4O4b WaGNK85IZdOpZ7py2v49uZ6LPEhFYIEckNBdTTO0KDnvSH86Vmqw1dV860zCHKXXDgvt 1k+5X5U8GvLzGdh6zh1Z0oqEKjlfMDpAgMzp2ocxbDU11Iny7dfeZB7TVinN2uFmx3dl i8aQ== 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=UR+V4OBG/YMkSsBZqKiquLbak9QigciIn/senUDQwgk=; b=keWsJxXekwqMqGwB16T5S9lNJEFvQ99OvYW9AT+ydobDiuaNVEuW5/tMqAUmhZqOKu 6p86jhdYLvxwvAX+xfvYMUdzSwlFxzmDMQ7HcVSlAt03lfPeg3xJMkAhAtiEINBKMqke oLhl2gnbiG5iGIyZI3HFYVQqQvBqsig4TCdb0Itege4sxn86pb1B0XbYEaLBWZ/xTaOw sTIA1SDp3DNmqwoYY9CQlye5o0QjxoQRHj9FUbHC8kqaY5lSeYus9DZTO4UH3/kj8j/H oDG7hkMDDJJN6RqoI93mzbLzwGB3UHTk42MuMGBtBRIGC3lJx92XeBUYVMXsEbiNUyqt S7sQ== 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 h20si3139912qta.418.2018.02.05.06.07.21; Mon, 05 Feb 2018 06:07:22 -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 C022A617CB; Mon, 5 Feb 2018 14:07:21 +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 5CC9C617EF; Mon, 5 Feb 2018 14:02:35 +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 388446172B; Mon, 5 Feb 2018 14:01:52 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 1C42561732 for ; Mon, 5 Feb 2018 14:00:38 +0000 (UTC) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward105p.mail.yandex.net (Yandex) with ESMTP id C9AC640829DC for ; Mon, 5 Feb 2018 17:00:36 +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 YVGdM17OUF-0aD0AeY6; Mon, 05 Feb 2018 17:00:36 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id saDyFPvH8X-0a2KQvNU; Mon, 05 Feb 2018 17:00:36 +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 17:00:28 +0300 Message-Id: <1517839228-10374-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517839228-10374-1-git-send-email-odpbot@yandex.ru> References: <1517839228-10374-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH v2 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: b70681310d12862313cc0487e0c97b589c76e412 **/ .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.travis.yml b/.travis.yml index e36c7bcb2..b2c5ba878 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 --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 allow_failures: - canfail: yes