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

test: restore some cases

上级 590f7c4c
......@@ -205,7 +205,7 @@
./test.sh -f tsim/qnode/basic1.sim
# ---- snode
# ./test.sh -f tsim/snode/basic1.sim
# unsupport ./test.sh -f tsim/snode/basic1.sim
# ---- bnode
./test.sh -f tsim/bnode/basic1.sim
......@@ -382,7 +382,7 @@
# ---- compute
./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/count.sim
./test.sh -f tsim/compute/diff.sim
......
system sh/stop_dnodes.sh
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
sql connect
......@@ -80,11 +81,11 @@ $nt = $ntPrefix . $i
#sql select _block_dist() from $nt
print show table distributed $nt
sql show table distributed $nt
sql_error show table distributed $nt
if $rows == 0 then
return -1
endi
#if $rows == 0 then
# return -1
#endi
print ============== TD-5998
sql_error select _block_dist() from (select * from $nt)
......
......@@ -6,32 +6,32 @@ system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
sql show dnodes;
if $rows != 1 then
return -1
endi
if $data00 != 1 then
return -1
endi
sql create dnode $hostname port 7200
sql show mnodes;
if $rows != 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
endi
if $data00 != 1 then
return -1
if $data(1)[4] != ready then
goto step1
endi
if $data02 != leader then
return -1
if $data(2)[4] != ready then
goto step1
endi
print =============== create dnodes
sql create dnode $hostname port 7200
sleep 2000
print =============== show dnodes
sql show dnodes;
if $rows != 2 then
return -1
......@@ -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 dnode2 -s start
sleep 2000
sql show qnodes
if $rows != 2 then
return -1
......
......@@ -6,32 +6,32 @@ system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
sql show dnodes;
if $rows != 1 then
return -1
endi
sql create dnode $hostname port 7200
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
endi
sql show mnodes;
if $rows != 1 then
return -1
if $data(1)[4] != ready then
goto step1
endi
if $data00 != 1 then
return -1
endi
if $data02 != leader then
return -1
if $data(2)[4] != ready then
goto step1
endi
print =============== create dnodes
sql create dnode $hostname port 7200
sleep 2000
print =============== show dnodes
sql show dnodes;
if $rows != 2 then
return -1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册