diff mbox series

[v5,8/8] ci: do compile-after-install test

Message ID 1535410807-29034-9-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v5,1/8] travis: fix DOCKER_NAMESPACE variable setting | expand

Commit Message

Github ODP bot Aug. 27, 2018, 11 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 681 (lumag:travis-xenial)
 ** https://github.com/Linaro/odp/pull/681
 ** Patch: https://github.com/Linaro/odp/pull/681.patch
 ** Base sha: 6ce60cac1fea6d65803740f5f9b6627abf6814b3
 ** Merge commit sha: 8c5d835ef3fbc6ab78503945fef582f7c60ac2c9
 **/
 scripts/ci/build.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index 6fca1cc28..995c797b2 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -6,6 +6,17 @@  cd "$(dirname "$0")"/../..
 ./configure \
 	--host=${TARGET_ARCH} --build=x86_64-linux-gnu \
 	--enable-dpdk \
+	--prefix=/opt/odp \
 	${CONF}
 
 make -j 8
+
+make install
+
+pushd ${HOME}
+${CC} ${CFLAGS} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst_dynamic `PKG_CONFIG_PATH=/opt/odp/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux`
+if [ -z "$TARGET_ARCH" ]
+then
+	LD_LIBRARY_PATH="/opt/odp/lib:$LD_LIBRARY_PATH" ./odp_hello_inst_dynamic
+fi
+popd