Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
26c5ac3e
TDengine
项目概览
taosdata
/
TDengine
接近 2 年 前同步成功
通知
1191
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看板
提交
26c5ac3e
编写于
7月 13, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: restore some 2.0 case
上级
2f7d6828
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
58 addition
and
172 deletion
+58
-172
tests/script/general/vector/testSuite.sim
tests/script/general/vector/testSuite.sim
+0
-11
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+13
-0
tests/script/tsim/vector/metrics_field.sim
tests/script/tsim/vector/metrics_field.sim
+4
-16
tests/script/tsim/vector/metrics_mix.sim
tests/script/tsim/vector/metrics_mix.sim
+4
-14
tests/script/tsim/vector/metrics_query.sim
tests/script/tsim/vector/metrics_query.sim
+4
-16
tests/script/tsim/vector/metrics_tag.sim
tests/script/tsim/vector/metrics_tag.sim
+4
-14
tests/script/tsim/vector/metrics_time.sim
tests/script/tsim/vector/metrics_time.sim
+4
-14
tests/script/tsim/vector/multi.sim
tests/script/tsim/vector/multi.sim
+6
-20
tests/script/tsim/vector/single.sim
tests/script/tsim/vector/single.sim
+3
-11
tests/script/tsim/vector/table_field.sim
tests/script/tsim/vector/table_field.sim
+4
-14
tests/script/tsim/vector/table_mix.sim
tests/script/tsim/vector/table_mix.sim
+4
-14
tests/script/tsim/vector/table_query.sim
tests/script/tsim/vector/table_query.sim
+4
-14
tests/script/tsim/vector/table_time.sim
tests/script/tsim/vector/table_time.sim
+4
-14
未找到文件。
tests/script/general/vector/testSuite.sim
已删除
100644 → 0
浏览文件 @
2f7d6828
run general/vector/metrics_field.sim
run general/vector/metrics_mix.sim
run general/vector/metrics_query.sim
run general/vector/metrics_tag.sim
run general/vector/metrics_time.sim
run general/vector/multi.sim
run general/vector/single.sim
run general/vector/table_field.sim
run general/vector/table_mix.sim
run general/vector/table_query.sim
run general/vector/table_time.sim
tests/script/jenkins/basic.txt
浏览文件 @
26c5ac3e
...
@@ -262,4 +262,17 @@
...
@@ -262,4 +262,17 @@
./test.sh -f tsim/field/tinyint.sim
./test.sh -f tsim/field/tinyint.sim
./test.sh -f tsim/field/unsigined_bigint.sim
./test.sh -f tsim/field/unsigined_bigint.sim
# ---- vector
./test.sh -f tsim/vector/metrics_field.sim
./test.sh -f tsim/vector/metrics_mix.sim
./test.sh -f tsim/vector/metrics_query.sim
./test.sh -f tsim/vector/metrics_tag.sim
./test.sh -f tsim/vector/metrics_time.sim
./test.sh -f tsim/vector/multi.sim
./test.sh -f tsim/vector/single.sim
./test.sh -f tsim/vector/table_field.sim
./test.sh -f tsim/vector/table_mix.sim
./test.sh -f tsim/vector/table_query.sim
./test.sh -f tsim/vector/table_time.sim
#======================b1-end===============
#======================b1-end===============
tests/script/
general
/vector/metrics_field.sim
→
tests/script/
tsim
/vector/metrics_field.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_mf_db
$dbPrefix = m_mf_db
...
@@ -99,17 +95,9 @@ if $data00 != 0.000000000 then
...
@@ -99,17 +95,9 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $mt where a = 5 -x step21
sql select g - f from $mt where a = 5
return -1
sql select h - f from $mt where a = 5
step21:
sql select ts - f from $mt where a = 5
sql select h - f from $mt where a = 5 -x step22
return -1
step22:
sql select ts - f from $mt where a = 5 -x step23
return -1
step23:
sql select a - e from $mt where a = 5
sql select a - e from $mt where a = 5
print ===> $data00
print ===> $data00
...
@@ -616,7 +604,7 @@ step63:
...
@@ -616,7 +604,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/metrics_mix.sim
→
tests/script/
tsim
/vector/metrics_mix.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_mx_db
$dbPrefix = m_mx_db
...
@@ -99,17 +95,11 @@ if $data00 != 0.000000000 then
...
@@ -99,17 +95,11 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m -x step21
sql select g - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
return -1
step21:
sql select h - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m -x step22
sql select h - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
return -1
step22:
sql select ts - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m -x step23
sql select ts - f from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
return -1
step23:
sql select a - e from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
sql select a - e from $mt where a = 5 and tgcol = 5 and ts > now + 4m and ts < now + 6m
print ===> $data00
print ===> $data00
...
@@ -616,7 +606,7 @@ step63:
...
@@ -616,7 +606,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/metrics_query.sim
→
tests/script/
tsim
/vector/metrics_query.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_mq_db
$dbPrefix = m_mq_db
...
@@ -95,17 +91,9 @@ if $data00 != 0.000000000 then
...
@@ -95,17 +91,9 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $mt -x step21
sql select g - f from $mt
return -1
sql select h - f from $mt
step21:
sql select ts - f from $mt
sql select h - f from $mt -x step22
return -1
step22:
sql select ts - f from $mt -x step23
return -1
step23:
sql select a - e from $mt
sql select a - e from $mt
print ===> $data00
print ===> $data00
...
@@ -612,7 +600,7 @@ step63:
...
@@ -612,7 +600,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/metrics_tag.sim
→
tests/script/
tsim
/vector/metrics_tag.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_mtg_db
$dbPrefix = m_mtg_db
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $mt where tgcol = 5 -x step21
sql select g - f from $mt where tgcol = 5
return -1
step21:
sql select h - f from $mt where tgcol = 5 -x step22
sql select h - f from $mt where tgcol = 5
return -1
step22:
sql select ts - f from $mt where tgcol = 5 -x step23
sql select ts - f from $mt where tgcol = 5
return -1
step23:
sql select a - e from $mt where tgcol = 5
sql select a - e from $mt where tgcol = 5
print ===> $data00
print ===> $data00
...
@@ -612,7 +602,7 @@ step63:
...
@@ -612,7 +602,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/metrics_time.sim
→
tests/script/
tsim
/vector/metrics_time.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_mt_db
$dbPrefix = m_mt_db
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m -x step21
sql select g - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
return -1
step21:
sql select h - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m -x step22
sql select h - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
return -1
step22:
sql select ts - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m -x step23
sql select ts - f from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
return -1
step23:
sql select a - e from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
sql select a - e from $mt where tgcol = 5 and ts > now + 4m and ts < now + 6m
print ===> $data00
print ===> $data00
...
@@ -612,7 +602,7 @@ step63:
...
@@ -612,7 +602,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/multi.sim
→
tests/script/
tsim
/vector/multi.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_mu_db
$dbPrefix = m_mu_db
...
@@ -71,9 +67,7 @@ sql select a + a from $tb where ts > now + 4m order by ts desc
...
@@ -71,9 +67,7 @@ sql select a + a from $tb where ts > now + 4m order by ts desc
sql select a + c from $tb where ts < now + 4m order by ts asc
sql select a + c from $tb where ts < now + 4m order by ts asc
sql select a + f from $tb where ts > now + 4m order by ts asc -x step24
sql select a + f from $tb where ts > now + 4m order by ts asc
return -1
step24:
print =============== step3
print =============== step3
$i = 1
$i = 1
...
@@ -150,17 +144,11 @@ endi
...
@@ -150,17 +144,11 @@ endi
print =============== step6
print =============== step6
$i = 1
$i = 1
$tb = $tbPrefix . $i
$tb = $tbPrefix . $i
sql select a + ts from $tb -x step61
sql select a + ts from $tb
return -1
step61:
sql select a + f from $tb -x step62
sql select a + f from $tb
return -1
step62:
sql select a + g from $tb -x step63
sql select a + g from $tb
return -1
step63:
print =============== step7
print =============== step7
$i = 1
$i = 1
...
@@ -202,14 +190,12 @@ sql select a + a from $tb where e = 2 and ts > now + 4m order by ts desc
...
@@ -202,14 +190,12 @@ sql select a + a from $tb where e = 2 and ts > now + 4m order by ts desc
sql select a + c from $tb where f = 2 and ts < now + 4m order by ts asc
sql select a + c from $tb where f = 2 and ts < now + 4m order by ts asc
sql select a + f from $tb where g = 2 and ts > now + 4m order by ts asc -x step74
sql select a + f from $tb where g = 2 and ts > now + 4m order by ts asc
return -1
step74:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/single.sim
→
tests/script/
tsim
/vector/single.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_si_db
$dbPrefix = m_si_db
...
@@ -150,9 +146,7 @@ $i = 11
...
@@ -150,9 +146,7 @@ $i = 11
$tb = $tbPrefix . $i
$tb = $tbPrefix . $i
sql create table $tb (ts timestamp, tbcol bool)
sql create table $tb (ts timestamp, tbcol bool)
sql insert into $tb values(now, 0)
sql insert into $tb values(now, 0)
sql select tbcol + 2 from $tb -x step6
sql select tbcol + 2 from $tb
return -1
step6:
print =============== step7
print =============== step7
$i = $i + 1
$i = $i + 1
...
@@ -289,14 +283,12 @@ $i = $i + 1
...
@@ -289,14 +283,12 @@ $i = $i + 1
$tb = $tbPrefix . $i
$tb = $tbPrefix . $i
sql create table $tb (ts timestamp, tbcol binary(100))
sql create table $tb (ts timestamp, tbcol binary(100))
sql insert into $tb values(now, '0');
sql insert into $tb values(now, '0');
sql select tbcol + 2 from $tb -x step12
sql select tbcol + 2 from $tb
return -1
step12:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/table_field.sim
→
tests/script/
tsim
/vector/table_field.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_tf_db
$dbPrefix = m_tf_db
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $tb where a = 5 -x step21
sql select g - f from $tb where a = 5
return -1
step21:
sql select h - f from $tb where a = 5 -x step22
sql select h - f from $tb where a = 5
return -1
step22:
sql select ts - f from $tb where a = 5 -x step23
sql select ts - f from $tb where a = 5
return -1
step23:
sql select a - e from $tb where a = 5
sql select a - e from $tb where a = 5
print ===> $data00
print ===> $data00
...
@@ -612,7 +602,7 @@ step63:
...
@@ -612,7 +602,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/table_mix.sim
→
tests/script/
tsim
/vector/table_mix.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_tm_db
$dbPrefix = m_tm_db
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m -x step21
sql select g - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m
return -1
step21:
sql select h - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m -x step22
sql select h - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m
return -1
step22:
sql select ts - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m -x step23
sql select ts - f from $tb where a = 5 and ts > now + 4m and ts < now + 6m
return -1
step23:
sql select a - e from $tb where a = 5 and ts > now + 4m and ts < now + 6m
sql select a - e from $tb where a = 5 and ts > now + 4m and ts < now + 6m
print ===> $data00
print ===> $data00
...
@@ -612,7 +602,7 @@ step63:
...
@@ -612,7 +602,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/table_query.sim
→
tests/script/
tsim
/vector/table_query.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_tq_db
$dbPrefix = m_tq_db
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $tb -x step21
sql select g - f from $tb
return -1
step21:
sql select h - f from $tb -x step22
sql select h - f from $tb
return -1
step22:
sql select ts - f from $tb -x step23
sql select ts - f from $tb
return -1
step23:
sql select a - e from $tb
sql select a - e from $tb
print ===> $data00
print ===> $data00
...
@@ -612,7 +602,7 @@ step63:
...
@@ -612,7 +602,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
tests/script/
general
/vector/table_time.sim
→
tests/script/
tsim
/vector/table_time.sim
浏览文件 @
26c5ac3e
system sh/stop_dnodes.sh
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
sql connect
$dbPrefix = m_tt_db
$dbPrefix = m_tt_db
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
...
@@ -95,17 +91,11 @@ if $data00 != 0.000000000 then
return -1
return -1
endi
endi
sql select g - f from $tb where ts > now + 4m and ts < now + 6m -x step21
sql select g - f from $tb where ts > now + 4m and ts < now + 6m
return -1
step21:
sql select h - f from $tb where ts > now + 4m and ts < now + 6m -x step22
sql select h - f from $tb where ts > now + 4m and ts < now + 6m
return -1
step22:
sql select ts - f from $tb where ts > now + 4m and ts < now + 6m -x step23
sql select ts - f from $tb where ts > now + 4m and ts < now + 6m
return -1
step23:
sql select a - e from $tb where ts > now + 4m and ts < now + 6m
sql select a - e from $tb where ts > now + 4m and ts < now + 6m
print ===> $data00
print ===> $data00
...
@@ -612,7 +602,7 @@ step63:
...
@@ -612,7 +602,7 @@ step63:
print =============== clear
print =============== clear
sql drop database $db
sql drop database $db
sql show databases
sql show databases
if $rows !=
0
then
if $rows !=
2
then
return -1
return -1
endi
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录