diff --git a/build-with-docker/Dockerfile b/build-with-docker/Dockerfile index f376892e..278b15db 100644 --- a/build-with-docker/Dockerfile +++ b/build-with-docker/Dockerfile @@ -15,6 +15,9 @@ libsodium-dev libuv1-dev libavcodec-dev libavutil-dev libavformat-dev libswscale RUN wget https://artifactory.developers.mega.co.nz/artifactory/debian-dev/private/Debian_11/amd64/pdfium-mega_5247.0-4.1_amd64.deb RUN apt-get install -y $PWD/pdfium-mega_5247.0-4.1_amd64.deb +#Install gtest +RUN apt-get install -y libgtest-dev + RUN apt-get clean && rm -rf /var/lib/apt/lists/* ENTRYPOINT /opt/builder.sh \ No newline at end of file diff --git a/build-with-docker/builder.sh b/build-with-docker/builder.sh index a4e2b0be..2ea389b7 100644 --- a/build-with-docker/builder.sh +++ b/build-with-docker/builder.sh @@ -18,9 +18,12 @@ exec su - jenkins -c " ./autogen.sh ./sdk/contrib/build_sdk.sh -b -g -f -I -i -s -n -z -o ./3rd_pkgs -p ./3rd_deps rm ./3rd_deps/include/sqlite* ./3rd_deps/lib/libsqlite* || : -./configure --disable-silent-rules --disable-examples --prefix=$volume_dest/installdir --with-curl=$volume_dest/3rd_deps --disable-curl-checks +./configure --disable-silent-rules --disable-examples --prefix=$volume_dest/installdir --with-curl=$volume_dest/3rd_deps --disable-curl-checks --enable-megacmd-tests --with-gtest make clean make make install -" \ No newline at end of file + +#now run the unit tests +$volume_dest/installdir/mega-cmd-unit-tests +"