From 414b1c306194891625e2c2634657eb8cb6ebfb30 Mon Sep 17 00:00:00 2001 From: happyguoxy Date: Thu, 12 Dec 2024 14:25:58 +0800 Subject: [PATCH] test:add local coverage script --- tests/run_local_coverage.sh | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/tests/run_local_coverage.sh b/tests/run_local_coverage.sh index 7590d9fc6a..c5ad72ce14 100755 --- a/tests/run_local_coverage.sh +++ b/tests/run_local_coverage.sh @@ -116,36 +116,6 @@ function buildTDengine() { make -j 8 install } -# function buildTDengineold() { -# print_color "$GREEN" "TDengine build start" - -# [ -d $TDENGINE_DIR/debug ] || mkdir $TDENGINE_DIR/debug -# cd $TDENGINE_DIR/debug - -# if [ -n "$BRANCH" ] && [ -z "$BRANCH_BUILD" ] ; then -# print_color "$GREEN" "rebuild.." -# rm -rf * -# makecmd="cmake -DCOVER=true -DBUILD_TEST=false -DBUILD_HTTP=false -DBUILD_DEPENDENCY_TESTS=0 -DBUILD_TOOLS=true -DBUILD_GEOS=true -DBUILD_TEST=true -DBUILD_CONTRIB=false ../../" -# print_color "$GREEN" "$makecmd" -# $makecmd -# make -j 8 install -# elif [ -n "$BRANCH_BUILD" ] && [ "$BRANCH_BUILD" == "yes" ] ; then -# print_color "$GREEN" "rebuild.." -# #rm -rf * -# makecmd="cmake -DCOVER=true -DBUILD_TEST=false -DBUILD_HTTP=false -DBUILD_DEPENDENCY_TESTS=0 -DBUILD_TOOLS=true -DBUILD_GEOS=true -DBUILD_TEST=true -DBUILD_CONTRIB=false ../../" -# print_color "$GREEN" "$makecmd" -# $makecmd -# make -j 8 install -# elif [ -n "$BRANCH_BUILD" ] && [ "$BRANCH_BUILD" == "no" ] ; then -# print_color "$GREEN" "not build,only install" -# cd $TDENGINE_DIR/debug -# make -j 8 install -# fi - -# print_color "$GREEN" "TDengine build end" -# } - - # Check and get the branch name and build branch if [ -n "$BRANCH" ] && [ -z "$BRANCH_BUILD" ] ; then branch="$BRANCH" @@ -163,12 +133,14 @@ elif [ -n "$BRANCH_BUILD" ] && [ "$BRANCH_BUILD" == "no" ] ; then branch="$BRANCH" print_color "$GREEN" "Testing branch: $branch " print_color "$GREEN" "not build,only install!" - pullTDengine + cd "$TDENGINE_DIR/../" + git pull + cd "$TDENGINE_DIR/" + git pull cd $TDENGINE_DIR/debug make -j 8 install else print_color "$GREEN" "Build is not required for this test!" - pullTDengine fi function runCasesOneByOne () {