test:add local coverage script
This commit is contained in:
parent
7354d57867
commit
635d1b0df5
|
@ -19,7 +19,7 @@ BRANCH=""
|
||||||
TDENGINE_GCDA_DIR="/root/TDinternal/community/debug/"
|
TDENGINE_GCDA_DIR="/root/TDinternal/community/debug/"
|
||||||
|
|
||||||
# Parse command line parameters
|
# Parse command line parameters
|
||||||
while getopts "hd:b:f:c:u:" arg; do
|
while getopts "hd:b:f:c:u:i:" arg; do
|
||||||
case $arg in
|
case $arg in
|
||||||
d)
|
d)
|
||||||
TDENGINE_DIR=$OPTARG
|
TDENGINE_DIR=$OPTARG
|
||||||
|
@ -36,14 +36,14 @@ while getopts "hd:b:f:c:u:" arg; do
|
||||||
u)
|
u)
|
||||||
UNIT_TEST_CASE=$OPTARG
|
UNIT_TEST_CASE=$OPTARG
|
||||||
;;
|
;;
|
||||||
build)
|
i)
|
||||||
BRANCH_BUILD=$OPTARG
|
BRANCH_BUILD=$OPTARG
|
||||||
;;
|
;;
|
||||||
h)
|
h)
|
||||||
echo "Usage: $(basename $0) -d [TDengine dir] -b [Test branch] -build [Build test branch] -f [TDengine gcda dir] -c [Test single case/all cases] -u [Unit test case]"
|
echo "Usage: $(basename $0) -d [TDengine dir] -b [Test branch] -i [Build test branch] -f [TDengine gcda dir] -c [Test single case/all cases] -u [Unit test case]"
|
||||||
echo " -d [TDengine dir] [default /root/TDinternal/community; eg: /home/TDinternal/community] "
|
echo " -d [TDengine dir] [default /root/TDinternal/community; eg: /home/TDinternal/community] "
|
||||||
echo " -b [Test branch] [default local branch; eg:cover/3.0] "
|
echo " -b [Test branch] [default local branch; eg:cover/3.0] "
|
||||||
echo " -build [Build test branch] [default no:not build, but still install ;yes:will build and install ] "
|
echo " -i [Build test branch] [default no:not build, but still install ;yes:will build and install ] "
|
||||||
echo " -f [TDengine gcda dir] [default /root/TDinternal/community/debug; eg:/root/TDinternal/community/debug/community/source/dnode/vnode/CMakeFiles/vnode.dir/src/tq/] "
|
echo " -f [TDengine gcda dir] [default /root/TDinternal/community/debug; eg:/root/TDinternal/community/debug/community/source/dnode/vnode/CMakeFiles/vnode.dir/src/tq/] "
|
||||||
echo " -c [Test single case/all cases] [default null; -c all : include parallel_test/longtimeruning_cases.task and all unit cases; -c task : include parallel_test/longtimeruning_cases.task; single case: eg: -c './test.sh -f tsim/stream/streamFwcIntervalFill.sim' ] "
|
echo " -c [Test single case/all cases] [default null; -c all : include parallel_test/longtimeruning_cases.task and all unit cases; -c task : include parallel_test/longtimeruning_cases.task; single case: eg: -c './test.sh -f tsim/stream/streamFwcIntervalFill.sim' ] "
|
||||||
echo " -u [Unit test case] [default null; eg: './schedulerTest' ] "
|
echo " -u [Unit test case] [default null; eg: './schedulerTest' ] "
|
||||||
|
@ -59,10 +59,10 @@ done
|
||||||
# Check if the command name is provided
|
# Check if the command name is provided
|
||||||
if [ -z "$TDENGINE_DIR" ]; then
|
if [ -z "$TDENGINE_DIR" ]; then
|
||||||
echo "Error: TDengine dir is required."
|
echo "Error: TDengine dir is required."
|
||||||
echo "Usage: $(basename $0) -d [TDengine dir] -b [Test branch] -build [Build test branch] -f [TDengine gcda dir] -c [Test single case/all cases] -u [Unit test case] "
|
echo "Usage: $(basename $0) -d [TDengine dir] -b [Test branch] -i [Build test branch] -f [TDengine gcda dir] -c [Test single case/all cases] -u [Unit test case] "
|
||||||
echo " -d [TDengine dir] [default /root/TDinternal/community; eg: /home/TDinternal/community] "
|
echo " -d [TDengine dir] [default /root/TDinternal/community; eg: /home/TDinternal/community] "
|
||||||
echo " -b [Test branch] [default local branch; eg:cover/3.0] "
|
echo " -b [Test branch] [default local branch; eg:cover/3.0] "
|
||||||
echo " -build [Build test branch] [default no:not build, but still install ;yes:will build and install ] "
|
echo " -i [Build test branch] [default no:not build, but still install ;yes:will build and install ] "
|
||||||
echo " -f [TDengine gcda dir] [default /root/TDinternal/community/debug; eg:/root/TDinternal/community/debug/community/source/dnode/vnode/CMakeFiles/vnode.dir/src/tq/] "
|
echo " -f [TDengine gcda dir] [default /root/TDinternal/community/debug; eg:/root/TDinternal/community/debug/community/source/dnode/vnode/CMakeFiles/vnode.dir/src/tq/] "
|
||||||
echo " -c [Test casingle case/all casesse] [default null; -c all : include parallel_test/longtimeruning_cases.task and all unit cases; -c task : include parallel_test/longtimeruning_cases.task; single case: eg: -c './test.sh -f tsim/stream/streamFwcIntervalFill.sim' ] "
|
echo " -c [Test casingle case/all casesse] [default null; -c all : include parallel_test/longtimeruning_cases.task and all unit cases; -c task : include parallel_test/longtimeruning_cases.task; single case: eg: -c './test.sh -f tsim/stream/streamFwcIntervalFill.sim' ] "
|
||||||
echo " -u [Unit test case] [default null; eg: './schedulerTest' ] "
|
echo " -u [Unit test case] [default null; eg: './schedulerTest' ] "
|
||||||
|
|
Loading…
Reference in New Issue