Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
木子87
TDengine
提交
3d407ab5
T
TDengine
项目概览
木子87
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
3d407ab5
编写于
2月 22, 2021
作者:
H
huili
提交者:
GitHub
2月 22, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5224 from taosdata/xiaoping/add_test_case
coverage test/CI: add start time for each case
上级
c4fb5028
55959ebf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
8 deletion
+27
-8
tests/perftest-scripts/coverage_test.sh
tests/perftest-scripts/coverage_test.sh
+3
-3
tests/perftest-scripts/perftest-query.sh
tests/perftest-scripts/perftest-query.sh
+2
-2
tests/pytest/tag_lite/alter_tag.py
tests/pytest/tag_lite/alter_tag.py
+17
-1
tests/test-all.sh
tests/test-all.sh
+5
-2
未找到文件。
tests/perftest-scripts/coverage_test.sh
浏览文件 @
3d407ab5
...
...
@@ -56,9 +56,9 @@ function runGeneralCaseOneByOne {
case
=
`
echo
$line
|
grep
sim
$
|awk
'{print $NF}'
`
if
[
-n
"
$case
"
]
;
then
./test.sh
-f
$case
>
/dev/null 2>&1
&&
\
echo
-e
"
${
GREEN
}
$case
success
${
NC
}
"
|
tee
-a
$TDENGINE_COVERAGE_REPORT
||
\
echo
-e
"
${
RED
}
$case
failed
${
NC
}
"
|
tee
-a
$TDENGINE_COVERAGE_REPORT
date
+%F
\
%T
|
tee
-a
$TDENGINE_COVERAGE_REPORT
&&
./test.sh
-f
$case
>
/dev/null 2>&1
&&
\
(
grep
-q
'script.*success.*m$'
../../sim/tsim/log/taoslog0.0
&&
echo
-e
"
${
GREEN
}
$case
success
${
NC
}
"
|
tee
-a
$TDENGINE_COVERAGE_REPORT
)
\
||
echo
-e
"
${
RED
}
$case
failed
${
NC
}
"
|
tee
-a
$TDENGINE_COVERAGE_REPORT
fi
fi
done
<
$1
...
...
tests/perftest-scripts/perftest-query.sh
浏览文件 @
3d407ab5
...
...
@@ -64,7 +64,7 @@ function runQueryPerfTest {
[
-f
$PERFORMANCE_TEST_REPORT
]
&&
rm
$PERFORMANCE_TEST_REPORT
nohup
$WORK_DIR
/TDengine/debug/build/bin/taosd
-c
/etc/taosperf/
>
/dev/null 2>&1 &
echoInfo
"Wait TDengine to start"
sleep
6
0
sleep
12
0
echoInfo
"Run Performance Test"
cd
$WORK_DIR
/TDengine/tests/pytest
...
...
@@ -72,7 +72,7 @@ function runQueryPerfTest {
python3 insert/insertFromCSVPerformance.py
-c
$LOCAL_COMMIT
|
tee
-a
$PERFORMANCE_TEST_REPORT
yes
| taosdemo
-c
/etc/taosperf/
-d
taosdemo_insert_test
-
t
1000
-n
1000
>
taosdemoperf.txt
yes
| taosdemo
-c
/etc/taosperf/
-d
taosdemo_insert_test
-
x
>
taosdemoperf.txt
CREATETABLETIME
=
`
grep
'Spent'
taosdemoperf.txt |
awk
'NR==1{print $2}'
`
INSERTRECORDSTIME
=
`
grep
'Spent'
taosdemoperf.txt |
awk
'NR==2{print $2}'
`
...
...
tests/pytest/tag_lite/alter_tag.py
浏览文件 @
3d407ab5
...
...
@@ -41,7 +41,23 @@ class TDTestCase:
tdSql
.
query
(
"select * from ampere"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
6
,
None
)
tdSql
.
checkData
(
1
,
6
,
'test'
)
tdSql
.
checkData
(
1
,
6
,
'test'
)
# Test case for: https://jira.taosdata.com:18080/browse/TD-2423
tdSql
.
execute
(
"create table stb(ts timestamp, col1 int, col2 nchar(20)) tags(tg1 int, tg2 binary(20), tg3 nchar(25))"
)
tdSql
.
execute
(
"insert into tb1 using stb(tg1, tg3) tags(1, 'test1') values(now, 1, 'test1')"
)
tdSql
.
query
(
"select *, tg1, tg2, tg3 from tb1"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
3
,
1
)
tdSql
.
checkData
(
0
,
4
,
None
)
tdSql
.
checkData
(
0
,
5
,
'test1'
)
tdSql
.
execute
(
"create table tb2 using stb(tg3, tg2) tags('test3', 'test2')"
)
tdSql
.
query
(
"select tg1, tg2, tg3 from tb2"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
None
)
tdSql
.
checkData
(
0
,
1
,
'test2'
)
tdSql
.
checkData
(
0
,
2
,
'test3'
)
def
stop
(
self
):
tdSql
.
close
()
...
...
tests/test-all.sh
浏览文件 @
3d407ab5
...
...
@@ -21,8 +21,8 @@ function runSimCaseOneByOne {
if
[[
$line
=
~ ^./test.sh
*
]]
||
[[
$line
=
~ ^run
*
]]
;
then
case
=
`
echo
$line
|
grep
sim
$
|awk
'{print $NF}'
`
IN_TDINTERNAL
=
"community"
start_time
=
`
date
+%s
`
IN_TDINTERNAL
=
"community"
start_time
=
`
date
+%s
`
date
+%F
\
%T
|
tee
-a
out.log
if
[[
"
$tests_dir
"
==
*
"
$IN_TDINTERNAL
"
*
]]
;
then
echo
-n
$case
./test.sh
-f
$case
>
/dev/null 2>&1
&&
\
...
...
@@ -53,6 +53,7 @@ function runSimCaseOneByOnefq {
start_time
=
`
date
+%s
`
IN_TDINTERNAL
=
"community"
date
+%F
\
%T
|
tee
-a
out.log
if
[[
"
$tests_dir
"
==
*
"
$IN_TDINTERNAL
"
*
]]
;
then
echo
-n
$case
./test.sh
-f
$case
>
/dev/null 2>&1
&&
\
...
...
@@ -94,6 +95,7 @@ function runPyCaseOneByOne {
case
=
`
echo
$line
|awk
'{print $NF}'
`
fi
start_time
=
`
date
+%s
`
date
+%F
\
%T
|
tee
-a
pytest-out.log
echo
-n
$case
$line
>
/dev/null 2>&1
&&
\
echo
-e
"
${
GREEN
}
success
${
NC
}
"
|
tee
-a
pytest-out.log
||
\
...
...
@@ -122,6 +124,7 @@ function runPyCaseOneByOnefq {
case
=
`
echo
$line
|awk
'{print $NF}'
`
fi
start_time
=
`
date
+%s
`
date
+%F
\
%T
|
tee
-a
pytest-out.log
echo
-n
$case
$line
>
/dev/null 2>&1
&&
\
echo
-e
"
${
GREEN
}
success
${
NC
}
"
|
tee
-a
pytest-out.log
||
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录