diff mbox series

[API-NEXT,v3,3/3] travis: add sudo run make check

Message ID 1497535208-25248-4-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v3,1/3] test: l2fwd pass under coverage | expand

Commit Message

Github ODP bot June 15, 2017, 2 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


make check has to be under root to validate pktio like
raw sockets. Also odp temporary files can overlap with
previous root run and permission to overwrite that files
is needed.

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

---
/** Email created from pull request 49 (muvarov:api-next_travis_fixes)
 ** https://github.com/Linaro/odp/pull/49
 ** Patch: https://github.com/Linaro/odp/pull/49.patch
 ** Base sha: 4f97e500a097928e308a415c32a88465adc5f5cc
 ** Merge commit sha: 1f733883b149dadf21d3eb0ac2ea5ee9a3a40d85
 **/
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index d1ca5a66..64f4ff88 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -130,7 +130,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./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="-O0 -coverage" CXXFLAGS="-O0 -coverage" LDFLAGS="--coverage"
-                          - make check -j $(nproc)
+                          - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" PATH=${PATH//:\.\/node_modules\/\.bin/} make check -j ${nproc}
                           - find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy
                 - stage: test
                   env: TEST=distcheck
@@ -138,7 +138,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./configure
-                          - make distcheck
+                          - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make distcheck
                 - stage: test
                   env: TEST=doxygen
                   compiler: gcc