Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小楼昨夜-听风雨
TDengine
提交
e37bd647
T
TDengine
项目概览
小楼昨夜-听风雨
/
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,发现更多精彩内容 >>
提交
e37bd647
编写于
5月 07, 2020
作者:
sangshuduo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change all files.
上级
5fa4d345
变更
27
隐藏空白更改
内联
并排
Showing
27 changed file
with
85 addition
and
80 deletion
+85
-80
tests/pytest/fulltest.sh
tests/pytest/fulltest.sh
+5
-0
tests/pytest/import_merge/importDataH2.py
tests/pytest/import_merge/importDataH2.py
+8
-8
tests/pytest/import_merge/importDataHO.py
tests/pytest/import_merge/importDataHO.py
+3
-3
tests/pytest/import_merge/importDataHO2.py
tests/pytest/import_merge/importDataHO2.py
+3
-3
tests/pytest/import_merge/importDataHPO.py
tests/pytest/import_merge/importDataHPO.py
+3
-3
tests/pytest/import_merge/importDataLastH.py
tests/pytest/import_merge/importDataLastH.py
+3
-3
tests/pytest/import_merge/importDataLastHO.py
tests/pytest/import_merge/importDataLastHO.py
+3
-3
tests/pytest/import_merge/importDataLastHPO.py
tests/pytest/import_merge/importDataLastHPO.py
+3
-3
tests/pytest/import_merge/importDataLastS.py
tests/pytest/import_merge/importDataLastS.py
+3
-3
tests/pytest/import_merge/importDataLastSub.py
tests/pytest/import_merge/importDataLastSub.py
+3
-3
tests/pytest/import_merge/importDataLastT.py
tests/pytest/import_merge/importDataLastT.py
+3
-3
tests/pytest/import_merge/importDataLastTO.py
tests/pytest/import_merge/importDataLastTO.py
+3
-3
tests/pytest/import_merge/importDataLastTPO.py
tests/pytest/import_merge/importDataLastTPO.py
+3
-3
tests/pytest/import_merge/importDataS.py
tests/pytest/import_merge/importDataS.py
+3
-3
tests/pytest/import_merge/importDataSub.py
tests/pytest/import_merge/importDataSub.py
+7
-7
tests/pytest/import_merge/importDataT.py
tests/pytest/import_merge/importDataT.py
+1
-1
tests/pytest/import_merge/importDataTO.py
tests/pytest/import_merge/importDataTO.py
+3
-3
tests/pytest/import_merge/importDataTPO.py
tests/pytest/import_merge/importDataTPO.py
+3
-3
tests/pytest/import_merge/importLastH.py
tests/pytest/import_merge/importLastH.py
+2
-2
tests/pytest/import_merge/importLastHO.py
tests/pytest/import_merge/importLastHO.py
+2
-2
tests/pytest/import_merge/importLastHPO.py
tests/pytest/import_merge/importLastHPO.py
+2
-2
tests/pytest/import_merge/importLastS.py
tests/pytest/import_merge/importLastS.py
+2
-2
tests/pytest/import_merge/importLastSub.py
tests/pytest/import_merge/importLastSub.py
+2
-2
tests/pytest/import_merge/importLastT.py
tests/pytest/import_merge/importLastT.py
+2
-2
tests/pytest/import_merge/importLastTO.py
tests/pytest/import_merge/importLastTO.py
+2
-2
tests/pytest/import_merge/importLastTPO.py
tests/pytest/import_merge/importLastTPO.py
+2
-2
tests/pytest/smoketest.sh
tests/pytest/smoketest.sh
+6
-6
未找到文件。
tests/pytest/fulltest.sh
浏览文件 @
e37bd647
...
...
@@ -9,6 +9,11 @@ python3 ./test.py $1 -f insert/smallint.py
python3 ./test.py
$1
-f
insert/tinyint.py
python3 ./test.py
$1
-f
insert/date.py
python3 ./test.py
$1
-f
insert/binary.py
python3 ./test.py
$1
-f
table/column_name.py
python3 ./test.py
$1
-f
table/column_num.py
python3 ./test.py
$1
-f
table/db_table.py
python3 ./test.py
$1
-f
import_merge/importBlock1HO.py
python3 ./test.py
$1
-f
import_merge/importBlock1HPO.py
python3 ./test.py
$1
-f
import_merge/importBlock1H.py
...
...
tests/pytest/import_merge/importDataH2.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -43,19 +43,19 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import %d sequential data"
%
(
self
.
rows
/
2
))
tdLog
.
info
(
"import %d sequential data"
%
(
self
.
max
rows
/
2
))
startTime
=
self
.
startTime
sqlcmd
=
[
'import into tb1 values'
]
for
rid
in
range
(
1
,
self
.
rows
/
2
+
1
):
for
rid
in
range
(
1
,
self
.
max
rows
/
2
+
1
):
sqlcmd
.
append
(
'(%ld, %d)'
%
(
startTime
+
rid
,
rid
))
tdSql
.
execute
(
" "
.
join
(
sqlcmd
))
tdLog
.
info
(
"================= step3"
)
tdSql
.
query
(
'select * from tb1'
)
tdSql
.
checkRows
(
self
.
rows
/
2
)
tdSql
.
checkRows
(
self
.
max
rows
/
2
)
tdLog
.
info
(
"================= step4"
)
tdDnodes
.
stop
(
1
)
...
...
@@ -70,7 +70,7 @@ class TDTestCase:
tdLog
.
info
(
"================= step7"
)
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
query
(
'select * from tb1 order by ts desc'
)
tdSql
.
checkRows
(
self
.
rows
/
2
+
1
)
tdSql
.
checkRows
(
self
.
max
rows
/
2
+
1
)
tdLog
.
info
(
"================= step8"
)
tdLog
.
info
(
"import 10 data in batch before"
)
...
...
@@ -83,7 +83,7 @@ class TDTestCase:
tdLog
.
info
(
"================= step9"
)
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
query
(
'select * from tb1 order by ts desc'
)
tdSql
.
checkRows
(
self
.
rows
/
2
+
11
)
tdSql
.
checkRows
(
self
.
max
rows
/
2
+
11
)
def
stop
(
self
):
tdSql
.
close
()
...
...
tests/pytest/import_merge/importDataHO.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
maxw
rows
=
200
self
.
rowsPerTable
=
20
tdDnodes
.
stop
(
1
)
...
...
@@ -36,7 +36,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -44,7 +44,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import %d sequential data"
%
self
.
rowsPerTable
)
...
...
tests/pytest/import_merge/importDataHO2.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
self
.
rowsPerTable
=
100
tdDnodes
.
stop
(
1
)
...
...
@@ -36,7 +36,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -44,7 +44,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import %d sequential data"
%
self
.
rowsPerTable
)
...
...
tests/pytest/import_merge/importDataHPO.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
self
.
rowsPerTable
=
20
tdDnodes
.
stop
(
1
)
...
...
@@ -36,7 +36,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -44,7 +44,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import %d sequential data"
%
self
.
rowsPerTable
)
...
...
tests/pytest/import_merge/importDataLastH.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -43,7 +43,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataLastHO.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -43,7 +43,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataLastHPO.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -43,7 +43,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataLastS.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -43,7 +43,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataLastSub.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -43,7 +43,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataLastT.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -39,7 +39,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataLastTO.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -39,7 +39,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataLastTPO.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -39,7 +39,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than %d rows less than %d rows will go to data and last file"
%
(
self
.
rows
,
10
+
self
.
rows
))
(
self
.
maxrows
,
10
+
self
.
max
rows
))
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 205 sequential data"
)
...
...
tests/pytest/import_merge/importDataS.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -39,7 +39,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 20 sequential data"
)
...
...
tests/pytest/import_merge/importDataSub.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -43,19 +43,19 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import %d sequential data"
%
(
self
.
rows
/
2
))
tdLog
.
info
(
"import %d sequential data"
%
(
self
.
max
rows
/
2
))
startTime
=
self
.
startTime
sqlcmd
=
[
'import into tb1 values'
]
for
rid
in
range
(
1
,
self
.
rows
/
2
+
1
):
for
rid
in
range
(
1
,
self
.
max
rows
/
2
+
1
):
sqlcmd
.
append
(
'(%ld, %d)'
%
(
startTime
+
rid
,
rid
))
tdSql
.
execute
(
" "
.
join
(
sqlcmd
))
tdLog
.
info
(
"================= step3"
)
tdSql
.
query
(
'select * from tb1'
)
tdSql
.
checkRows
(
self
.
rows
/
2
)
tdSql
.
checkRows
(
self
.
max
rows
/
2
)
tdLog
.
info
(
"================= step4"
)
tdDnodes
.
stop
(
1
)
...
...
@@ -73,7 +73,7 @@ class TDTestCase:
tdLog
.
info
(
"================= step9"
)
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
query
(
'select * from tb1 order by ts desc'
)
tdSql
.
checkRows
(
self
.
rows
/
2
)
tdSql
.
checkRows
(
self
.
max
rows
/
2
)
def
stop
(
self
):
tdSql
.
close
()
...
...
tests/pytest/import_merge/importDataT.py
浏览文件 @
e37bd647
...
...
@@ -38,7 +38,7 @@ class TDTestCase:
tdLog
.
info
(
"create 1 table"
)
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d
max
rows will go to data file"
%
"More than 10 rows less than %d rows will go to data file"
%
self
.
maxrows
)
tdLog
.
info
(
"================= step2"
)
...
...
tests/pytest/import_merge/importDataTO.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -39,7 +39,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 20 sequential data"
)
...
...
tests/pytest/import_merge/importDataTPO.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
@@ -39,7 +39,7 @@ class TDTestCase:
tdSql
.
execute
(
'create table tb1 (ts timestamp, speed int)'
)
tdLog
.
info
(
"More than 10 rows less than %d rows will go to data file"
%
self
.
rows
)
self
.
max
rows
)
tdLog
.
info
(
"================= step2"
)
tdLog
.
info
(
"import 20 sequential data"
)
...
...
tests/pytest/import_merge/importLastH.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/import_merge/importLastHO.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/import_merge/importLastHPO.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/import_merge/importLastS.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/import_merge/importLastSub.py
浏览文件 @
e37bd647
...
...
@@ -27,11 +27,11 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/import_merge/importLastT.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/import_merge/importLastTO.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/import_merge/importLastTPO.py
浏览文件 @
e37bd647
...
...
@@ -27,7 +27,7 @@ class TDTestCase:
def
run
(
self
):
self
.
ntables
=
1
self
.
startTime
=
1520000010000
self
.
rows
=
200
self
.
max
rows
=
200
tdDnodes
.
stop
(
1
)
tdDnodes
.
deploy
(
1
)
...
...
@@ -35,7 +35,7 @@ class TDTestCase:
tdSql
.
execute
(
'reset query cache'
)
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db
rows %d'
%
self
.
rows
)
tdSql
.
execute
(
'create database db
maxrows %d'
%
self
.
max
rows
)
tdSql
.
execute
(
'use db'
)
tdLog
.
info
(
"================= step1"
)
...
...
tests/pytest/smoketest.sh
浏览文件 @
e37bd647
...
...
@@ -34,12 +34,12 @@ python3 ./test.py $1 -f table/db_table.py
python3 ./test.py
-s
$1
sleep
1
#
python3 ./test.py $1 -f import_merge/importDataLastTO.py
#
python3 ./test.py -s $1
#
sleep 1
#
python3 ./test.py $1 -f import_merge/importDataLastT.py
#
python3 ./test.py -s $1
#
sleep 1
python3 ./test.py
$1
-f
import_merge/importDataLastTO.py
python3 ./test.py
-s
$1
sleep
1
python3 ./test.py
$1
-f
import_merge/importDataLastT.py
python3 ./test.py
-s
$1
sleep
1
python3 ./test.py
$1
-f
import_merge/importDataTO.py
python3 ./test.py
-s
$1
sleep
1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录