From f8fb8beed9e1f0160cf80e07eb1957d1afe74630 Mon Sep 17 00:00:00 2001 From: Leonid Fedorov Date: Wed, 13 Jul 2022 19:37:31 +0300 Subject: [PATCH] Skip unittest build with corresponding option in bootstrap --- build/bootstrap_mcs.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build/bootstrap_mcs.sh b/build/bootstrap_mcs.sh index 00ae7aff5..f4f6b74cf 100755 --- a/build/bootstrap_mcs.sh +++ b/build/bootstrap_mcs.sh @@ -157,10 +157,17 @@ build() -DBUILD_CONFIG=mysql_release -DWITH_WSREP=OFF -DWITH_SSL=system - -DWITH_UNITTESTS=YES - -DWITH_BRM_UT=YES -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX" + + if [[ $SKIP_UNIT_TESTS = true ]] ; then + warn "Unittests are not build" + MDB_CMAKE_FLAGS="${MDB_CMAKE_FLAGS} -DWITH_UNITTESTS=NO -DWITH_BRM_UT=NO" + else + MDB_CMAKE_FLAGS="${MDB_CMAKE_FLAGS} -DWITH_UNITTESTS=YES -DWITH_BRM_UT=YES" + message "Buiding with unittests" + fi + cd $MDB_SOURCE_PATH if [[ $SKIP_SUBMODULES = true ]] ; then