diff mbox series

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

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

Commit Message

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


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

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

Patch

diff --git a/.travis.yml b/.travis.yml
index 0d24cdc5..52339b53 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -133,6 +133,7 @@  install:
             make config T=${TARGET} O=${TARGET}
             pushd ${TARGET}
             sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config
+            sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_OPENSSL=).*,\1y,' .config
             popd
             make install T=${TARGET} EXTRA_CFLAGS="-fPIC"
             rm -r ./doc ./${TARGET}/app ./${TARGET}/build
@@ -256,7 +257,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=$?