Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
027c2fa1
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
未验证
提交
027c2fa1
编写于
5月 30, 2022
作者:
S
Shengliang Guan
提交者:
GitHub
5月 30, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #13251 from taosdata/fix/tsim
test: cases for alter db
上级
43d88fa0
ff10c2e8
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
49 addition
and
46 deletion
+49
-46
tests/script/general/alter/table.sim
tests/script/general/alter/table.sim
+9
-8
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+4
-0
tests/script/tsim/stable/alter_import.sim
tests/script/tsim/stable/alter_import.sim
+3
-3
tests/script/tsim/stable/alter_insert1.sim
tests/script/tsim/stable/alter_insert1.sim
+0
-0
tests/script/tsim/stable/alter_insert2.sim
tests/script/tsim/stable/alter_insert2.sim
+0
-0
tests/script/tsim/stable/alter_metrics.sim
tests/script/tsim/stable/alter_metrics.sim
+10
-11
tests/script/tsim/stable/column_modify.sim
tests/script/tsim/stable/column_modify.sim
+22
-19
tests/script/tsim/stable/disk.sim
tests/script/tsim/stable/disk.sim
+1
-2
tests/script/tsim/stable/metrics.sim
tests/script/tsim/stable/metrics.sim
+0
-3
未找到文件。
tests/script/general/alter/table.sim
浏览文件 @
027c2fa1
...
...
@@ -252,6 +252,7 @@ endi
print ======== step8
sql alter table tb add column h binary(10)
sql select * from tb
sql describe tb
if $data00 != ts then
return -1
...
...
@@ -304,7 +305,7 @@ endi
if $data80 != h then
return -1
endi
if $data81 !=
BINARY
then
if $data81 !=
VARCHAR
then
return -1
endi
if $data82 != 10 then
...
...
@@ -371,7 +372,7 @@ endi
if $data80 != h then
return -1
endi
if $data81 !=
BINARY
then
if $data81 !=
VARCHAR
then
return -1
endi
if $data82 != 10 then
...
...
@@ -447,7 +448,7 @@ endi
if $data70 != h then
return -1
endi
if $data71 !=
BINARY
then
if $data71 !=
VARCHAR
then
return -1
endi
if $data72 != 10 then
...
...
@@ -496,7 +497,7 @@ endi
if $data60 != h then
return -1
endi
if $data61 !=
BINARY
then
if $data61 !=
VARCHAR
then
return -1
endi
if $data62 != 10 then
...
...
@@ -539,7 +540,7 @@ endi
if $data50 != h then
return -1
endi
if $data51 !=
BINARY
then
if $data51 !=
VARCHAR
then
return -1
endi
if $data52 != 10 then
...
...
@@ -576,7 +577,7 @@ endi
if $data40 != h then
return -1
endi
if $data41 !=
BINARY
then
if $data41 !=
VARCHAR
then
return -1
endi
if $data42 != 10 then
...
...
@@ -607,7 +608,7 @@ endi
if $data30 != h then
return -1
endi
if $data31 !=
BINARY
then
if $data31 !=
VARCHAR
then
return -1
endi
if $data32 != 10 then
...
...
@@ -632,7 +633,7 @@ endi
if $data20 != h then
return -1
endi
if $data21 !=
BINARY
then
if $data21 !=
VARCHAR
then
return -1
endi
if $data22 != 10 then
...
...
tests/script/jenkins/basic.txt
浏览文件 @
027c2fa1
...
...
@@ -104,6 +104,10 @@
./test.sh -f tsim/stable/tag_modify.sim
./test.sh -f tsim/stable/tag_rename.sim
./test.sh -f tsim/stable/alter_comment.sim
./test.sh -f tsim/stable/alter_count.sim
./test.sh -f tsim/stable/alter_insert1.sim
./test.sh -f tsim/stable/alter_insert2.sim
./test.sh -f tsim/stable/alter_import.sim
# --- for multi process mode
./test.sh -f tsim/user/basic1.sim -m
...
...
tests/script/
general/alter/
import.sim
→
tests/script/
tsim/stable/alter_
import.sim
浏览文件 @
027c2fa1
...
...
@@ -29,14 +29,14 @@ if $data00 != 3 then
endi
print ========= step3
sql i
mpo
rt into tb values(now-23d, -23, 0)
sql i
mpo
rt into tb values(now-21d, -21, 0)
sql i
nse
rt into tb values(now-23d, -23, 0)
sql i
nse
rt into tb values(now-21d, -21, 0)
sql select count(b) from tb
if $data00 != 5 then
return -1
endi
sql i
mpo
rt into tb values(now-29d, -29, 0)
sql i
nse
rt into tb values(now-29d, -29, 0)
sql select count(b) from tb
if $data00 != 6 then
return -1
...
...
tests/script/
general/alter/
insert1.sim
→
tests/script/
tsim/stable/alter_
insert1.sim
浏览文件 @
027c2fa1
文件已移动
tests/script/
general/alter/
insert2.sim
→
tests/script/
tsim/stable/alter_
insert2.sim
浏览文件 @
027c2fa1
文件已移动
tests/script/
general/alter/
metrics.sim
→
tests/script/
tsim/stable/alter_
metrics.sim
浏览文件 @
027c2fa1
...
...
@@ -347,7 +347,7 @@ endi
if $data80 != h then
return -1
endi
if $data81 !=
BINARY
then
if $data81 !=
VARCHAR
then
return -1
endi
if $data82 != 10 then
...
...
@@ -363,9 +363,8 @@ endi
print ======== step9
print ======== step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
system sh/exec.sh -n dnode1 -s start
s
leep 3000
s
ql connect
sql use d2
sql describe tb
...
...
@@ -420,7 +419,7 @@ endi
if $data80 != h then
return -1
endi
if $data81 !=
BINARY
then
if $data81 !=
VARCHAR
then
return -1
endi
if $data82 != 10 then
...
...
@@ -502,7 +501,7 @@ endi
if $data70 != h then
return -1
endi
if $data71 !=
BINARY
then
if $data71 !=
VARCHAR
then
return -1
endi
if $data72 != 10 then
...
...
@@ -557,7 +556,7 @@ endi
if $data60 != h then
return -1
endi
if $data61 !=
BINARY
then
if $data61 !=
VARCHAR
then
return -1
endi
if $data62 != 10 then
...
...
@@ -606,7 +605,7 @@ endi
if $data50 != h then
return -1
endi
if $data51 !=
BINARY
then
if $data51 !=
VARCHAR
then
return -1
endi
if $data52 != 10 then
...
...
@@ -649,7 +648,7 @@ endi
if $data40 != h then
return -1
endi
if $data41 !=
BINARY
then
if $data41 !=
VARCHAR
then
return -1
endi
if $data42 != 10 then
...
...
@@ -686,7 +685,7 @@ endi
if $data30 != h then
return -1
endi
if $data31 !=
BINARY
then
if $data31 !=
VARCHAR
then
return -1
endi
if $data32 != 10 then
...
...
@@ -717,7 +716,7 @@ endi
if $data20 != h then
return -1
endi
if $data21 !=
BINARY
then
if $data21 !=
VARCHAR
then
return -1
endi
if $data22 != 10 then
...
...
@@ -758,7 +757,7 @@ endi
print ======= over
sql drop database d2
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
endi
...
...
tests/script/tsim/stable/column_modify.sim
浏览文件 @
027c2fa1
...
...
@@ -79,28 +79,31 @@ system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s start
sql connect
sql select * from db.ctb
sql select * from db.stb
print $data[0][0] $data[0][1] $data[0][2] $data[0][3] $data[0][4] $data[0][5] $data[0][6]
print $data[1][0] $data[1][1] $data[1][2] $data[1][3] $data[1][4] $data[1][5] $data[1][6]
if $rows != 2 then
return -1
endi
#
if $data[0][1] != 1 then
#
return -1
#
endi
#
if $data[0][2] != 1234 then
#
return -1
#
endi
#
if $data[0][3] != 101 then
#
return -1
#
endi
#
if $data[1][1] != 1 then
#
return -1
#
endi
#
if $data[1][2] != 12345 then
#
return -1
#
endi
#
if $data[1][3] != 101 then
#
return -1
#
endi
if $data[0][1] != 1 then
return -1
endi
if $data[0][2] != 1234 then
return -1
endi
if $data[0][3] != 101 then
return -1
endi
if $data[1][1] != 1 then
return -1
endi
if $data[1][2] != 12345 then
return -1
endi
if $data[1][3] != 101 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/disk.sim
浏览文件 @
027c2fa1
...
...
@@ -49,10 +49,9 @@ if $data00 != $totalNum then
return -1
endi
sleep 1000
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
system sh/exec.sh -n dnode1 -s start
sql connect
sql use $db
sql show vgroups
...
...
tests/script/tsim/stable/metrics.sim
浏览文件 @
027c2fa1
...
...
@@ -93,9 +93,6 @@ $i = 2
$tb = $tbPrefix . $i
sql insert into $tb values (now + 1m , 1 )
print sleep 2000
sleep 2000
print =============== step6
# sql select * from $mt
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录