Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
6cb98728
T
TDengine
项目概览
慢慢CG
/
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看板
提交
6cb98728
编写于
5月 20, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scripts
上级
d0da289f
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
55 addition
and
55 deletion
+55
-55
tests/script/general/import/replica1.sim
tests/script/general/import/replica1.sim
+6
-6
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+9
-9
tests/script/unique/db/replica_add23.sim
tests/script/unique/db/replica_add23.sim
+24
-24
tests/script/unique/dnode/offline2.sim
tests/script/unique/dnode/offline2.sim
+1
-1
tests/script/unique/dnode/remove2.sim
tests/script/unique/dnode/remove2.sim
+15
-15
未找到文件。
tests/script/general/import/replica1.sim
浏览文件 @
6cb98728
...
@@ -123,7 +123,7 @@ sql insert into tb values(1520000025002, 25002)
...
@@ -123,7 +123,7 @@ sql insert into tb values(1520000025002, 25002)
sql insert into tb values(1520000060000, 60000)
sql insert into tb values(1520000060000, 60000)
sql select * from tb;
sql select * from tb;
print $rows
print $rows
if $rows != 2
4
then
if $rows != 2
3
then
return -1
return -1
endi
endi
...
@@ -156,7 +156,7 @@ sql import into tb values(1523110400000, 50001)
...
@@ -156,7 +156,7 @@ sql import into tb values(1523110400000, 50001)
sql import into tb values(1521382400000, 500051)
sql import into tb values(1521382400000, 500051)
sql select * from tb;
sql select * from tb;
print $rows
print $rows
if $rows != 3
6
then
if $rows != 3
5
then
return -1
return -1
endi
endi
...
@@ -169,7 +169,7 @@ sleep 5000
...
@@ -169,7 +169,7 @@ sleep 5000
sql use ir1db
sql use ir1db
sql select * from tb;
sql select * from tb;
print $rows
print $rows
if $rows != 3
6
then
if $rows != 3
5
then
return -1
return -1
endi
endi
...
@@ -178,7 +178,7 @@ print ================= step11
...
@@ -178,7 +178,7 @@ print ================= step11
#sql import into tb values(now-50d, 7003) (now-48d, 7003) (now-46d, 7003) (now-44d, 7003) (now-42d, 7003)
#sql import into tb values(now-50d, 7003) (now-48d, 7003) (now-46d, 7003) (now-44d, 7003) (now-42d, 7003)
sql import into tb values(1515680000000, 7003) (1515852800000, 7003) (1516025600000, 7003) (1516198400000, 7003) (1516371200000, 7003)
sql import into tb values(1515680000000, 7003) (1515852800000, 7003) (1516025600000, 7003) (1516198400000, 7003) (1516371200000, 7003)
sql select * from tb;
sql select * from tb;
if $rows != 4
1
then
if $rows != 4
0
then
return -1
return -1
endi
endi
...
@@ -188,7 +188,7 @@ print ================= step12
...
@@ -188,7 +188,7 @@ print ================= step12
sql import into tb values(1518358400000, 7003) (1518444800000, 7003) (1518531200000, 7003) (1518617600000, 7003) (1518704000000, 7003) (1518790400000, 7003) (1518876800000, 7003) (1518963200000, 7003) (1519049600000, 7003)
sql import into tb values(1518358400000, 7003) (1518444800000, 7003) (1518531200000, 7003) (1518617600000, 7003) (1518704000000, 7003) (1518790400000, 7003) (1518876800000, 7003) (1518963200000, 7003) (1519049600000, 7003)
sql select * from tb;
sql select * from tb;
print $rows
print $rows
if $rows !=
50
then
if $rows !=
49
then
return -1
return -1
endi
endi
...
@@ -204,7 +204,7 @@ sql import into tb values(1516716800000, 50001)
...
@@ -204,7 +204,7 @@ sql import into tb values(1516716800000, 50001)
sql import into tb values(1517580800000, 50001)
sql import into tb values(1517580800000, 50001)
sql select * from tb;
sql select * from tb;
if $rows != 5
0
then
if $rows != 5
2
then
return -1
return -1
endi
endi
...
...
tests/script/jenkins/basic.txt
浏览文件 @
6cb98728
...
@@ -32,7 +32,7 @@ cd ../../../debug; make
...
@@ -32,7 +32,7 @@ cd ../../../debug; make
./test.sh -f general/compute/diff.sim
./test.sh -f general/compute/diff.sim
./test.sh -f general/compute/diff2.sim
./test.sh -f general/compute/diff2.sim
./test.sh -f general/compute/first.sim
./test.sh -f general/compute/first.sim
# liao
./test.sh -f general/compute/interval.sim
./test.sh -f general/compute/interval.sim
./test.sh -f general/compute/last.sim
./test.sh -f general/compute/last.sim
./test.sh -f general/compute/leastsquare.sim
./test.sh -f general/compute/leastsquare.sim
./test.sh -f general/compute/max.sim
./test.sh -f general/compute/max.sim
...
@@ -53,7 +53,7 @@ cd ../../../debug; make
...
@@ -53,7 +53,7 @@ cd ../../../debug; make
./test.sh -f general/db/delete_reuse1.sim
./test.sh -f general/db/delete_reuse1.sim
./test.sh -f general/db/delete_reuse2.sim
./test.sh -f general/db/delete_reuse2.sim
./test.sh -f general/db/delete_reusevnode.sim
./test.sh -f general/db/delete_reusevnode.sim
#hongze
./test.sh -f general/db/delete_reusevnode2.sim
./test.sh -f general/db/delete_reusevnode2.sim
./test.sh -f general/db/delete_writing1.sim
./test.sh -f general/db/delete_writing1.sim
./test.sh -f general/db/delete_writing2.sim
./test.sh -f general/db/delete_writing2.sim
./test.sh -f general/db/delete.sim
./test.sh -f general/db/delete.sim
...
@@ -103,9 +103,9 @@ cd ../../../debug; make
...
@@ -103,9 +103,9 @@ cd ../../../debug; make
#unsupport ./test.sh -f general/parser/alter_stable.sim
#unsupport ./test.sh -f general/parser/alter_stable.sim
./test.sh -f general/parser/auto_create_tb.sim
./test.sh -f general/parser/auto_create_tb.sim
./test.sh -f general/parser/auto_create_tb_drop_tb.sim
./test.sh -f general/parser/auto_create_tb_drop_tb.sim
./test.sh -f general/parser/col_arithmetic_operation.sim
#liao
./test.sh -f general/parser/col_arithmetic_operation.sim
./test.sh -f general/parser/columnValue.sim
./test.sh -f general/parser/columnValue.sim
./test.sh -f general/parser/commit.sim
#liao
./test.sh -f general/parser/commit.sim
# ./test.sh -f general/parser/create_db.sim
# ./test.sh -f general/parser/create_db.sim
# ./test.sh -f general/parser/create_mt.sim
# ./test.sh -f general/parser/create_mt.sim
# ./test.sh -f general/parser/create_tb.sim
# ./test.sh -f general/parser/create_tb.sim
...
@@ -130,7 +130,7 @@ cd ../../../debug; make
...
@@ -130,7 +130,7 @@ cd ../../../debug; make
# ./test.sh -f general/parser/limit1_tblocks100.sim
# ./test.sh -f general/parser/limit1_tblocks100.sim
# ./test.sh -f general/parser/limit2.sim
# ./test.sh -f general/parser/limit2.sim
# ./test.sh -f general/parser/mixed_blocks.sim
# ./test.sh -f general/parser/mixed_blocks.sim
#
./test.sh -f general/parser/selectResNum.sim
./test.sh -f general/parser/selectResNum.sim
# ./test.sh -f general/parser/select_across_vnodes.sim
# ./test.sh -f general/parser/select_across_vnodes.sim
# ./test.sh -f general/parser/set_tag_vals.sim
# ./test.sh -f general/parser/set_tag_vals.sim
# ./test.sh -f general/parser/slimit.sim
# ./test.sh -f general/parser/slimit.sim
...
@@ -171,7 +171,7 @@ cd ../../../debug; make
...
@@ -171,7 +171,7 @@ cd ../../../debug; make
./test.sh -f general/table/db.table.sim
./test.sh -f general/table/db.table.sim
./test.sh -f general/table/delete_reuse1.sim
./test.sh -f general/table/delete_reuse1.sim
./test.sh -f general/table/delete_reuse2.sim
./test.sh -f general/table/delete_reuse2.sim
#
hongze
./test.sh -f general/table/delete_writing.sim
#
liao
./test.sh -f general/table/delete_writing.sim
./test.sh -f general/table/describe.sim
./test.sh -f general/table/describe.sim
./test.sh -f general/table/double.sim
./test.sh -f general/table/double.sim
./test.sh -f general/table/fill.sim
./test.sh -f general/table/fill.sim
...
@@ -253,12 +253,12 @@ cd ../../../debug; make
...
@@ -253,12 +253,12 @@ cd ../../../debug; make
./test.sh -u -f unique/column/replica3.sim
./test.sh -u -f unique/column/replica3.sim
#liao wait
./test.sh -u -f unique/db/commit.sim
./test.sh -u -f unique/db/commit.sim
./test.sh -u -f unique/db/delete.sim
./test.sh -u -f unique/db/delete.sim
./test.sh -u -f unique/db/delete_part.sim
./test.sh -u -f unique/db/delete_part.sim
./test.sh -u -f unique/db/replica_add12.sim
./test.sh -u -f unique/db/replica_add12.sim
./test.sh -u -f unique/db/replica_add13.sim
./test.sh -u -f unique/db/replica_add13.sim
#hongze wait
./test.sh -u -f unique/db/replica_add23.sim
./test.sh -u -f unique/db/replica_add23.sim
./test.sh -u -f unique/db/replica_reduce21.sim
./test.sh -u -f unique/db/replica_reduce21.sim
./test.sh -u -f unique/db/replica_reduce32.sim
./test.sh -u -f unique/db/replica_reduce32.sim
./test.sh -u -f unique/db/replica_reduce31.sim
./test.sh -u -f unique/db/replica_reduce31.sim
...
@@ -269,7 +269,7 @@ cd ../../../debug; make
...
@@ -269,7 +269,7 @@ cd ../../../debug; make
./test.sh -u -f unique/dnode/balance3.sim
./test.sh -u -f unique/dnode/balance3.sim
./test.sh -u -f unique/dnode/balancex.sim
./test.sh -u -f unique/dnode/balancex.sim
./test.sh -u -f unique/dnode/offline1.sim
./test.sh -u -f unique/dnode/offline1.sim
#
hongze wait
./test.sh -u -f unique/dnode/offline2.sim
#
jeff
./test.sh -u -f unique/dnode/offline2.sim
./test.sh -u -f unique/dnode/remove1.sim
./test.sh -u -f unique/dnode/remove1.sim
#hongze ./test.sh -u -f unique/dnode/remove2.sim
#hongze ./test.sh -u -f unique/dnode/remove2.sim
./test.sh -u -f unique/dnode/vnode_clean.sim
./test.sh -u -f unique/dnode/vnode_clean.sim
...
...
tests/script/unique/db/replica_add23.sim
浏览文件 @
6cb98728
...
@@ -47,10 +47,10 @@ sql create table d2.t2 (ts timestamp, i int)
...
@@ -47,10 +47,10 @@ sql create table d2.t2 (ts timestamp, i int)
sql create table d3.t3 (ts timestamp, i int)
sql create table d3.t3 (ts timestamp, i int)
sql create table d4.t4 (ts timestamp, i int)
sql create table d4.t4 (ts timestamp, i int)
sql insert into d1.t1 values(
now
, 1)
sql insert into d1.t1 values(
1588262400001
, 1)
sql insert into d2.t2 values(
now
, 1)
sql insert into d2.t2 values(
1588262400001
, 1)
sql insert into d3.t3 values(
now
, 1)
sql insert into d3.t3 values(
1588262400001
, 1)
sql insert into d4.t4 values(
now
, 1)
sql insert into d4.t4 values(
1588262400001
, 1)
sql select * from d1.t1
sql select * from d1.t1
if $rows != 1 then
if $rows != 1 then
...
@@ -111,10 +111,10 @@ if $data2_3 != 4 then
...
@@ -111,10 +111,10 @@ if $data2_3 != 4 then
endi
endi
print ======== step4
print ======== step4
sql insert into d1.t1 values(
now
, 2)
sql insert into d1.t1 values(
1588262400002
, 2)
sql insert into d2.t2 values(
now
, 2)
sql insert into d2.t2 values(
1588262400002
, 2)
sql insert into d3.t3 values(
now
, 2)
sql insert into d3.t3 values(
1588262400002
, 2)
sql insert into d4.t4 values(
now
, 2)
sql insert into d4.t4 values(
1588262400002
, 2)
sql select * from d1.t1
sql select * from d1.t1
if $rows != 2 then
if $rows != 2 then
...
@@ -143,10 +143,10 @@ print ========= step5
...
@@ -143,10 +143,10 @@ print ========= step5
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
sleep 5000
sleep 5000
sql insert into d1.t1 values(
now
, 3)
sql insert into d1.t1 values(
1588262400003
, 3)
sql insert into d2.t2 values(
now
, 3)
sql insert into d2.t2 values(
1588262400003
, 3)
sql insert into d3.t3 values(
now
, 3)
sql insert into d3.t3 values(
1588262400003
, 3)
sql insert into d4.t4 values(
now
, 3)
sql insert into d4.t4 values(
1588262400003
, 3)
sql select * from d1.t1
sql select * from d1.t1
if $rows != 3 then
if $rows != 3 then
...
@@ -174,10 +174,10 @@ sleep 5000
...
@@ -174,10 +174,10 @@ sleep 5000
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
sleep 5000
sleep 5000
sql insert into d1.t1 values(
now
, 4)
sql insert into d1.t1 values(
1588262400004
, 4)
sql insert into d2.t2 values(
now
, 4)
sql insert into d2.t2 values(
1588262400004
, 4)
sql insert into d3.t3 values(
now
, 4)
sql insert into d3.t3 values(
1588262400004
, 4)
sql insert into d4.t4 values(
now
, 4)
sql insert into d4.t4 values(
1588262400004
, 4)
sql select * from d1.t1
sql select * from d1.t1
if $rows != 4 then
if $rows != 4 then
...
@@ -205,10 +205,10 @@ sleep 5000
...
@@ -205,10 +205,10 @@ sleep 5000
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
sleep 5000
sleep 5000
sql insert into d1.t1 values(
now
, 5)
sql insert into d1.t1 values(
1588262400005
, 5)
sql insert into d2.t2 values(
now
, 5)
sql insert into d2.t2 values(
1588262400005
, 5)
sql insert into d3.t3 values(
now
, 5)
sql insert into d3.t3 values(
1588262400005
, 5)
sql insert into d4.t4 values(
now
, 5)
sql insert into d4.t4 values(
1588262400005
, 5)
sql select * from d1.t1
sql select * from d1.t1
if $rows != 5 then
if $rows != 5 then
...
@@ -236,10 +236,10 @@ sleep 5000
...
@@ -236,10 +236,10 @@ sleep 5000
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
sleep 5000
sleep 5000
sql insert into d1.t1 values(
now
, 6)
sql insert into d1.t1 values(
1588262400006
, 6)
sql insert into d2.t2 values(
now
, 6)
sql insert into d2.t2 values(
1588262400006
, 6)
sql insert into d3.t3 values(
now
, 6)
sql insert into d3.t3 values(
1588262400006
, 6)
sql insert into d4.t4 values(
now
, 6)
sql insert into d4.t4 values(
1588262400006
, 6)
sql select * from d1.t1
sql select * from d1.t1
if $rows != 6 then
if $rows != 6 then
...
...
tests/script/unique/dnode/offline2.sim
浏览文件 @
6cb98728
...
@@ -29,7 +29,7 @@ sleep 3000
...
@@ -29,7 +29,7 @@ sleep 3000
sql create database d1 replica 2 maxTables 4
sql create database d1 replica 2 maxTables 4
sql create table d1.t1(ts timestamp, i int)
sql create table d1.t1(ts timestamp, i int)
sql insert into d1.t1 values(
now
, 1)
sql insert into d1.t1 values(
1588262400001
, 1)
sql show dnodes
sql show dnodes
print dnode1 $data4_1
print dnode1 $data4_1
...
...
tests/script/unique/dnode/remove2.sim
浏览文件 @
6cb98728
...
@@ -22,19 +22,19 @@ sql connect
...
@@ -22,19 +22,19 @@ sql connect
sql create database d1 maxTables 4
sql create database d1 maxTables 4
sql create table d1.t1 (t timestamp, i int)
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(
now+1s
, 15)
sql insert into d1.t1 values(
1588262400001
, 15)
sql insert into d1.t1 values(
now+2s
, 14)
sql insert into d1.t1 values(
1588262400002
, 14)
sql insert into d1.t1 values(
now+3s
, 13)
sql insert into d1.t1 values(
1588262400003
, 13)
sql insert into d1.t1 values(
now+4s
, 12)
sql insert into d1.t1 values(
1588262400004
, 12)
sql insert into d1.t1 values(
now+5s
, 11)
sql insert into d1.t1 values(
1588262400005
, 11)
sql create database d2 maxTables 4
sql create database d2 maxTables 4
sql create table d2.t2 (t timestamp, i int)
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(
now+1s
, 25)
sql insert into d2.t2 values(
1588262400001
, 25)
sql insert into d2.t2 values(
now+2s
, 24)
sql insert into d2.t2 values(
1588262400002
, 24)
sql insert into d2.t2 values(
now+3s
, 23)
sql insert into d2.t2 values(
1588262400003
, 23)
sql insert into d2.t2 values(
now+4s
, 22)
sql insert into d2.t2 values(
1588262400004
, 22)
sql insert into d2.t2 values(
now+5s
, 21)
sql insert into d2.t2 values(
1588262400005
, 21)
sql show dnodes
sql show dnodes
print dnode1 openVnodes $data2_1
print dnode1 openVnodes $data2_1
...
@@ -49,11 +49,11 @@ sleep 9000
...
@@ -49,11 +49,11 @@ sleep 9000
sql create database d3 replica 2 maxTables 4
sql create database d3 replica 2 maxTables 4
sql create table d3.t3 (t timestamp, i int)
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(
now+1s
, 35)
sql insert into d3.t3 values(
1588262400001
, 35)
sql insert into d3.t3 values(
now+2s
, 34)
sql insert into d3.t3 values(
1588262400002
, 34)
sql insert into d3.t3 values(
now+3s
, 33)
sql insert into d3.t3 values(
1588262400003
, 33)
sql insert into d3.t3 values(
now+4s
, 32)
sql insert into d3.t3 values(
1588262400004
, 32)
sql insert into d3.t3 values(
now+5s
, 31)
sql insert into d3.t3 values(
1588262400005
, 31)
$x = 0
$x = 0
show2:
show2:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录