From patchwork Wed Jan 31 14:00:26 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: 126341 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp768601ljc; Wed, 31 Jan 2018 06:13:54 -0800 (PST) X-Google-Smtp-Source: AH8x224emm6T9iQyH8+6vtZOxMqjbCasE4usJisCc6yKjEZMnEqIzkhZPdq9VPG+B6QcsQotIGdA X-Received: by 10.200.42.18 with SMTP id k18mr53973246qtk.150.1517408033823; Wed, 31 Jan 2018 06:13:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517408033; cv=none; d=google.com; s=arc-20160816; b=DfkUrjA16xecfnekRLuHShZkuO3dh6fs8swUCag5v5tTRbncEbVC7Nbp+laojZK4NY nSRGb0eTlqp7w7V/QLKcEARAfzZGaxLyQ2npi2IKdaaQCtSIV9j5n3N2ciHC3dy+09+Y JSQ5HZseyAcN/G/5Ck3bapHzP7kn/NC52cnMd6RKHrPA7L+r8O1Oo+mGNxTbc3Tkbk7T objhIO8tBg2M0bwp074ZFJ0xfg6PTbusJq1DyYBIemdmwcMuUF1GehlcEZR+cT+Jiij1 oC83/7K12sqzCcus/HCZbPRRjd2aLlGoKX/gRpW6DNhz+/SORQOLKEPPpreCN69k3oa3 Fstw== 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=Bwd8VA2C51BnpNto43RJ4k1eF9zwQArTevmz4D8foO0=; b=KSPopVzVrMqzgQEvxaexdoMykjh6dO3vZtyrym6VbiiP2yAIjjDO86U8lD98NgItg5 QcYVkpDs/YWlzq8LV922YKYVwlMyL4v5u2FMZaJH/h8DUchxzgdrlXv8jM+Ga2ltXvjv BPb+wm71MTXx9HcLMXxUpgcm7xNz9JsyNwTRzRDxDumR1/mIkY15iKYQaI0Mj69BAxJ+ YyGMF2gfWJZFPcQkOdG0EOGxmwVu8+rSI0ByjjdQZGnXW6dktJc+ZzuGAGxgpzZ82I7F QlLIUr9/m84HtdMD+SPJu9Ds4DPgKOcoXvmQf1pGdB/I02ySmobJFU1Fid7skRD8pmR4 BxCA== 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 62si2287382qke.446.2018.01.31.06.13.53; Wed, 31 Jan 2018 06:13:53 -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 72050617C0; Wed, 31 Jan 2018 14:13:53 +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 0D61E617D9; Wed, 31 Jan 2018 14:03:12 +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 C2A9D617D4; Wed, 31 Jan 2018 14:02: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 576F461502 for ; Wed, 31 Jan 2018 14:00:33 +0000 (UTC) Received: from mxback10j.mail.yandex.net (mxback10j.mail.yandex.net [IPv6:2a02:6b8:0:1619::113]) by forward104j.mail.yandex.net (Yandex) with ESMTP id F044F429BA for ; Wed, 31 Jan 2018 17:00:31 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback10j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GGy2qAZv2J-0VSGXhpk; Wed, 31 Jan 2018 17:00:31 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LdNp02bKEL-0VEqOmEb; Wed, 31 Jan 2018 17:00:31 +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: Wed, 31 Jan 2018 17:00:26 +0300 Message-Id: <1517407226-19192-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517407226-19192-1-git-send-email-odpbot@yandex.ru> References: <1517407226-19192-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 406 Subject: [lng-odp] [PATCH CATERPILLAR 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 406 (bogdanPricope:cat_benchmark_pr) ** https://github.com/Linaro/odp/pull/406 ** Patch: https://github.com/Linaro/odp/pull/406.patch ** Base sha: 079b524277414f57411d3223563353bbdbc1a536 ** Merge commit sha: c25517810ea3389a28c0adb2fdde601eae684851 **/ .travis.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.travis.yml b/.travis.yml index f5a67781e..f4ed4736d 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,17 @@ 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 + - 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 - find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done