[v2,1/1] travis: check compile and run from install

Message ID 1495198806-13284-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [v2,1/1] travis: check compile and run from install
Related show

Commit Message

Github ODP bot May 19, 2017, 1 p.m.
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Verify that odp app can be compiled and run from installed
odp library and includes.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** 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(-)

Patch hide | download patch | download mbox

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