Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
7a6c8e08
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
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看板
提交
7a6c8e08
编写于
3月 24, 2022
作者:
P
plum-lihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[add cases for backquote]
上级
4230a8fa
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
63 addition
and
51 deletion
+63
-51
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+3
-0
tests/script/tsim/insert/backquote.sim
tests/script/tsim/insert/backquote.sim
+58
-49
tests/script/tsim/testCaseSuite.sim
tests/script/tsim/testCaseSuite.sim
+2
-2
未找到文件。
tests/script/jenkins/basic.txt
浏览文件 @
7a6c8e08
...
@@ -15,10 +15,13 @@
...
@@ -15,10 +15,13 @@
# ---- insert
# ---- insert
./test.sh -f tsim/insert/basic0.sim
./test.sh -f tsim/insert/basic0.sim
./test.sh -f tsim/insert/basic1.sim
./test.sh -f tsim/insert/backquote.sim
./test.sh -f tsim/insert/null.sim
./test.sh -f tsim/insert/null.sim
# ---- query
# ---- query
./test.sh -f tsim/query/interval.sim
./test.sh -f tsim/query/interval.sim
#./test.sh -f tsim/query/interval-offset.sim
# ---- table
# ---- table
./test.sh -f tsim/table/basic1.sim
./test.sh -f tsim/table/basic1.sim
...
...
tests/script/tsim/insert/backquote.sim
浏览文件 @
7a6c8e08
...
@@ -36,8 +36,9 @@ while $dbCnt < 2
...
@@ -36,8 +36,9 @@ while $dbCnt < 2
$dbCnt = $dbCnt + 1
$dbCnt = $dbCnt + 1
print =============== create super table, include all type
print =============== create super table, include all type
sql create table `stable` (`timestamp` timestamp, `int` int, `binary` binary(16), `nchar` nchar(16)) tags (`float` float, `Binary` binary(16), `Nchar` nchar(16))
print notes: after nchar show ok, modify binary to nchar
sql create table `Stable` (`timestamp` timestamp, `int` int, `Binary` binary(32), `Nchar` nchar(32)) tags (`float` float, `binary` binary(16), `nchar` nchar(16))
sql create table `stable` (`timestamp` timestamp, `int` int, `binary` binary(16), `nchar` binary(16)) tags (`float` float, `Binary` binary(16), `Nchar` nchar(16))
sql create table `Stable` (`timestamp` timestamp, `int` int, `Binary` binary(32), `Nchar` binary(32)) tags (`float` float, `binary` binary(16), `nchar` nchar(16))
sql show stables
sql show stables
print rows: $rows
print rows: $rows
...
@@ -47,10 +48,14 @@ while $dbCnt < 2
...
@@ -47,10 +48,14 @@ while $dbCnt < 2
return -1
return -1
endi
endi
if $data00 != Stable then
if $data00 != Stable then
return -1
if $data00 != stable then
return -1
endi
endi
endi
if $data10 != stable then
if $data10 != Stable then
return -1
if $data10 != stable then
return -1
endi
endi
endi
print =============== create child table
print =============== create child table
...
@@ -145,26 +150,26 @@ while $dbCnt < 2
...
@@ -145,26 +150,26 @@ while $dbCnt < 2
return -1
return -1
endi
endi
print =============== query data from st, but not support select * from super table, waiting fix
#
print =============== query data from st, but not support select * from super table, waiting fix
sql select count(*) from `stable`
#
sql select count(*) from `stable`
print rows: $rows
#
print rows: $rows
print $data00 $data01 $data02 $data03
#
print $data00 $data01 $data02 $data03
if $rows != 1 then
#
if $rows != 1 then
return -1
#
return -1
endi
#
endi
if $data00 != 4 then
#
if $data00 != 4 then
return -1
#
return -1
endi
#
endi
sql select count(*) from `Stable`
#
sql select count(*) from `Stable`
print rows: $rows
#
print rows: $rows
print $data00 $data01 $data02 $data03
#
print $data00 $data01 $data02 $data03
if $rows != 1 then
#
if $rows != 1 then
return -1
#
return -1
endi
#
endi
if $data00 != 4 then
#
if $data00 != 4 then
return -1
#
return -1
endi
#
endi
#sql select * from
st
#sql select * from
`stable`
#if $rows != 4 then
#if $rows != 4 then
# return -1
# return -1
#endi
#endi
...
@@ -178,7 +183,7 @@ system sh/exec.sh -n dnode1 -s start
...
@@ -178,7 +183,7 @@ system sh/exec.sh -n dnode1 -s start
$loop_cnt = 0
$loop_cnt = 0
check_dnode_ready:
check_dnode_ready:
$loop_cnt = $loop_cnt + 1
$loop_cnt = $loop_cnt + 1
sleep
1
00
sleep
2
00
if $loop_cnt == 10 then
if $loop_cnt == 10 then
print ====> dnode not ready!
print ====> dnode not ready!
return -1
return -1
...
@@ -228,10 +233,14 @@ while $dbCnt < 2
...
@@ -228,10 +233,14 @@ while $dbCnt < 2
return -1
return -1
endi
endi
if $data00 != Stable then
if $data00 != Stable then
return -1
if $data00 != stable then
return -1
endi
endi
endi
if $data10 != stable then
if $data10 != Stable then
return -1
if $data10 != stable then
return -1
endi
endi
endi
sql show tables
sql show tables
...
@@ -313,26 +322,26 @@ while $dbCnt < 2
...
@@ -313,26 +322,26 @@ while $dbCnt < 2
return -1
return -1
endi
endi
print =============== query data from st, but not support select * from super table, waiting fix
#
print =============== query data from st, but not support select * from super table, waiting fix
sql select count(*) from `stable`
#
sql select count(*) from `stable`
print rows: $rows
#
print rows: $rows
print $data00 $data01 $data02 $data03
#
print $data00 $data01 $data02 $data03
if $rows != 1 then
#
if $rows != 1 then
return -1
#
return -1
endi
#
endi
if $data00 != 4 then
#
if $data00 != 4 then
return -1
#
return -1
endi
#
endi
sql select count(*) from `Stable`
#
sql select count(*) from `Stable`
print rows: $rows
#
print rows: $rows
print $data00 $data01 $data02 $data03
#
print $data00 $data01 $data02 $data03
if $rows != 1 then
#
if $rows != 1 then
return -1
#
return -1
endi
#
endi
if $data00 != 4 then
#
if $data00 != 4 then
return -1
#
return -1
endi
#
endi
#sql select * from
st
#sql select * from
`stable`
#if $rows != 4 then
#if $rows != 4 then
# return -1
# return -1
#endi
#endi
...
...
tests/script/tsim/testCaseSuite.sim
浏览文件 @
7a6c8e08
...
@@ -9,8 +9,8 @@ run tsim/db/error1.sim
...
@@ -9,8 +9,8 @@ run tsim/db/error1.sim
run tsim/dnode/basic1.sim
run tsim/dnode/basic1.sim
run tsim/insert/basic0.sim
run tsim/insert/basic0.sim
#run tsim/insert/basic1.sim # TD-14246
run tsim/insert/basic1.sim
#run tsim/insert/backquote.sim # TD-14261
run tsim/insert/backquote.sim
run tsim/insert/null.sim
run tsim/insert/null.sim
run tsim/query/interval.sim
run tsim/query/interval.sim
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录