From 334ba8dd39ab4165b79b2139cd2b705f0c1cb313 Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Wed, 13 Apr 2022 10:06:07 +0800 Subject: [PATCH] test: add test script for coverity scan report --- tests/perftest-scripts/coverity_scan.sh | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 tests/perftest-scripts/coverity_scan.sh diff --git a/tests/perftest-scripts/coverity_scan.sh b/tests/perftest-scripts/coverity_scan.sh new file mode 100755 index 0000000000..4e9126948c --- /dev/null +++ b/tests/perftest-scripts/coverity_scan.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# follow link: https://scan.coverity.com/download + +workdir=/root +token="replace_with_coverity_scan_token" + + +cd $workdir/TDengine + +git reset --hard HEAD +git checkout -- . +git checkout develop +git pull +git submodule update --init --recursive + +mkdir -p debug +cd debug +rm -rf * +cmake .. -DBUILD_TOOLS=true +cov-build --dir cov-int make -j 4 +tar czvf TDengine.tgz cov-int +curl --form token=$token \ + --form email="support@taosdata.com" \ + --form file=@TDengine.tgz \ + --form version="2.4.0.0" \ + --form description="TDengine Test" \ + https://scan.coverity.com/builds?project=tdengine -- GitLab