diff --git a/CI/ci-linux-build.sh b/CI/ci-linux-build.sh index 9932435b..9d9f1fb5 100755 --- a/CI/ci-linux-build.sh +++ b/CI/ci-linux-build.sh @@ -55,6 +55,15 @@ else # build unittests make $MAKE_OPTIONS unittests + + # Creating System Library folder to contain all dependend libraries to run OpenFlipper + if [ ! -d systemlib ]; then + echo "Creating systemlib folder" + mkdir systemlib + fi + + echo "Copying all required libraries of OpenFlipper to the systemlib directory" + ldd bin/OpenFlipper | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' systemlib fi cd .. \ No newline at end of file diff --git a/CI/ci-linux-test.sh b/CI/ci-linux-test.sh index 9c793c8f..063e3781 100755 --- a/CI/ci-linux-test.sh +++ b/CI/ci-linux-test.sh @@ -47,6 +47,10 @@ fi # Run cmake to make sure the tests are configured correctly for this system cmake -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON $OPTIONS ../ +#tell the location to the libs from build jobs +export LD_LIBRARY_PATH=$(pwd)/Build/lib:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH=$(pwd)/Build/systemlib:$LD_LIBRARY_PATH + echo -e "${OUTPUT}" echo "" echo "======================================================================"