test: add asan case
This commit is contained in:
parent
d588cd37f8
commit
f34a5c4099
|
@ -465,8 +465,8 @@
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/char_length.py -R
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/char_length.py -R
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/check_tsdb.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/check_tsdb.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/check_tsdb.py -R
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/check_tsdb.py -R
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/concat.py
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat.py -R
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/concat.py -R
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -R
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -R
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py
|
||||||
|
@ -739,7 +739,7 @@
|
||||||
,,,system-test,python3 ./test.py -f 2-query/substr.py -Q 2
|
,,,system-test,python3 ./test.py -f 2-query/substr.py -Q 2
|
||||||
,,,system-test,python3 ./test.py -f 2-query/union.py -Q 2
|
,,,system-test,python3 ./test.py -f 2-query/union.py -Q 2
|
||||||
,,,system-test,python3 ./test.py -f 2-query/union1.py -Q 2
|
,,,system-test,python3 ./test.py -f 2-query/union1.py -Q 2
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat.py -Q 2
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/concat.py -Q 2
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat2.py -Q 2
|
,,,system-test,python3 ./test.py -f 2-query/concat2.py -Q 2
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -Q 2
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -Q 2
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py -Q 2
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py -Q 2
|
||||||
|
@ -833,7 +833,7 @@
|
||||||
,,,system-test,python3 ./test.py -f 2-query/substr.py -Q 3
|
,,,system-test,python3 ./test.py -f 2-query/substr.py -Q 3
|
||||||
,,,system-test,python3 ./test.py -f 2-query/union.py -Q 3
|
,,,system-test,python3 ./test.py -f 2-query/union.py -Q 3
|
||||||
,,,system-test,python3 ./test.py -f 2-query/union1.py -Q 3
|
,,,system-test,python3 ./test.py -f 2-query/union1.py -Q 3
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat.py -Q 3
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/concat.py -Q 3
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat2.py -Q 3
|
,,,system-test,python3 ./test.py -f 2-query/concat2.py -Q 3
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -Q 3
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -Q 3
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py -Q 3
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py -Q 3
|
||||||
|
@ -926,7 +926,7 @@
|
||||||
,,,system-test,python3 ./test.py -f 2-query/substr.py -Q 4
|
,,,system-test,python3 ./test.py -f 2-query/substr.py -Q 4
|
||||||
,,,system-test,python3 ./test.py -f 2-query/union.py -Q 4
|
,,,system-test,python3 ./test.py -f 2-query/union.py -Q 4
|
||||||
,,,system-test,python3 ./test.py -f 2-query/union1.py -Q 4
|
,,,system-test,python3 ./test.py -f 2-query/union1.py -Q 4
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat.py -Q 4
|
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/concat.py -Q 4
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat2.py -Q 4
|
,,,system-test,python3 ./test.py -f 2-query/concat2.py -Q 4
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -Q 4
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws.py -Q 4
|
||||||
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py -Q 4
|
,,,system-test,python3 ./test.py -f 2-query/concat_ws2.py -Q 4
|
||||||
|
|
|
@ -21,15 +21,24 @@ LOG_DIR=$TAOS_DIR/sim/asan
|
||||||
error_num=`cat ${LOG_DIR}/*.asan | grep "ERROR" | wc -l`
|
error_num=`cat ${LOG_DIR}/*.asan | grep "ERROR" | wc -l`
|
||||||
memory_leak=`cat ${LOG_DIR}/*.asan | grep "Direct leak" | wc -l`
|
memory_leak=`cat ${LOG_DIR}/*.asan | grep "Direct leak" | wc -l`
|
||||||
indirect_leak=`cat ${LOG_DIR}/*.asan | grep "Indirect leak" | wc -l`
|
indirect_leak=`cat ${LOG_DIR}/*.asan | grep "Indirect leak" | wc -l`
|
||||||
|
python_error=`cat ${LOG_DIR}/*.info | grep -w "stack" | wc -l`
|
||||||
|
|
||||||
# ignore
|
# ignore
|
||||||
|
|
||||||
|
# TD-20368
|
||||||
|
# /root/TDengine/contrib/zlib/trees.c:873:5: runtime error: null pointer passed as argument 2, which is declared to never be null
|
||||||
|
|
||||||
|
# TD-20494 TD-20452
|
||||||
# /root/TDengine/source/libs/scalar/src/sclfunc.c:735:11: runtime error: 4.75783e+11 is outside the range of representable values of type 'signed char'
|
# /root/TDengine/source/libs/scalar/src/sclfunc.c:735:11: runtime error: 4.75783e+11 is outside the range of representable values of type 'signed char'
|
||||||
# /root/TDengine/source/libs/scalar/src/sclfunc.c:790:11: runtime error: 3.4e+38 is outside the range of representable values of type 'long int'
|
# /root/TDengine/source/libs/scalar/src/sclfunc.c:790:11: runtime error: 3.4e+38 is outside the range of representable values of type 'long int'
|
||||||
# /root/TDengine/source/libs/scalar/src/sclfunc.c:772:11: runtime error: 3.52344e+09 is outside the range of representable values of type 'int'
|
# /root/TDengine/source/libs/scalar/src/sclfunc.c:772:11: runtime error: 3.52344e+09 is outside the range of representable values of type 'int'
|
||||||
# /root/TDengine/source/libs/scalar/src/sclfunc.c:753:11: runtime error: 4.75783e+11 is outside the range of representable values of type 'short int'
|
# /root/TDengine/source/libs/scalar/src/sclfunc.c:753:11: runtime error: 4.75783e+11 is outside the range of representable values of type 'short int'
|
||||||
runtime_error=`cat ${LOG_DIR}/*.asan | grep "runtime error" | grep -v "trees.c:873" | grep -v "sclfunc.c.*outside the range of representable values of type" | wc -l`
|
|
||||||
|
|
||||||
python_error=`cat ${LOG_DIR}/*.info | grep -w "stack" | wc -l`
|
# TD-20569
|
||||||
|
# /root/TDengine/source/libs/function/src/builtinsimpl.c:856:29: runtime error: signed integer overflow: 9223372036854775806 + 9223372036854775805 cannot be represented in type 'long int'
|
||||||
|
# /root/TDengine/source/libs/scalar/src/sclvector.c:1075:66: runtime error: signed integer overflow: 9223372034707292160 + 1668838476672 cannot be represented in type 'long int'
|
||||||
|
|
||||||
|
runtime_error=`cat ${LOG_DIR}/*.asan | grep "runtime error" | grep -v "trees.c:873" | grep -v "sclfunc.c.*outside the range of representable values of type"| grep -v "builtinsimpl.c.*signed integer overflow"| grep -v "sclvector.c.*signed integer overflow" | wc -l`
|
||||||
|
|
||||||
echo -e "\033[44;32;1m"asan error_num: $error_num"\033[0m"
|
echo -e "\033[44;32;1m"asan error_num: $error_num"\033[0m"
|
||||||
echo -e "\033[44;32;1m"asan memory_leak: $memory_leak"\033[0m"
|
echo -e "\033[44;32;1m"asan memory_leak: $memory_leak"\033[0m"
|
||||||
|
|
Loading…
Reference in New Issue