Message ID | 1495062009-1737-2-git-send-email-odpbot@yandex.ru |
---|---|
State | Superseded |
Headers | show |
Series | [v1,1/1] travis: check compile and run from install | expand |
On Wed, May 17, 2017 at 6:00 PM, Github ODP bot <odpbot@yandex.ru> wrote: > From: Maxim Uvarov <maxim.uvarov@linaro.org> > > Verify that odp app can be compiled and run from installed > odp library and includes. > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> > Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> > --- > /** Email created from pull request 33 (muvarov:master_check_copile_ > from_install) > ** https://github.com/Linaro/odp/pull/33 > ** Patch: https://github.com/Linaro/odp/pull/33.patch > ** Base sha: b50cf14202528e986ae9a41721fae1e746078646 > ** Merge commit sha: 8d6d6c987e5dd7a6cd428767c678574646fdd645 > **/ > .travis.yml | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/.travis.yml b/.travis.yml > index aa7ea01..7e2252b 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -124,9 +124,20 @@ script: > - make distcheck > > - ./bootstrap > - - ./configure --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="$MY_CF" CXXFLAGS="$MY_CF" > LDFLAGS="$MY_LDF" > + - ./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="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" > - make -j 4 > - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make > check > + - make install > + > + - echo "Checking linking and run from install..." > + - cd example/hello > + - echo "Dynamic link.." > + - ${CC} odp_hello.c -o odp_hello_inst > -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux > -L`pwd`/../../dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread > -lcrypto -lpcap $MY_CF $MY_LDF -ldl > + - LD_LIBRARY_PATH="${HOME}/odp-install/lib:$LD_LIBRARY_PATH" > ./odp_hello_inst > + - echo "Static link.." > + - ${CC} odp_hello.c -o odp_hello_inst > -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux > -L`pwd`/../../dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread > -lcrypto -lpcap $MY_CF $MY_LDF -ldl -static > + - ./odp_hello_inst > + > - sudo rm -rf dpdk > - sudo rm -rf netmap > - sudo rm -rf $KSRC > >
diff --git a/.travis.yml b/.travis.yml index aa7ea01..7e2252b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -124,9 +124,20 @@ script: - make distcheck - ./bootstrap - - ./configure --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="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" + - ./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="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" - make -j 4 - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make check + - make install + + - echo "Checking linking and run from install..." + - cd example/hello + - echo "Dynamic link.." + - ${CC} odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L`pwd`/../../dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl + - LD_LIBRARY_PATH="${HOME}/odp-install/lib:$LD_LIBRARY_PATH" ./odp_hello_inst + - echo "Static link.." + - ${CC} odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L`pwd`/../../dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl -static + - ./odp_hello_inst + - sudo rm -rf dpdk - sudo rm -rf netmap - sudo rm -rf $KSRC