From 32482cd9281fa45dd3e4e38092bfc8c11c4a80a6 Mon Sep 17 00:00:00 2001 From: Gagan Goel Date: Tue, 30 May 2023 14:04:51 -0400 Subject: [PATCH] Add an option in build/bootstrap_mcs.sh to NOT perform a clean install. (#2854) A new option is added (-n/--no-clean-install) that allows a user to re-install ColumnStore without deleting the existing db files. This is useful for testing new code changes in the engine without the need to re-create the database tables to test the code changes. --- build/bootstrap_mcs.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build/bootstrap_mcs.sh b/build/bootstrap_mcs.sh index e16b28dea..bbd3415d1 100755 --- a/build/bootstrap_mcs.sh +++ b/build/bootstrap_mcs.sh @@ -26,7 +26,7 @@ cd - > /dev/null optparse.define short=t long=build-type desc="Build Type: ${BUILD_TYPE_OPTIONS[*]}" variable=MCS_BUILD_TYPE -optparse.define short=d long=distro desc="Choouse your OS: ${DISTRO_OPTIONS[*]}" variable=OS +optparse.define short=d long=distro desc="Choose your OS: ${DISTRO_OPTIONS[*]}" variable=OS optparse.define short=D long=install-deps desc="Install dependences" variable=INSTALL_DEPS default=false value=true optparse.define short=C long=force-cmake-reconfig desc="Force cmake reconfigure" variable=FORCE_CMAKE_CONFIG default=false value=true optparse.define short=S long=skip-columnstore-submodules desc="Skip columnstore submodules initialization" variable=SKIP_SUBMODULES default=false value=true @@ -42,6 +42,7 @@ optparse.define short=P long=report-path desc="Path for storing reports and prof optparse.define short=N long=ninja desc="Build with ninja" variable=USE_NINJA default=false value=true optparse.define short=T long=draw-deps desc="Draw dependencies graph" variable=DRAW_DEPS default=false value=true optparse.define short=M long=skip-smoke desc="Skip final smoke test" variable=SKIP_SMOKE default=false value=true +optparse.define short=n long=no-clean-install desc="Do not perform a clean install (keep existing db files)" variable=NO_CLEAN default=false value=true source $( optparse.build ) @@ -523,7 +524,11 @@ if [[ $INSTALL_DEPS = true ]] ; then fi stop_service -clean_old_installation + +if [[ $NO_CLEAN = false ]] ; then + clean_old_installation +fi + build run_unit_tests run_microbenchmarks_tests