From patchwork Wed May 17 23:00:09 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: 100017 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp452464qge; Wed, 17 May 2017 16:00:46 -0700 (PDT) X-Received: by 10.107.22.131 with SMTP id 125mr1685824iow.117.1495062046325; Wed, 17 May 2017 16:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495062046; cv=none; d=google.com; s=arc-20160816; b=hd5eEIPlkT2N3rEkuSdc1LoZigsrdBdg4HhkFSNMQkO4myE6kIKsJVt5c31px8vRpF 1qarDZr1rNpAuW6rfa8dngdv2lxRqoc3jH9nFcj03V5XuZyHcxD6FjmEZOOqAYkm0ae4 5rUsjzJ3kdWZLDERuL39qoHoVvZtUvo6K51vp5OY2miOQnkmkLVN604FlJHXlgadP0+3 L9scjRBF6q36UoTBiqdrCocKIU129E3cSkQp0LcRAVmYzezSZrAlDGq6YRqYgUNyYubl TdutZrcxZhADil548lH4/6ZC04hnTNBMKP/o0HiBdjTZp9lK8pDedso+R910RsSNjAG2 qPBQ== 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=P+KZZImk0Jer0xi8ilFZPB/95KUqfAtUA8yNTrHaAaA=; b=XHRDb7oqLMJ61j4rpsHgVPz2dYcjlrOMW3Vv8KjktgJ4LZBP3VJh+dhVPWjFeW5arO MBnJz0Do5FPLU//xTGAH+olmss7RGEd079Hr+qyKO+RooA9BM3npi0Cvdec4dr3ABvkn 4ECf4FICFDCIiSUX5/0vl7mRjrXnk1+o8jFdbpgm1N+Dy/0WuHp3nQ+V+Ie/iwr3Rdxv czLbBeid+yCd3mfcoEoOSMZOsNBDImCPB1geV8rYNv6DABkSkMcXMhVN44VILVII/Y+R qzruIOFAMSf0A7LjGot/1jCpqECyJi+o940foGvC8MEKmzp244LJs1BayjMmalopHuRi s8sQ== 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 v12si3663998iov.62.2017.05.17.16.00.45; Wed, 17 May 2017 16:00:46 -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 BEF6260642; Wed, 17 May 2017 23:00:45 +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 498E860C60; Wed, 17 May 2017 23:00:21 +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 EE32960C35; Wed, 17 May 2017 23:00:16 +0000 (UTC) Received: from forward4j.cmail.yandex.net (forward4j.cmail.yandex.net [5.255.227.22]) by lists.linaro.org (Postfix) with ESMTPS id A187E60AEF for ; Wed, 17 May 2017 23:00:15 +0000 (UTC) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [37.140.190.28]) by forward4j.cmail.yandex.net (Yandex) with ESMTP id DEB8D2085F for ; Thu, 18 May 2017 02:00:13 +0300 (MSK) Received: from smtp3o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id B7BB12940D78 for ; Thu, 18 May 2017 02:00:12 +0300 (MSK) Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dJKUonwswk-0CHmI3v1; Thu, 18 May 2017 02: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: Thu, 18 May 2017 02:00:09 +0300 Message-Id: <1495062009-1737-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495062009-1737-1-git-send-email-odpbot@yandex.ru> References: <1495062009-1737-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 33 Subject: [lng-odp] [PATCH v1 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: 8d6d6c987e5dd7a6cd428767c678574646fdd645 **/ .travis.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) Reviewed-by: Bill Fischofer diff --git a/.travis.yml b/.travis.yml index aa7ea01..7e2252b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -124,9 +124,20 @@ 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..." + - cd example/hello + - echo "Dynamic link.." + - ${CC} odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L`pwd`/../../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} odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L`pwd`/../../dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl -static + - ./odp_hello_inst + - sudo rm -rf dpdk - sudo rm -rf netmap - sudo rm -rf $KSRC