From patchwork Mon Jan 29 16:00:21 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: 126181 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp2559371ljd; Mon, 29 Jan 2018 08:07:33 -0800 (PST) X-Google-Smtp-Source: AH8x225q04FWqxlcgI6mk/SOn9isFRguUlCiek8lYToQsWCwSFjgqDN9oQX/C0AQ4JHk/YrMQomz X-Received: by 10.13.230.3 with SMTP id p3mr17473242ywe.137.1517242053478; Mon, 29 Jan 2018 08:07:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517242053; cv=none; d=google.com; s=arc-20160816; b=afVs2lBj0p+onayql11/Phnb2drN+/GXQIMcjaZQw2aeXYVv2NDaWWtR7fWo5oRw7h e+Wz37V1PRqGtqc2XXDixQwVeiWi9gooQDekhGzotdoSjcmKGwcTUTkj7XmskuMqhG+W nfI1VtWtLj8KMOUvM1idaRfRyTkjaBlgE04C38sWHfwOW6E70F5erA1fBnFcFPlDS33a mTcwr0+cSVrnh8SSbmrjMhb8Gx/NrDTfjCeVPJKJM4uCvq3xVwvRkWzrJ7TpvpDpaapq 3O9p586UtyHkBIx5mktmiNkPz1JF/3BG28oma3d4RHzrsH7g4C3JUIkw9dUsEMDVTtGp LEEA== 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=nmCCPQ54hdvZdvKRWX8KtFTrLyJhicEnYiADGjTjN3Q=; b=O5ZJtyKIJhF2HrrjjO3PcOWJA0BQElIT7p+9J6yWiR85n4an7SLyRMaqGrpcXqzZ7F UQOyi8mDkD+zDRYMqSjsQrPqOGFmbjEswyUCDHtiS6Z5hl/mqi0Jdq2s3cxx6+pSrlwz KoeU6rBsb0fa2Oyn9x5UZNDLmbOLGyBediQbZi9grxlUVuHtFDgI0/f8lXPxR5w69Kq8 8UyT1qCDuG3xWd/fEWu3HjLVoEskiN1+XylJi5HWqHs+di1ZU5I8TEyrKODrhN0w44ID WCoTc2rTTllJxAHBvG7JqWXyTyx5vo6GrL7HyQ+eoALLIYumqs50W6WvBxWToWAzBl7D niYw== 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 v185si2219422ywe.796.2018.01.29.08.07.33; Mon, 29 Jan 2018 08:07:33 -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 0A8C061719; Mon, 29 Jan 2018 16:07:33 +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 D6C206173A; Mon, 29 Jan 2018 16:01:04 +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 0ACA160912; Mon, 29 Jan 2018 16:00:38 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id D9E5760CA0 for ; Mon, 29 Jan 2018 16:00:28 +0000 (UTC) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 59170430262A for ; Mon, 29 Jan 2018 19:00:27 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id SUeFTkNLQb-0RoKY3eH; Mon, 29 Jan 2018 19:00:27 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 1WljkUuA25-0QdKgL6X; Mon, 29 Jan 2018 19:00:26 +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, 29 Jan 2018 19:00:21 +0300 Message-Id: <1517241621-24528-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517241621-24528-1-git-send-email-odpbot@yandex.ru> References: <1517241621-24528-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 406 Subject: [lng-odp] [PATCH CATERPILLAR 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 406 (bogdanPricope:cat_benchmark_pr) ** https://github.com/Linaro/odp/pull/406 ** Patch: https://github.com/Linaro/odp/pull/406.patch ** Base sha: 5251bda54b51d3754aaf8c988aa959b48b4d25f9 ** Merge commit sha: 2d6677b6a3794cad32abe2af7314215ea22921c3 **/ .travis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.travis.yml b/.travis.yml index f5a67781e..a1f953e45 100644 --- a/.travis.yml +++ b/.travis.yml @@ -205,6 +205,16 @@ install: fi sudo insmod ./netmap/LINUX/netmap.ko 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: - if [ -z "$CROSS_ARCH" ] ; then @@ -307,6 +317,16 @@ jobs: - ./configure --with-platform=linux-dpdk --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-sdk-install-path=`pwd`/dpdk-17.02/${TARGET} --with-cunit-path=$HOME/cunit-install/$CROSS_ARCH $CONF - make -j $(nproc) - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make check + - 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 $CONF + - make -j $(nproc) + - make install + - sudo $HOME/papi-install/bin/papi_avail + - sudo LD_LIBRARY_PATH="/usr/local/lib:$HOME/odp-papi-install/lib:$HOME/papi-install/lib:$LD_LIBRARY_PATH" LD_PRELOAD=libinstrum.so.0.0.0 $HOME/odp-papi-install/bin/odp_hello -c 1 -n 5 after_failure: - cat config.log - find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done