Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
9291b168
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看板
提交
9291b168
编写于
5月 07, 2020
作者:
S
slguan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scripts
上级
65a6770f
变更
39
隐藏空白更改
内联
并排
Showing
39 changed file
with
320 addition
and
208 deletion
+320
-208
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+33
-0
tests/script/unique/account/account_create.sim
tests/script/unique/account/account_create.sim
+1
-1
tests/script/unique/account/account_delete.sim
tests/script/unique/account/account_delete.sim
+3
-1
tests/script/unique/account/account_len.sim
tests/script/unique/account/account_len.sim
+2
-0
tests/script/unique/account/authority.sim
tests/script/unique/account/authority.sim
+2
-0
tests/script/unique/account/basic.sim
tests/script/unique/account/basic.sim
+1
-1
tests/script/unique/account/paras.sim
tests/script/unique/account/paras.sim
+2
-0
tests/script/unique/account/pass_alter.sim
tests/script/unique/account/pass_alter.sim
+2
-0
tests/script/unique/account/pass_len.sim
tests/script/unique/account/pass_len.sim
+1
-1
tests/script/unique/account/usage.sim
tests/script/unique/account/usage.sim
+3
-1
tests/script/unique/account/user_create.sim
tests/script/unique/account/user_create.sim
+1
-4
tests/script/unique/account/user_len.sim
tests/script/unique/account/user_len.sim
+2
-0
tests/script/unique/cluster/balance1.sim
tests/script/unique/cluster/balance1.sim
+9
-8
tests/script/unique/cluster/balance2.sim
tests/script/unique/cluster/balance2.sim
+11
-65
tests/script/unique/cluster/balance3.sim
tests/script/unique/cluster/balance3.sim
+39
-89
tests/script/unique/column/replica3.sim
tests/script/unique/column/replica3.sim
+8
-5
tests/script/unique/db/replica_add12.sim
tests/script/unique/db/replica_add12.sim
+10
-1
tests/script/unique/db/replica_add13.sim
tests/script/unique/db/replica_add13.sim
+10
-1
tests/script/unique/db/replica_add23.sim
tests/script/unique/db/replica_add23.sim
+10
-1
tests/script/unique/db/replica_part.sim
tests/script/unique/db/replica_part.sim
+9
-0
tests/script/unique/db/replica_reduce21.sim
tests/script/unique/db/replica_reduce21.sim
+9
-0
tests/script/unique/db/replica_reduce31.sim
tests/script/unique/db/replica_reduce31.sim
+9
-0
tests/script/unique/db/replica_reduce32.sim
tests/script/unique/db/replica_reduce32.sim
+9
-0
tests/script/unique/dnode/balance1.sim
tests/script/unique/dnode/balance1.sim
+9
-0
tests/script/unique/dnode/balance2.sim
tests/script/unique/dnode/balance2.sim
+9
-0
tests/script/unique/dnode/balance3.sim
tests/script/unique/dnode/balance3.sim
+8
-0
tests/script/unique/dnode/balancex.sim
tests/script/unique/dnode/balancex.sim
+8
-0
tests/script/unique/dnode/offline1.sim
tests/script/unique/dnode/offline1.sim
+8
-0
tests/script/unique/dnode/offline2.sim
tests/script/unique/dnode/offline2.sim
+8
-0
tests/script/unique/http/admin.sim
tests/script/unique/http/admin.sim
+10
-1
tests/script/unique/mnode/mgmt22.sim
tests/script/unique/mnode/mgmt22.sim
+8
-3
tests/script/unique/mnode/mgmt23.sim
tests/script/unique/mnode/mgmt23.sim
+8
-3
tests/script/unique/mnode/mgmt24.sim
tests/script/unique/mnode/mgmt24.sim
+8
-3
tests/script/unique/mnode/mgmt25.sim
tests/script/unique/mnode/mgmt25.sim
+8
-3
tests/script/unique/mnode/mgmt26.sim
tests/script/unique/mnode/mgmt26.sim
+8
-3
tests/script/unique/mnode/mgmt33.sim
tests/script/unique/mnode/mgmt33.sim
+8
-3
tests/script/unique/mnode/mgmt34.sim
tests/script/unique/mnode/mgmt34.sim
+8
-4
tests/script/unique/vnode/replica2_basic2.sim
tests/script/unique/vnode/replica2_basic2.sim
+10
-1
tests/script/unique/vnode/replica3_basic.sim
tests/script/unique/vnode/replica3_basic.sim
+8
-5
未找到文件。
tests/script/jenkins/basic.txt
浏览文件 @
9291b168
...
...
@@ -6,6 +6,39 @@ cd ../../../debug; cmake ..
#cd ../../../debug; make clean
cd ../../../debug; make
#general
./test.sh -f general/db/basic1.sim
./test.sh -f general/db/basic2.sim
./test.sh -f general/db/basic3.sim
./test.sh -f general/db/basic4.sim
./test.sh -f general/db/basic5.sim
./test.sh -f general/table/autocreate.sim
./test.sh -f general/table/basic1.sim
./test.sh -f general/table/basic2.sim
./test.sh -f general/table/basic3.sim
./test.sh -f general/table/bigint.sim
./test.sh -f general/table/bool.sim
./test.sh -f general/table/column_name.sim
./test.sh -f general/table/column_num.sim
./test.sh -f general/table/db.table.sim
./test.sh -f general/table/double.sim
./test.sh -f general/table/float.sim
./test.sh -f general/table/int.sim
./test.sh -f general/table/smallint.sim
./test.sh -f general/table/tinyint.sim
./test.sh -f general/user/basic1.sim
./test.sh -f general/user/pass_alter.sim
./test.sh -f general/user/pass_len.sim
./test.sh -f general/user/user_create.sim
./test.sh -f general/user/user_len.sim
# unique
./test.sh -u -f unique/account/account_create.sim
./test.sh -u -f unique/account/account_delete.sim
./test.sh -u -f unique/account/account_len.sim
...
...
tests/script/unique/account/account_create.sim
浏览文件 @
9291b168
...
...
@@ -76,4 +76,4 @@ if $rows != 1 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/account_delete.sim
浏览文件 @
9291b168
...
...
@@ -94,4 +94,6 @@ sql drop account oroot
sql show accounts
if $rows != 1 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/account_len.sim
浏览文件 @
9291b168
...
...
@@ -88,3 +88,5 @@ sql show users
if $rows != 3 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/authority.sim
浏览文件 @
9291b168
...
...
@@ -343,3 +343,5 @@ sql drop database d1
sql drop database d2
sql drop database d3
sql drop database d4
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/basic.sim
浏览文件 @
9291b168
...
...
@@ -42,4 +42,4 @@ endi
print $data00 $data01 $data02
print $data10 $data11 $data22
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/paras.sim
浏览文件 @
9291b168
...
...
@@ -109,3 +109,5 @@ endi
if $data16 != 0.000/10.000 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/pass_alter.sim
浏览文件 @
9291b168
...
...
@@ -112,3 +112,5 @@ sql alter user oroot pass 'taosdata'
sql drop account oroot
sql drop user read
sql drop user write
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/pass_len.sim
浏览文件 @
9291b168
...
...
@@ -78,4 +78,4 @@ if $rows != 3 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/usage.sim
浏览文件 @
9291b168
...
...
@@ -54,4 +54,6 @@ if $data05 != 0/10 then
endi
print =============== check grant
sql_error create database d6
\ No newline at end of file
sql_error create database d6
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/user_create.sim
浏览文件 @
9291b168
...
...
@@ -81,7 +81,4 @@ step42:
sql drop user read
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/account/user_len.sim
浏览文件 @
9291b168
...
...
@@ -89,3 +89,5 @@ sql show accounts
if $rows != 1 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/cluster/balance1.sim
浏览文件 @
9291b168
...
...
@@ -553,11 +553,12 @@ if $data41 != 85 then
return -1
endi
print ============================================ over
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
print ============================================ over=
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/cluster/balance2.sim
浏览文件 @
9291b168
...
...
@@ -386,91 +386,37 @@ endi
sql select * from c_b2_d2.c_b2_t2 order by t desc
print $data01 $data11 $data21 $data31 $data41
#if $data01 != 21 then
# return -1
#endi
#if $data11 != 22 then
# return -1
#endi
#if $data21 != 23 then
# return -1
#endi
#if $data31 != 24 then
# return -1
#endi
#if $data41 != 25 then
# return -1
#endi
sql select * from c_b2_d3.c_b2_t3 order by t desc
print $data01 $data11 $data21 $data31 $data41
if $data01 != 31 then
return -1
endi
if $data11 != 32 then
return -1
endi
if $data21 != 33 then
return -1
endi
if $data31 != 34 then
return -1
endi
if $data41 != 35 then
return -1
endi
sql select * from c_b2_d4.c_b2_t4 order by t desc
print $data01 $data11 $data21 $data31 $data41
if $data01 != 41 then
if $data01 != 21 then
return -1
endi
if $data11 !=
4
2 then
if $data11 !=
2
2 then
return -1
endi
if $data21 !=
4
3 then
if $data21 !=
2
3 then
return -1
endi
if $data31 !=
4
4 then
if $data31 !=
2
4 then
return -1
endi
if $data41 !=
4
5 then
if $data41 !=
2
5 then
return -1
endi
sql select * from c_b2_d5.c_b2_t5 order by t desc
print $data01 $data11 $data21 $data31 $data41
if $data01 != 51 then
return -1
endi
if $data11 != 52 then
return -1
endi
if $data21 != 53 then
return -1
endi
if $data31 != 54 then
return -1
endi
if $data41 != 55 then
return -1
endi
sql select * from c_b2_d6.c_b2_t6 order by t desc
sql select * from c_b2_d3.c_b2_t3 order by t desc
print $data01 $data11 $data21 $data31 $data41
if $data01 !=
6
1 then
if $data01 !=
3
1 then
return -1
endi
if $data11 !=
6
2 then
if $data11 !=
3
2 then
return -1
endi
if $data21 !=
6
3 then
if $data21 !=
3
3 then
return -1
endi
if $data31 !=
6
4 then
if $data31 !=
3
4 then
return -1
endi
if $data41 !=
6
5 then
if $data41 !=
3
5 then
return -1
endi
...
...
tests/script/unique/cluster/balance3.sim
浏览文件 @
9291b168
...
...
@@ -88,7 +88,7 @@ $x = 0
show1:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show1
...
...
@@ -101,13 +101,13 @@ print dnode3 $dnode3Vnodes
$dnode4Vnodes = $data2_4
print dnode4 $dnode4Vnodes
if $dnode1Vnodes !=
1
then
if $dnode1Vnodes !=
3
then
goto show1
endi
if $dnode2Vnodes !=
1
then
if $dnode2Vnodes !=
3
then
goto show1
endi
if $dnode3Vnodes !=
1
then
if $dnode3Vnodes !=
3
then
goto show1
endi
if $dnode4Vnodes != null then
...
...
@@ -124,7 +124,7 @@ $x = 0
show2:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show2
...
...
@@ -150,7 +150,7 @@ $x = 0
show3:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show3
...
...
@@ -163,16 +163,16 @@ print dnode3 $dnode3Vnodes
$dnode4Vnodes = $data2_4
print dnode4 $dnode4Vnodes
if $dnode1Vnodes !=
1
then
if $dnode1Vnodes !=
3
then
goto show3
endi
if $dnode2Vnodes != null then
goto show3
endi
if $dnode3Vnodes !=
1
then
if $dnode3Vnodes !=
3
then
goto show3
endi
if $dnode4Vnodes !=
1
then
if $dnode4Vnodes !=
3
then
goto show3
endi
...
...
@@ -187,7 +187,7 @@ $x = 0
show4:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show4
...
...
@@ -213,7 +213,7 @@ $x = 0
show5:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show5
...
...
@@ -226,16 +226,16 @@ print dnode3 $dnode3Vnodes
$dnode4Vnodes = $data2_4
print dnode4 $dnode4Vnodes
if $dnode1Vnodes !=
1
then
if $dnode1Vnodes !=
3
then
goto show5
endi
if $dnode5Vnodes !=
1
then
if $dnode5Vnodes !=
3
then
goto show5
endi
if $dnode3Vnodes != null then
goto show5
endi
if $dnode4Vnodes !=
1
then
if $dnode4Vnodes !=
3
then
goto show5
endi
...
...
@@ -250,7 +250,7 @@ $x = 0
show6:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show6
...
...
@@ -276,7 +276,7 @@ $x = 0
show7:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show7
...
...
@@ -289,13 +289,13 @@ print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
if $dnode1Vnodes !=
1
then
if $dnode1Vnodes !=
3
then
goto show7
endi
if $dnode5Vnodes !=
1
then
if $dnode5Vnodes !=
3
then
goto show7
endi
if $dnode6Vnodes !=
1
then
if $dnode6Vnodes !=
3
then
goto show7
endi
if $dnode4Vnodes != null then
...
...
@@ -313,7 +313,7 @@ $x = 0
show8:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show8
...
...
@@ -344,7 +344,7 @@ $x = 0
show9:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show9
...
...
@@ -355,42 +355,16 @@ print dnode6 $dnode6Vnodes
$dnode7Vnodes = $data2_7
print dnode7 $dnode7Vnodes
if $dnode5Vnodes !=
1
then
if $dnode5Vnodes !=
3
then
goto show9
endi
if $dnode6Vnodes !=
1
then
if $dnode6Vnodes !=
3
then
goto show9
endi
if $dnode7Vnodes !=
1
then
if $dnode7Vnodes !=
3
then
goto show9
endi
print ============================== step10
sql create dnode $hostname8
system sh/exec_up.sh -n dnode8 -s start
sleep 9000
$x = 0
show10:
$x = $x + 1
sleep 2000
if $x == 30 then
return -1
endi
sql show dnodes -x show10
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
$dnode7Vnodes = $data2_7
print dnode7 $dnode7Vnodes
$dnode8Vnodes = $data2_8
print dnode8 $dnode8Vnodes
if $dnode8Vnodes != 2 then
goto show10
endi
print ============================== step11
print ========= add db4
...
...
@@ -400,7 +374,7 @@ $x = 0
create4:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql create table c_b3_t4 (t timestamp, i int) -x create4
...
...
@@ -409,37 +383,32 @@ sql insert into c_b3_t4 values(1520000021044, 44)
sql insert into c_b3_t4 values(1520000022043, 43)
sql insert into c_b3_t4 values(1520000023042, 42)
sql insert into c_b3_t4 values(1520000024041, 41)
sleep 9000
sleep 3000
$x = 0
show11:
$x = $x + 1
sleep 2000
if $x ==
3
0 then
if $x ==
2
0 then
return -1
endi
sql show dnodes -x show11
$dnode1Vnodes = $data2_1
print dnode1 $dnode1Vnodes
$dnode2Vnodes = $data2_2
print dnode2 $dnode2Vnodes
$dnode3Vnodes = $data2_3
print dnode3 $dnode3Vnodes
$dnode4Vnodes = $data2_4
print dnode4 $dnode4Vnodes
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
$dnode7Vnodes = $data2_7
print dnode7 $dnode7Vnodes
if $dnode1Vnodes != 1 then
if $dnode5Vnodes != 4 then
goto show11
endi
if $dnode6Vnodes != 4 then
goto show11
endi
if $dnode
2Vnodes != 1
then
if $dnode
7Vnodes != 4
then
goto show11
endi
#if $dnode3Vnodes != 1 then
# goto show11
#endi
#if $dnode4Vnodes != 1 then
# goto show11
#endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
...
...
@@ -504,25 +473,6 @@ if $data41 != 35 then
return -1
endi
sql select * from c_b3_d4.c_b3_t4 order by t desc
print $data01 $data11 $data21 $data31 $data41
if $data01 != 41 then
return -1
endi
if $data11 != 42 then
return -1
endi
if $data21 != 43 then
return -1
endi
if $data31 != 44 then
return -1
endi
if $data41 != 45 then
return -1
endi
print ============================================ over
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
...
...
tests/script/unique/column/replica3.sim
浏览文件 @
9291b168
...
...
@@ -29,8 +29,11 @@ while $x < 1010
$x = $x + 1
endw
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/replica_add12.sim
浏览文件 @
9291b168
...
...
@@ -281,4 +281,13 @@ endi
sql select * from d4.t4
if $rows != 4 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/replica_add13.sim
浏览文件 @
9291b168
...
...
@@ -258,4 +258,13 @@ endi
sql select * from d4.t4
if $rows != 6 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/replica_add23.sim
浏览文件 @
9291b168
...
...
@@ -259,4 +259,13 @@ endi
sql select * from d4.t4
if $rows != 6 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/replica_part.sim
浏览文件 @
9291b168
...
...
@@ -145,3 +145,12 @@ sql select * from d1.t1
sql select * from d2.t2
sql select * from d3.t3
sql select * from d4.t4
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/replica_reduce21.sim
浏览文件 @
9291b168
...
...
@@ -144,3 +144,12 @@ sql select * from d4.t4
if $rows != 3 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/replica_reduce31.sim
浏览文件 @
9291b168
...
...
@@ -182,3 +182,12 @@ sql select * from d1.t1
sql select * from d2.t2
sql select * from d3.t3
sql select * from d4.t4
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/replica_reduce32.sim
浏览文件 @
9291b168
...
...
@@ -155,3 +155,12 @@ print d3.t3 $rows
sql select * from d4.t4
print d4.t4 $rows
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/balance1.sim
浏览文件 @
9291b168
...
...
@@ -327,3 +327,12 @@ endi
if $data41 != 45 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/balance2.sim
浏览文件 @
9291b168
...
...
@@ -268,3 +268,12 @@ endi
if $data41 != 35 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/balance3.sim
浏览文件 @
9291b168
...
...
@@ -298,3 +298,11 @@ if $data41 != 35 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/balancex.sim
浏览文件 @
9291b168
...
...
@@ -199,3 +199,11 @@ if $data41 != 35 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/offline1.sim
浏览文件 @
9291b168
...
...
@@ -67,3 +67,11 @@ if $data4_2 != null then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/offline2.sim
浏览文件 @
9291b168
...
...
@@ -106,3 +106,11 @@ if $rows != 1 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/http/admin.sim
浏览文件 @
9291b168
...
...
@@ -177,4 +177,13 @@ print =============== step8 - monitor dbs
#print 24-> $system_content
#if $system_content != @[{"status":"succ","head":["IP","created time","open vnodes","free vnodes","status","balance state"],"data":[["127.0.0.1","2018-09-04 #11:16:13.985",1,3,"ready","balanced"]],"rows":1},{"status":"succ","head":["IP","created time","status","role"],"data":[["127.0.0.1","2018-09-04 11:16:13.371","serving","master"]],"rows":1}]@ then
# return -1
# endi
\ No newline at end of file
# endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/mgmt22.sim
浏览文件 @
9291b168
...
...
@@ -104,6 +104,11 @@ if $data3_3 != null then
goto show7
endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/mgmt23.sim
浏览文件 @
9291b168
...
...
@@ -122,6 +122,11 @@ sql_error show mnodes
print ============== step7
sql_error drop dnode $hostname1
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/mgmt24.sim
浏览文件 @
9291b168
...
...
@@ -73,6 +73,11 @@ if $data2_2 != slave then
goto step5
endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/mgmt25.sim
浏览文件 @
9291b168
...
...
@@ -85,6 +85,11 @@ if $dnode3Role != slave then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/mgmt26.sim
浏览文件 @
9291b168
...
...
@@ -113,6 +113,11 @@ if $dnode3Role != slave then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/mgmt33.sim
浏览文件 @
9291b168
...
...
@@ -166,6 +166,11 @@ endi
# return -1
#endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/mgmt34.sim
浏览文件 @
9291b168
...
...
@@ -220,7 +220,11 @@ endi
# return -1
#endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
system sh/exec_up.sh -n dnode4 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/vnode/replica2_basic2.sim
浏览文件 @
9291b168
...
...
@@ -202,4 +202,13 @@ endi
sql select * from d4.t4
if $rows != 3 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/vnode/replica3_basic.sim
浏览文件 @
9291b168
...
...
@@ -149,8 +149,11 @@ if $rows != $expect then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录