diff mbox series

[CATERPILLAR,v3,7/7] example: instrum: add travis test

Message ID 1517241621-24528-8-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [CATERPILLAR,v3,1/7] example: add basic papi configuration option | expand

Commit Message

Github ODP bot Jan. 29, 2018, 4 p.m. UTC
From: Bogdan Pricope <bogdan.pricope@linaro.org>


Add test to validate ODP build with papi library.

Signed-off-by: Bogdan Pricope <bogdan.pricope@linaro.org>

---
/** Email created from pull request 406 (bogdanPricope:cat_benchmark_pr)
 ** https://github.com/Linaro/odp/pull/406
 ** Patch: https://github.com/Linaro/odp/pull/406.patch
 ** Base sha: 5251bda54b51d3754aaf8c988aa959b48b4d25f9
 ** Merge commit sha: 2d6677b6a3794cad32abe2af7314215ea22921c3
 **/
 .travis.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index f5a67781e..a1f953e45 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -205,6 +205,16 @@  install:
             fi
             sudo insmod ./netmap/LINUX/netmap.ko
           fi
+#	PAPI library
+        - |
+          if [ -z "$CROSS_ARCH" -a ! -f "$HOME/papi-install/lib/libpapi.so" ]; then
+            git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=papi-5-6-0-t https://bitbucket.org/icl/papi.git
+            pushd papi/src
+            ./configure --prefix=$HOME/papi-install
+            make
+            make install
+            popd
+          fi
 
 script:
         - if [ -z "$CROSS_ARCH" ] ; then
@@ -307,6 +317,16 @@  jobs:
                           - ./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-17.02/${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
+                - stage: test
+                  env: TEST=code_instrum
+                  compiler: gcc
+                  script:
+                          - ./bootstrap
+                          - ./configure --prefix=$HOME/odp-papi-install --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-cunit-path=$HOME/cunit-install/$CROSS_ARCH --with-papi-path=$HOME/papi-install $CONF
+                          - make -j $(nproc)
+                          - make install
+                          - sudo $HOME/papi-install/bin/papi_avail
+                          - sudo LD_LIBRARY_PATH="/usr/local/lib:$HOME/odp-papi-install/lib:$HOME/papi-install/lib:$LD_LIBRARY_PATH" LD_PRELOAD=libinstrum.so.0.0.0 $HOME/odp-papi-install/bin/odp_hello -c 1 -n 5
 after_failure:
   - cat config.log
   - find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done