OpenDDS / OpenDDS-Android

An OpenDDS Build Matrix for Android
8 stars 3 forks source link

$ACE_ROOT/tests should also be compiled on travis-ci #2

Closed jwillemsen closed 5 years ago

jwillemsen commented 5 years ago

The $ACE_ROOT/tests has a lot of compiler/features testing, as additional test this directory should also be compiled as part of the travis-ci testing

iguessthislldo commented 5 years ago

Sure, I just pushed a few commits and we'll see how that goes. I was hoping to getting to that when I was formally working on this, but I didn't have much time and just building OpenDDS was the priority.

I also put up the link to the travis in the readme.

iguessthislldo commented 5 years ago

So I got it to build the tests on my machine, but on travis it does this:

make[1]: Entering directory `/home/travis/build/iguessthislldo/OpenDDS-Android/ACE_TAO/ACE/build/target/tests'
touch .depend.Service_Config_Stream_DLL
make[1]: Entering directory `/home/travis/build/iguessthislldo/OpenDDS-Android/ACE_TAO/ACE/build/target/tests'
touch .depend.Test_Output
make[1]: Leaving directory `/home/travis/build/iguessthislldo/OpenDDS-Android/ACE_TAO/ACE/build/target/tests'
make[1]: Leaving directory `/home/travis/build/iguessthislldo/OpenDDS-Android/ACE_TAO/ACE/build/target/tests'
make[1]: Entering directory `/home/travis/build/iguessthislldo/OpenDDS-Android/ACE_TAO/ACE/build/target/tests'
Service_Config_Stream_DLL will not be built due to the following missing library: ACE
make[1]: Entering directory `/home/travis/build/iguessthislldo/OpenDDS-Android/ACE_TAO/ACE/build/target/tests'
GNUmakefile: /home/travis/build/iguessthislldo/OpenDDS-Android/ACE_TAO/ACE/build/target/tests/GNUmakefile.Service_Config_Stream_DLL MAKEFLAGS=w --jobserver-fds=4,5 -j
Test_Output will not be built due to the following missing library: ACE

And the rest of the targets say the similar things, mostly missing Test_Output. The build is happening after OpenDDS is built and $ACE_ROOT is set to ACE_TAO/ACE/build/target so I'm not sure what the problem is.

jwillemsen commented 5 years ago

Maybe LD_LIBRARY_PATH has to be set correctly? You should use the same environment when compiling the tests as you do the OpenDDS core, isn't the configure script generating an environment script?

iguessthislldo commented 5 years ago

It appears that ACE_ROOT was wrong when I was running mpc in configure.sh, this has been fixed. The tests fail to build and fixes for that are in ACE_TAO PR796.