From patchwork Fri May 19 13:00:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 100189 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp301041qge; Fri, 19 May 2017 06:00:26 -0700 (PDT) X-Received: by 10.237.59.168 with SMTP id r37mr9466273qte.246.1495198826433; Fri, 19 May 2017 06:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495198826; cv=none; d=google.com; s=arc-20160816; b=cxIokrfVX6qLydD3xy8F3WEpSYxdmEPbYrtGC9bG51lllzcqUXo6V0Bx0rlMBrC1eu mSk+PGowwOv/cJyxiRNQJb080S/ToTM+0BnOw6J6OdXu0W6r/pnLru5+Jg7czgONhcSQ ZN5Ed3PvWVUdmtWDmMFd2+qUK387McxrW9yP+CWq0Q3/4DGic5nj/KGNJ5t9TIpT0LLW LMOfeZThk0UGo4gDMNtSxpJmHx3tPmrQObPULEZDGQILJoqR8FuKogeF1GLr6Iqp1Y36 IuM+jL4djRp+qj+fEQS+DlzoQ6EPLvyLX2NX3HbNhtvIpWqOzUrkf0VYp1WORQm0zX0K drQA== 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=EfnBLxlN7nuW+hA9ePLyQofePttmQFQqjkBrsjXrMoA=; b=XcVVRxhvXDsLaPbT0/rTns1GdRc2LkdZ59nZ30u4Mu91RIOVXZe33t0lXsDxRtvcE6 /F1jdAibJSGj/y/jqiEq98YWWangL4j9n8mq9KGut/hytnoaKTe6iwhCwajvXOQuKWEu VqCrJLYYb/Za/i5Zs8zrUIv/pcycx1Cy185FhvSn+9YwY+wU5EZRKalXhwRV2Evv7/vf 8BaNC8gnvdyyvO0LmAYe0OAOFb/NtXPOM67WAFNcmC/lSbI1RgQJ67j19xIpQUeUdQMj pltQPq6+YYSyFSUVYHKPeCRCrXwvgIrIPR3Zqpijn76BLIB1SzUqhr13oXAKz3QhHX2m g1Rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v80si1485885qkl.109.2017.05.19.06.00.25; Fri, 19 May 2017 06:00:26 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 875096095A; Fri, 19 May 2017 13:00:25 +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,URIBL_BLOCKED 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 3800060844; Fri, 19 May 2017 13:00:20 +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 C10186085F; Fri, 19 May 2017 13:00:18 +0000 (UTC) Received: from forward3m.cmail.yandex.net (forward3m.cmail.yandex.net [5.255.216.21]) by lists.linaro.org (Postfix) with ESMTPS id 845D3606A7 for ; Fri, 19 May 2017 13:00:17 +0000 (UTC) Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [IPv6:2a02:6b8:0:f05::117]) by forward3m.cmail.yandex.net (Yandex) with ESMTP id 1762421BD1 for ; Fri, 19 May 2017 16:00:16 +0300 (MSK) Received: from smtp3h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id CC7CF441121 for ; Fri, 19 May 2017 16:00:13 +0300 (MSK) Received: by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6rT5PQwm4r-0C9uwKuj; Fri, 19 May 2017 16:00:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 19 May 2017 16:00:06 +0300 Message-Id: <1495198806-13284-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495198806-13284-1-git-send-email-odpbot@yandex.ru> References: <1495198806-13284-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 33 Subject: [lng-odp] [PATCH v2 1/1] travis: check compile and run from install 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: Maxim Uvarov Verify that odp app can be compiled and run from installed odp library and includes. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 33 (muvarov:master_check_copile_from_install) ** https://github.com/Linaro/odp/pull/33 ** Patch: https://github.com/Linaro/odp/pull/33.patch ** Base sha: b50cf14202528e986ae9a41721fae1e746078646 ** Merge commit sha: 5fa619bbf7e2d76adedb2534b1b24f3225a54cb8 **/ .travis.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index aa7ea010..b541a47b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -124,9 +124,21 @@ script: - make distcheck - ./bootstrap - - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} --with-netmap-path=`pwd`/netmap CFLAGS="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" + - ./configure --prefix=$HOME/odp-install --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} --with-netmap-path=`pwd`/netmap CFLAGS="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" - make -j 4 - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make check + - make install + + - echo "Checking linking and run from install..." + - pushd $HOME + - echo "Dynamic link.." + - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L${OLDPWD}/dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl + - LD_LIBRARY_PATH="${HOME}/odp-install/lib:$LD_LIBRARY_PATH" ./odp_hello_inst + - echo "Static link.." + - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L${OLDPWD}/dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl -static + - ./odp_hello_inst + - popd + - sudo rm -rf dpdk - sudo rm -rf netmap - sudo rm -rf $KSRC