mirror of
https://github.com/meganz/MEGAcmd
synced 2025-08-29 12:57:44 +00:00
compile gtests & run unit tests
This commit is contained in:
parent
280bae3f66
commit
a31bb78070
@ -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 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
|
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/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENTRYPOINT /opt/builder.sh
|
ENTRYPOINT /opt/builder.sh
|
@ -18,9 +18,12 @@ exec su - jenkins -c "
|
|||||||
./autogen.sh
|
./autogen.sh
|
||||||
./sdk/contrib/build_sdk.sh -b -g -f -I -i -s -n -z -o ./3rd_pkgs -p ./3rd_deps
|
./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* || :
|
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 clean
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
#now run the unit tests
|
||||||
|
$volume_dest/installdir/mega-cmd-unit-tests
|
||||||
"
|
"
|
Loading…
x
Reference in New Issue
Block a user