提交 697ab1c7 编写于 作者: S Shengliang Guan

test: restore some cases

上级 590f7c4c
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
./test.sh -f tsim/qnode/basic1.sim ./test.sh -f tsim/qnode/basic1.sim
# ---- snode # ---- snode
# ./test.sh -f tsim/snode/basic1.sim # unsupport ./test.sh -f tsim/snode/basic1.sim
# ---- bnode # ---- bnode
./test.sh -f tsim/bnode/basic1.sim ./test.sh -f tsim/bnode/basic1.sim
...@@ -382,7 +382,7 @@ ...@@ -382,7 +382,7 @@
# ---- compute # ---- compute
./test.sh -f tsim/compute/avg.sim ./test.sh -f tsim/compute/avg.sim
# jira ./test.sh -f tsim/compute/block_dist.sim ./test.sh -f tsim/compute/block_dist.sim
./test.sh -f tsim/compute/bottom.sim ./test.sh -f tsim/compute/bottom.sim
./test.sh -f tsim/compute/count.sim ./test.sh -f tsim/compute/count.sim
./test.sh -f tsim/compute/diff.sim ./test.sh -f tsim/compute/diff.sim
......
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 debugflag -v 131
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
...@@ -80,11 +81,11 @@ $nt = $ntPrefix . $i ...@@ -80,11 +81,11 @@ $nt = $ntPrefix . $i
#sql select _block_dist() from $nt #sql select _block_dist() from $nt
print show table distributed $nt print show table distributed $nt
sql show table distributed $nt sql_error show table distributed $nt
if $rows == 0 then #if $rows == 0 then
return -1 # return -1
endi #endi
print ============== TD-5998 print ============== TD-5998
sql_error select _block_dist() from (select * from $nt) sql_error select _block_dist() from (select * from $nt)
......
...@@ -6,32 +6,32 @@ system sh/exec.sh -n dnode2 -s start ...@@ -6,32 +6,32 @@ system sh/exec.sh -n dnode2 -s start
sql connect sql connect
print =============== show dnodes print =============== show dnodes
sql show dnodes; sql create dnode $hostname port 7200
if $rows != 1 then
return -1
endi
if $data00 != 1 then
return -1
endi
sql show mnodes; $x = 0
if $rows != 1 then step1:
$x = $x + 1
sleep 1000
if $x == 10 then
print ====> dnode not ready!
return -1
endi
sql show dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
print ===> $data30 $data31 $data32 $data33 $data34 $data35
if $rows != 2 then
return -1 return -1
endi endi
if $data(1)[4] != ready then
if $data00 != 1 then goto step1
return -1
endi endi
if $data(2)[4] != ready then
if $data02 != leader then goto step1
return -1
endi endi
print =============== create dnodes print =============== show dnodes
sql create dnode $hostname port 7200
sleep 2000
sql show dnodes; sql show dnodes;
if $rows != 2 then if $rows != 2 then
return -1 return -1
...@@ -125,7 +125,6 @@ system sh/exec.sh -n dnode2 -s stop -x SIGINT ...@@ -125,7 +125,6 @@ system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start system sh/exec.sh -n dnode2 -s start
sleep 2000
sql show qnodes sql show qnodes
if $rows != 2 then if $rows != 2 then
return -1 return -1
......
...@@ -6,32 +6,32 @@ system sh/exec.sh -n dnode2 -s start ...@@ -6,32 +6,32 @@ system sh/exec.sh -n dnode2 -s start
sql connect sql connect
print =============== show dnodes print =============== show dnodes
sql show dnodes; sql create dnode $hostname port 7200
if $rows != 1 then
return -1
endi
if $data00 != 1 then $x = 0
step1:
$x = $x + 1
sleep 1000
if $x == 10 then
print ====> dnode not ready!
return -1
endi
sql show dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
print ===> $data30 $data31 $data32 $data33 $data34 $data35
if $rows != 2 then
return -1 return -1
endi endi
if $data(1)[4] != ready then
sql show mnodes; goto step1
if $rows != 1 then
return -1
endi endi
if $data(2)[4] != ready then
if $data00 != 1 then goto step1
return -1
endi
if $data02 != leader then
return -1
endi endi
print =============== create dnodes print =============== show dnodes
sql create dnode $hostname port 7200
sleep 2000
sql show dnodes; sql show dnodes;
if $rows != 2 then if $rows != 2 then
return -1 return -1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册