Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
3d4807fb
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
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看板
提交
3d4807fb
编写于
8月 31, 2022
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix test cases
上级
593fdce0
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
70 addition
and
70 deletion
+70
-70
tests/script/tsim/stable/alter_comment.sim
tests/script/tsim/stable/alter_comment.sim
+1
-1
tests/script/tsim/stable/alter_count.sim
tests/script/tsim/stable/alter_count.sim
+4
-4
tests/script/tsim/stable/alter_import.sim
tests/script/tsim/stable/alter_import.sim
+2
-2
tests/script/tsim/stable/alter_insert1.sim
tests/script/tsim/stable/alter_insert1.sim
+2
-2
tests/script/tsim/stable/alter_insert2.sim
tests/script/tsim/stable/alter_insert2.sim
+2
-2
tests/script/tsim/stable/alter_metrics.sim
tests/script/tsim/stable/alter_metrics.sim
+3
-3
tests/script/tsim/stable/column_add.sim
tests/script/tsim/stable/column_add.sim
+3
-3
tests/script/tsim/stable/column_modify.sim
tests/script/tsim/stable/column_modify.sim
+3
-3
tests/script/tsim/stable/disk.sim
tests/script/tsim/stable/disk.sim
+1
-1
tests/script/tsim/stable/refcount.sim
tests/script/tsim/stable/refcount.sim
+1
-1
tests/script/tsim/stable/tag_add.sim
tests/script/tsim/stable/tag_add.sim
+3
-3
tests/script/tsim/stable/tag_drop.sim
tests/script/tsim/stable/tag_drop.sim
+6
-6
tests/script/tsim/stable/tag_filter.sim
tests/script/tsim/stable/tag_filter.sim
+33
-33
tests/script/tsim/stable/tag_modify.sim
tests/script/tsim/stable/tag_modify.sim
+3
-3
tests/script/tsim/stable/tag_rename.sim
tests/script/tsim/stable/tag_rename.sim
+3
-3
未找到文件。
tests/script/tsim/stable/alter_comment.sim
浏览文件 @
3d4807fb
...
@@ -95,7 +95,7 @@ sql_error alter table db.stb add tag t1 int
...
@@ -95,7 +95,7 @@ sql_error alter table db.stb add tag t1 int
sql_error alter table db.stb add tag t2 int
sql_error alter table db.stb add tag t2 int
sql_error alter table db.stb add tag t3 int
sql_error alter table db.stb add tag t3 int
sql alter table db.stb add tag t4 bigint
sql alter table db.stb add tag t4 bigint
sql alter table db.stb add tag c1 int
sql alter table db.stb add tag c1 int
sql alter table db.stb add tag t5 binary(12)
sql alter table db.stb add tag t5 binary(12)
sql select * from information_schema.ins_stables where db_name = 'db'
sql select * from information_schema.ins_stables where db_name = 'db'
...
...
tests/script/tsim/stable/alter_count.sim
浏览文件 @
3d4807fb
...
@@ -5,8 +5,8 @@ print ========= start dnode1 as master
...
@@ -5,8 +5,8 @@ print ========= start dnode1 as master
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sql connect
sql connect
print ======== step1
print ======== step1
sql create database d1 replica 1 duration 7 keep 50
sql create database d1 replica 1 duration 7 keep 50
sql use d1
sql use d1
sql create table tb (ts timestamp, a int)
sql create table tb (ts timestamp, a int)
sql insert into tb values(now-28d, -28)
sql insert into tb values(now-28d, -28)
...
@@ -83,7 +83,7 @@ if $data00 != 3 then
...
@@ -83,7 +83,7 @@ if $data00 != 3 then
endi
endi
print ======== step8
print ======== step8
# sql alter table tb(ts timestamp, a int, b smallint, c tinyint, d int, e bigint, f float, g double, h binary(10) )
# sql alter table tb(ts timestamp, a int, b smallint, c tinyint, d int, e bigint, f float, g double, h binary(10) )
sql alter table tb add column h binary(10)
sql alter table tb add column h binary(10)
sql insert into tb values(now-7d, -7, 18, 0, 0, 0, 0, 0, '0')
sql insert into tb values(now-7d, -7, 18, 0, 0, 0, 0, 0, '0')
sql insert into tb values(now-6d, -6, 19, 1, 1, 1, 1, 1, '1')
sql insert into tb values(now-6d, -6, 19, 1, 1, 1, 1, 1, '1')
...
@@ -260,4 +260,4 @@ if $data00 != 31 then
...
@@ -260,4 +260,4 @@ if $data00 != 31 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/alter_import.sim
浏览文件 @
3d4807fb
...
@@ -5,7 +5,7 @@ print ========= start dnode1 as master
...
@@ -5,7 +5,7 @@ print ========= start dnode1 as master
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sql connect
sql connect
print ======== step1
print ======== step1
sql create database d1 replica 1 duration 7 keep 50
sql create database d1 replica 1 duration 7 keep 50
sql use d1
sql use d1
sql create table tb (ts timestamp, a int)
sql create table tb (ts timestamp, a int)
...
@@ -42,4 +42,4 @@ if $data00 != 6 then
...
@@ -42,4 +42,4 @@ if $data00 != 6 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/alter_insert1.sim
浏览文件 @
3d4807fb
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sql connect
sql connect
print ======== step1
print ======== step1
sql create database d3
sql create database d3
sql use d3
sql use d3
sql create table tb (ts timestamp, a int)
sql create table tb (ts timestamp, a int)
...
@@ -1137,4 +1137,4 @@ if $data79 != null then
...
@@ -1137,4 +1137,4 @@ if $data79 != null then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/alter_insert2.sim
浏览文件 @
3d4807fb
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sql connect
sql connect
print ======== step1
print ======== step1
sql create database d4
sql create database d4
sql use d4
sql use d4
sql create table tb (ts timestamp, a int, b smallint, c tinyint, d int, e bigint, f float, g double, h binary(10))
sql create table tb (ts timestamp, a int, b smallint, c tinyint, d int, e bigint, f float, g double, h binary(10))
...
@@ -662,4 +662,4 @@ if $data62 != null then
...
@@ -662,4 +662,4 @@ if $data62 != null then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/alter_metrics.sim
浏览文件 @
3d4807fb
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sql connect
sql connect
print ======== step1
print ======== step1
sql create database d2
sql create database d2
sql use d2
sql use d2
sql create table mt (ts timestamp, a int) TAGS (t int)
sql create table mt (ts timestamp, a int) TAGS (t int)
...
@@ -757,8 +757,8 @@ endi
...
@@ -757,8 +757,8 @@ endi
print ======= over
print ======= over
sql drop database d2
sql drop database d2
sql select * from information_schema.ins_databases
sql select * from information_schema.ins_databases
if $rows != 2 then
if $rows != 2 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/column_add.sim
浏览文件 @
3d4807fb
...
@@ -116,7 +116,7 @@ if $data[0][1] != 1 then
...
@@ -116,7 +116,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != NULL then
if $data[0][3] != NULL then
return -1
return -1
endi
endi
...
@@ -153,7 +153,7 @@ if $data[0][1] != 1 then
...
@@ -153,7 +153,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != NULL then
if $data[0][3] != NULL then
return -1
return -1
endi
endi
...
@@ -299,4 +299,4 @@ if $rows != 10 then
...
@@ -299,4 +299,4 @@ if $rows != 10 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/column_modify.sim
浏览文件 @
3d4807fb
...
@@ -31,7 +31,7 @@ if $data[0][1] != 1 then
...
@@ -31,7 +31,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 1234 then
if $data[0][2] != 1234 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -92,7 +92,7 @@ if $data[0][1] != 1 then
...
@@ -92,7 +92,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 1234 then
if $data[0][2] != 1234 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -106,4 +106,4 @@ if $data[1][3] != 101 then
...
@@ -106,4 +106,4 @@ if $data[1][3] != 101 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/disk.sim
浏览文件 @
3d4807fb
...
@@ -188,4 +188,4 @@ if $rows != 2 then
...
@@ -188,4 +188,4 @@ if $rows != 2 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/refcount.sim
浏览文件 @
3d4807fb
...
@@ -123,4 +123,4 @@ if $rows != 2 then
...
@@ -123,4 +123,4 @@ if $rows != 2 then
endi
endi
print =============== step6
print =============== step6
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/tag_add.sim
浏览文件 @
3d4807fb
...
@@ -139,7 +139,7 @@ if $data[0][1] != 1 then
...
@@ -139,7 +139,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -170,7 +170,7 @@ if $data[0][1] != 1 then
...
@@ -170,7 +170,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -190,4 +190,4 @@ if $rows != 7 then
...
@@ -190,4 +190,4 @@ if $rows != 7 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/tag_drop.sim
浏览文件 @
3d4807fb
...
@@ -165,7 +165,7 @@ if $data[0][1] != 1 then
...
@@ -165,7 +165,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -196,7 +196,7 @@ if $data[0][1] != 1 then
...
@@ -196,7 +196,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != 201 then
if $data[0][3] != 201 then
return -1
return -1
endi
endi
...
@@ -229,7 +229,7 @@ if $data[0][1] != 1 then
...
@@ -229,7 +229,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != 201 then
if $data[0][3] != 201 then
return -1
return -1
endi
endi
...
@@ -261,7 +261,7 @@ if $data[0][1] != 1 then
...
@@ -261,7 +261,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != 301 then
if $data[0][3] != 301 then
return -1
return -1
endi
endi
...
@@ -323,7 +323,7 @@ if $data[0][1] != 1 then
...
@@ -323,7 +323,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 2 then
if $data[0][2] != 2 then
return -1
return -1
endi
endi
if $data[0][3] != 302 then
if $data[0][3] != 302 then
return -1
return -1
endi
endi
...
@@ -334,4 +334,4 @@ if $data[0][5] != 304 then
...
@@ -334,4 +334,4 @@ if $data[0][5] != 304 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/tag_filter.sim
浏览文件 @
3d4807fb
...
@@ -27,47 +27,47 @@ sql create table db.ctb6 using db.stb tags(6, "102")
...
@@ -27,47 +27,47 @@ sql create table db.ctb6 using db.stb tags(6, "102")
sql insert into db.ctb6 values(now, 6, "2")
sql insert into db.ctb6 values(now, 6, "2")
sql select * from db.stb where t1 = 1
sql select * from db.stb where t1 = 1
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
sql select * from db.stb where t1 < 1
sql select * from db.stb where t1 < 1
if $rows != 0 then
if $rows != 0 then
return -=1
return -=1
endi
endi
sql select * from db.stb where t1 < 2
sql select * from db.stb where t1 < 2
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
sql select * from db.stb where t1 <= 2
sql select * from db.stb where t1 <= 2
if $rows != 2 then
if $rows != 2 then
return -1
return -1
endi
endi
sql select * from db.stb where t1 >= 1
sql select * from db.stb where t1 >= 1
if $rows != 6 then
if $rows != 6 then
return -1
return -1
endi
endi
sql select * from db.stb where t1 > 1
sql select * from db.stb where t1 > 1
if $rows != 5 then
if $rows != 5 then
return -1
return -1
endi
endi
sql select * from db.stb where t1 between 1 and 1
sql select * from db.stb where t1 between 1 and 1
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
sql select * from db.stb where t1 between 1 and 6
sql select * from db.stb where t1 between 1 and 6
if $rows != 6 then
if $rows != 6 then
return -1
return -1
endi
endi
sql select * from db.stb where t1 between 1 and 7
sql select * from db.stb where t1 between 1 and 7
if $rows != 6 then
if $rows != 6 then
return -1
return -1
endi
endi
...
@@ -88,25 +88,25 @@ sql insert into db.ctbBin2 values(now, 3, "2")
...
@@ -88,25 +88,25 @@ sql insert into db.ctbBin2 values(now, 3, "2")
sql create table db.ctbBin3 using db.stbBin tags("d")
sql create table db.ctbBin3 using db.stbBin tags("d")
sql insert into db.ctbBin3 values(now, 4, "2")
sql insert into db.ctbBin3 values(now, 4, "2")
sql select * from db.stbBin where t1 = "a"
sql select * from db.stbBin where t1 = "a"
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
sql select * from db.stbBin where t1 < "a"
sql select * from db.stbBin where t1 < "a"
if $rows != 0 then
if $rows != 0 then
return -=1
return -=1
endi
endi
sql select * from db.stbBin where t1 < "b"
sql select * from db.stbBin where t1 < "b"
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
sql select * from db.stbBin where t1 between "a" and "e"
sql select * from db.stbBin where t1 between "a" and "e"
if $rows != 4 then
if $rows != 4 then
return -1
return -1
endi
endi
...
@@ -127,25 +127,25 @@ sql insert into db.ctbNc2 values(now, 3, "2")
...
@@ -127,25 +127,25 @@ sql insert into db.ctbNc2 values(now, 3, "2")
sql create table db.ctbNc3 using db.stbNc tags("d")
sql create table db.ctbNc3 using db.stbNc tags("d")
sql insert into db.ctbNc3 values(now, 4, "2")
sql insert into db.ctbNc3 values(now, 4, "2")
sql select * from db.stbNc where t1 = "a"
sql select * from db.stbNc where t1 = "a"
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
sql select * from db.stbNc where t1 < "a"
sql select * from db.stbNc where t1 < "a"
if $rows != 0 then
if $rows != 0 then
return -=1
return -=1
endi
endi
sql select * from db.stbNc where t1 < "b"
sql select * from db.stbNc where t1 < "b"
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
sql select * from db.stbNc where t1 between "a" and "e"
sql select * from db.stbNc where t1 between "a" and "e"
if $rows != 4 then
if $rows != 4 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
tests/script/tsim/stable/tag_modify.sim
浏览文件 @
3d4807fb
...
@@ -28,7 +28,7 @@ if $data[0][1] != 1 then
...
@@ -28,7 +28,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 1234 then
if $data[0][2] != 1234 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -55,7 +55,7 @@ if $data[0][1] != 1 then
...
@@ -55,7 +55,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 1234 then
if $data[0][2] != 1234 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -120,4 +120,4 @@ if $data[4][2] != 5 then
...
@@ -120,4 +120,4 @@ if $data[4][2] != 5 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/tsim/stable/tag_rename.sim
浏览文件 @
3d4807fb
...
@@ -28,7 +28,7 @@ if $data[0][1] != 1 then
...
@@ -28,7 +28,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 1234 then
if $data[0][2] != 1234 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -52,7 +52,7 @@ if $data[0][1] != 1 then
...
@@ -52,7 +52,7 @@ if $data[0][1] != 1 then
endi
endi
if $data[0][2] != 1234 then
if $data[0][2] != 1234 then
return -1
return -1
endi
endi
if $data[0][3] != 101 then
if $data[0][3] != 101 then
return -1
return -1
endi
endi
...
@@ -117,4 +117,4 @@ if $data[4][2] != 4 then
...
@@ -117,4 +117,4 @@ if $data[4][2] != 4 then
return -1
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录