diff mbox series

[CLOUD-DEV,v7,3/3] travis: enable linux-dpdk in travis

Message ID 1502863206-1802-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [CLOUD-DEV,v7,1/3] configure: Enable linux-dpdk | expand

Commit Message

Github ODP bot Aug. 16, 2017, 6 a.m. UTC
From: Balakrishna Garapati <balakrishna.garapati@linaro.org>


Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>

---
/** Email created from pull request 128 (GBalakrishna:linux-dpdk-cloud)
 ** https://github.com/Linaro/odp/pull/128
 ** Patch: https://github.com/Linaro/odp/pull/128.patch
 ** Base sha: 4e11ef454d383b9637541c53ad4eeda65751742b
 ** Merge commit sha: 501a02536f82ec7092bf843dfc28eb630ba87f03
 **/
 .travis.yml                       | 9 ++++++++-
 test/linux-dpdk/wrapper-script.sh | 4 ++--
 2 files changed, 10 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 0d24cdc5..9e849344 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -256,7 +256,14 @@  jobs:
                           - ODP_PATCHES=`echo ${TRAVIS_COMMIT_RANGE} | sed 's/\.//'`;
                           - if [ -z "${ODP_PATCHES}" ]; then env; exit 1; fi;
                           - ./scripts/ci-checkpatches.sh ${ODP_PATCHES};
-
+                - stage: test
+                  env: TEST=linux-dpdk
+                  compiler: gcc
+                  script:
+                          - ./bootstrap
+                          - ./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/${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
 after_failure:
   - cat config.log
   - find . -name 'test-suite.log' -execdir grep -il "FAILED" {} \; -exec echo {} \; -exec cat {} \;
diff --git a/test/linux-dpdk/wrapper-script.sh b/test/linux-dpdk/wrapper-script.sh
index 0dc2d23c..1fbb16f7 100755
--- a/test/linux-dpdk/wrapper-script.sh
+++ b/test/linux-dpdk/wrapper-script.sh
@@ -62,11 +62,11 @@  fi
 echo "running $1!"
 if [ ${1: -3} == ".sh" ]
 then
-	sudo TEST_DIR=${TEST_DIR} \
+	TEST_DIR=${TEST_DIR} \
 		ODP_PLATFORM_PARAMS="$ODP_PLATFORM_PARAMS" \
 			ODP_GDB=$ODP_GDB $1
 else
-	sudo TEST_DIR=${TEST_DIR} ODP_PLATFORM_PARAMS="$ODP_PLATFORM_PARAMS" \
+	TEST_DIR=${TEST_DIR} ODP_PLATFORM_PARAMS="$ODP_PLATFORM_PARAMS" \
 		$ODP_GDB $1
 fi
 res=$?