Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
ee9f5740
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22017
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ee9f5740
编写于
11月 21, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: check asan errors
上级
d17dd17b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
8 deletion
+11
-8
tests/parallel_test/cases.task
tests/parallel_test/cases.task
+1
-1
tests/script/sh/checkAsan.sh
tests/script/sh/checkAsan.sh
+6
-1
tests/system-test/2-query/abs.py
tests/system-test/2-query/abs.py
+2
-0
tests/system-test/pytest.sh
tests/system-test/pytest.sh
+2
-6
未找到文件。
tests/parallel_test/cases.task
浏览文件 @
ee9f5740
...
...
@@ -278,7 +278,7 @@
,,y,script,./test.sh -f tsim/stable/values.sim
,,y,script,./test.sh -f tsim/stable/vnode3.sim
,,y,script,./test.sh -f tsim/stable/metrics_idx.sim
,,
y
,script,./test.sh -f tsim/sma/drop_sma.sim
,,
n
,script,./test.sh -f tsim/sma/drop_sma.sim
,,y,script,./test.sh -f tsim/sma/tsmaCreateInsertQuery.sim
,,y,script,./test.sh -f tsim/sma/rsmaCreateInsertQuery.sim
,,y,script,./test.sh -f tsim/sma/rsmaPersistenceRecovery.sim
...
...
tests/script/sh/checkAsan.sh
浏览文件 @
ee9f5740
...
...
@@ -22,19 +22,24 @@ error_num=`cat ${LOG_DIR}/*.asan | grep "ERROR" | wc -l`
memory_leak
=
`
cat
${
LOG_DIR
}
/
*
.asan |
grep
"Direct leak"
|
wc
-l
`
indirect_leak
=
`
cat
${
LOG_DIR
}
/
*
.asan |
grep
"Indirect leak"
|
wc
-l
`
runtime_error
=
`
cat
${
LOG_DIR
}
/
*
.asan |
grep
"runtime error"
|
grep
-v
"trees.c:873"
|
wc
-l
`
python_error
=
`
cat
${
LOG_DIR
}
/
*
.info |
grep
"stack"
|
wc
-l
`
echo
-e
"
\0
33[44;32;1m"
asan error_num:
$error_num
"
\0
33[0m"
echo
-e
"
\0
33[44;32;1m"
asan memory_leak:
$memory_leak
"
\0
33[0m"
echo
-e
"
\0
33[44;32;1m"
asan indirect_leak:
$indirect_leak
"
\0
33[0m"
echo
-e
"
\0
33[44;32;1m"
asan runtime error:
$runtime_error
"
\0
33[0m"
echo
-e
"
\0
33[44;32;1m"
asan python error:
$python_error
"
\0
33[0m"
let
"errors=
$error_num
+
$memory_leak
+
$indirect_leak
+
$runtime_error
"
let
"errors=
$error_num
+
$memory_leak
+
$indirect_leak
+
$runtime_error
+
$python_error
"
if
[
$errors
-eq
0
]
;
then
echo
-e
"
\0
33[44;32;1m"
no asan errors
"
\0
33[0m"
exit
0
else
echo
-e
"
\0
33[44;31;1m"
asan total errors:
$errors
"
\0
33[0m"
if
[
$python_error
-ne
0
]
;
then
cat
${
LOG_DIR
}
/
*
.info
fi
cat
${
LOG_DIR
}
/
*
.asan
exit
1
fi
\ No newline at end of file
tests/system-test/2-query/abs.py
浏览文件 @
ee9f5740
...
...
@@ -487,6 +487,8 @@ class TDTestCase:
self
.
check_result_auto
(
f
"select abs(abs(abs(abs(abs(abs(abs(abs(abs(abs(c1)))))))))) nest_col_func from
{
dbname
}
.sub1_bound;"
,
f
"select abs(c1) from
{
dbname
}
.sub1_bound"
)
tdSql
.
query
(
f
"select t1 xxx"
)
# check basic elem for table per row
tdSql
.
query
(
f
"select abs(c1) ,abs(c2) , abs(c3) , abs(c4), abs(c5), abs(c6) from
{
dbname
}
.sub1_bound "
)
...
...
tests/system-test/pytest.sh
浏览文件 @
ee9f5740
...
...
@@ -66,17 +66,13 @@ ulimit -c unlimited
#sudo sysctl -w kernel.core_pattern=$TOP_DIR/core.%p.%e
echo
"ExcuteCmd:"
$*
AsanFile
=
$ASAN_DIR
/psim.
asan
AsanFile
=
$ASAN_DIR
/psim.
info
echo
"AsanFile:"
$AsanFile
unset
LD_PRELOAD
#export LD_PRELOAD=libasan.so.5
#echo "export1:" $?
export
LD_PRELOAD
=
`
gcc
-print-file-name
=
libasan.so
`
echo
"export2:"
$?
echo
"export4:"
"
$BUILD_DIR
/build/bin/taos"
ldd
$BUILD_DIR
/build/bin/taos
echo
"Preload AsanSo:"
$?
$*
-a
2>
$AsanFile
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录