Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
15c0bb94
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
15c0bb94
编写于
11月 20, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: python asan
上级
4dc1b334
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
8 deletion
+18
-8
tests/pytest/util/dnodes.py
tests/pytest/util/dnodes.py
+12
-3
tests/script/sh/checkAsan.sh
tests/script/sh/checkAsan.sh
+1
-1
tests/script/sh/exec.sh
tests/script/sh/exec.sh
+1
-1
tests/script/sh/sigint_stop_dnodes.sh
tests/script/sh/sigint_stop_dnodes.sh
+1
-1
tests/script/sh/stop_dnodes.sh
tests/script/sh/stop_dnodes.sh
+1
-1
tests/system-test/pytest.sh
tests/system-test/pytest.sh
+2
-1
未找到文件。
tests/pytest/util/dnodes.py
浏览文件 @
15c0bb94
...
...
@@ -162,7 +162,11 @@ class TDDnode:
def
setAsan
(
self
,
value
):
self
.
asan
=
value
if
value
:
self
.
execPath
=
os
.
path
.
abspath
(
self
.
path
+
"/tests/script/sh/exec.sh"
)
selfPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
if
(
"community"
in
selfPath
):
self
.
execPath
=
os
.
path
.
abspath
(
self
.
path
+
"/community/tests/script/sh/exec.sh"
)
else
:
self
.
execPath
=
os
.
path
.
abspath
(
self
.
path
+
"/tests/script/sh/exec.sh"
)
def
getDataSize
(
self
):
totalSize
=
0
...
...
@@ -670,8 +674,13 @@ class TDDnodes:
def
setAsan
(
self
,
value
):
self
.
asan
=
value
if
value
:
self
.
stopDnodesPath
=
os
.
path
.
abspath
(
self
.
path
+
"/tests/script/sh/stop_dnodes.sh"
)
self
.
stopDnodesSigintPath
=
os
.
path
.
abspath
(
self
.
path
+
"/tests/script/sh/sigint_stop_dnodes.sh"
)
selfPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
if
(
"community"
in
selfPath
):
self
.
stopDnodesPath
=
os
.
path
.
abspath
(
self
.
path
+
"/community/tests/script/sh/stop_dnodes.sh"
)
self
.
stopDnodesSigintPath
=
os
.
path
.
abspath
(
self
.
path
+
"/community/tests/script/sh/sigint_stop_dnodes.sh"
)
else
:
self
.
stopDnodesPath
=
os
.
path
.
abspath
(
self
.
path
+
"/tests/script/sh/stop_dnodes.sh"
)
self
.
stopDnodesSigintPath
=
os
.
path
.
abspath
(
self
.
path
+
"/tests/script/sh/sigint_stop_dnodes.sh"
)
tdLog
.
info
(
"run in address sanitizer mode"
)
def
setKillValgrind
(
self
,
value
):
...
...
tests/script/sh/checkAsan.sh
浏览文件 @
15c0bb94
...
...
@@ -3,7 +3,7 @@
set
+e
#set -x
export
LD_PRELOAD
=
unset
LD_PRELOAD
SCRIPT_DIR
=
`
dirname
$0
`
cd
$SCRIPT_DIR
/../
SCRIPT_DIR
=
`
pwd
`
...
...
tests/script/sh/exec.sh
浏览文件 @
15c0bb94
...
...
@@ -11,7 +11,7 @@
set
+e
#set -x
export
LD_PRELOAD
=
unset
LD_PRELOAD
UNAME_BIN
=
`
which
uname
`
OS_TYPE
=
`
$UNAME_BIN
`
...
...
tests/script/sh/sigint_stop_dnodes.sh
浏览文件 @
15c0bb94
...
...
@@ -3,7 +3,7 @@
set
+e
#set -x
export
LD_PRELOAD
=
unset
LD_PRELOAD
UNAME_BIN
=
`
which
uname
`
OS_TYPE
=
`
$UNAME_BIN
`
...
...
tests/script/sh/stop_dnodes.sh
浏览文件 @
15c0bb94
...
...
@@ -3,7 +3,7 @@
set
+e
#set -x
export
LD_PRELOAD
=
unset
LD_PRELOAD
UNAME_BIN
=
`
which
uname
`
OS_TYPE
=
`
$UNAME_BIN
`
...
...
tests/system-test/test.sh
→
tests/system-test/
py
test.sh
浏览文件 @
15c0bb94
...
...
@@ -69,10 +69,11 @@ echo "ExcuteCmd:" $*
AsanFile
=
$ASAN_DIR
/psim.asan
echo
"AsanFile:"
$AsanFile
unset
LD_PRELOAD
export
LD_PRELOAD
=
libasan.so.5
$*
-a
2>
$AsanFile
export
LD_PRELOAD
=
unset
LD_PRELOAD
AsanFileLen
=
`
cat
$AsanFile
|
wc
-l
`
while
[
$AsanFileLen
-lt
10
]
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录