提交 9237014e 编写于 作者: S Shengliang Guan

test: restore some 2.0 cases

上级 a07b770b
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/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 100
sql connect sql connect
print ======================== dnode1 start print ======================== dnode1 start
$dbPrefix = ac_db $dbPrefix = ac_db
...@@ -153,36 +150,37 @@ print $rows $data00 $data10 $data20 ...@@ -153,36 +150,37 @@ print $rows $data00 $data10 $data20
if $rows != 3 then if $rows != 3 then
return -1 return -1
endi endi
if $data00 != tb1 then if $data(tb1)[0] != tb1 then
return -1 return -1
endi endi
if $data10 != tb2 then if $data(tb2)[0] != tb2 then
return -1 return -1
endi endi
if $data20 != tb3 then if $data(tb3)[0] != tb3 then
return -1 return -1
endi endi
sql select ts,c1,c2,c3,c4,c5,c7,c8,c9 from $stb sql select c1,c1,c2,c3,c4,c5,c7,c8,c9 from $stb
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
print ===> $data10 $data11 $data12 $data13 $data14 $data15 $data16 $data17 $data18 $data19
print ===> $data20 $data21 $data22 $data23 $data24 $data25 $data26 $data27 $data28 $data29
if $rows != 3 then if $rows != 3 then
return -1 return -1
endi endi
#if $data00 != @18-09-17 09:00:00.000@ then if $data(1)[1] != 1 then
# return -1
#endi
if $data01 != 1 then
return -1 return -1
endi endi
if $data08 != 涛思数据1 then if $data(1)[8] != 涛思数据1 then
return -1 return -1
endi endi
if $data14 != 2.000000000 then if $data(2)[4] != 2.000000000 then
return -1 return -1
endi endi
if $data18 != 涛思数据2 then if $data(2)[8] != 涛思数据2 then
return -1 return -1
endi endi
if $data28 != 涛思数据3 then if $data(3)[8] != 涛思数据3 then
return -1 return -1
endi endi
...@@ -208,12 +206,7 @@ endi ...@@ -208,12 +206,7 @@ endi
print ================== restart server to commit data into disk print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 500
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect
sleep 100
sql use $db
#### auto create multiple tables #### auto create multiple tables
sql insert into tb1 using $stb tags(1) values ( $ts0 , 1, 1, 1, 1, 'bin1', 1, 1, 1, '涛思数据1') tb2 using $stb tags(2) values ( $ts0 , 2, 2, 2, 2, 'bin2', 2, 2, 2, '涛思数据2') tb3 using $stb tags(3) values ( $ts0 , 3, 3, 3, 3, 'bin3', 3, 3, 3, '涛思数据3') sql insert into tb1 using $stb tags(1) values ( $ts0 , 1, 1, 1, 1, 'bin1', 1, 1, 1, '涛思数据1') tb2 using $stb tags(2) values ( $ts0 , 2, 2, 2, 2, 'bin2', 2, 2, 2, '涛思数据2') tb3 using $stb tags(3) values ( $ts0 , 3, 3, 3, 3, 'bin3', 3, 3, 3, '涛思数据3')
...@@ -221,36 +214,37 @@ sql show tables ...@@ -221,36 +214,37 @@ sql show tables
if $rows != 3 then if $rows != 3 then
return -1 return -1
endi endi
if $data00 != tb1 then if $data(tb1)[0] != tb1 then
return -1 return -1
endi endi
if $data10 != tb2 then if $data(tb2)[0] != tb2 then
return -1 return -1
endi endi
if $data20 != tb3 then if $data(tb3)[0] != tb3 then
return -1 return -1
endi endi
sql select ts,c1,c2,c3,c4,c5,c7,c8,c9 from $stb sql select c1,c1,c2,c3,c4,c5,c7,c8,c9 from $stb
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
print ===> $data10 $data11 $data12 $data13 $data14 $data15 $data16 $data17 $data18 $data19
print ===> $data20 $data21 $data22 $data23 $data24 $data25 $data26 $data27 $data28 $data29
if $rows != 3 then if $rows != 3 then
return -1 return -1
endi endi
#if $data00 != @18-09-17 09:00:00.000@ then if $data(1)[1] != 1 then
# return -1
#endi
if $data01 != 1 then
return -1 return -1
endi endi
if $data08 != 涛思数据1 then if $data(1)[8] != 涛思数据1 then
return -1 return -1
endi endi
if $data14 != 2.000000000 then if $data(2)[4] != 2.000000000 then
return -1 return -1
endi endi
if $data18 != 涛思数据2 then if $data(2)[8] != 涛思数据2 then
return -1 return -1
endi endi
if $data28 != 涛思数据3 then if $data(3)[8] != 涛思数据3 then
return -1 return -1
endi endi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册