test: restore some 2.0 case
This commit is contained in:
parent
47ab2b1961
commit
2effdf824d
|
@ -78,7 +78,7 @@
|
||||||
./test.sh -f tsim/insert/query_block2_memory.sim
|
./test.sh -f tsim/insert/query_block2_memory.sim
|
||||||
./test.sh -f tsim/insert/query_file_memory.sim
|
./test.sh -f tsim/insert/query_file_memory.sim
|
||||||
./test.sh -f tsim/insert/query_multi_file.sim
|
./test.sh -f tsim/insert/query_multi_file.sim
|
||||||
#./test.sh -f tsim/insert/tcp.sim
|
./test.sh -f tsim/insert/tcp.sim
|
||||||
./test.sh -f tsim/insert/update0.sim
|
./test.sh -f tsim/insert/update0.sim
|
||||||
|
|
||||||
# ---- parser
|
# ---- parser
|
||||||
|
|
|
@ -1,24 +1,6 @@
|
||||||
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/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
|
||||||
$loop_cnt = 0
|
|
||||||
check_dnode_ready:
|
|
||||||
$loop_cnt = $loop_cnt + 1
|
|
||||||
sleep 200
|
|
||||||
if $loop_cnt == 10 then
|
|
||||||
print ====> dnode not ready!
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
sql show dnodes
|
|
||||||
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
|
|
||||||
if $data00 != 1 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data04 != ready then
|
|
||||||
goto check_dnode_ready
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
print =============== create database d1
|
print =============== create database d1
|
||||||
|
|
|
@ -1,24 +1,6 @@
|
||||||
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/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
|
||||||
$loop_cnt = 0
|
|
||||||
check_dnode_ready:
|
|
||||||
$loop_cnt = $loop_cnt + 1
|
|
||||||
sleep 200
|
|
||||||
if $loop_cnt == 10 then
|
|
||||||
print ====> dnode not ready!
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
sql show dnodes
|
|
||||||
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
|
|
||||||
if $data00 != 1 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data04 != ready then
|
|
||||||
goto check_dnode_ready
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
print =============== create database d1
|
print =============== create database d1
|
||||||
|
|
|
@ -5,63 +5,34 @@ system sh/deploy.sh -n dnode3 -i 3
|
||||||
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
|
||||||
system sh/exec.sh -n dnode3 -s start
|
system sh/exec.sh -n dnode3 -s start
|
||||||
|
|
||||||
$loop_cnt = 0
|
|
||||||
check_dnode_ready:
|
|
||||||
$loop_cnt = $loop_cnt + 1
|
|
||||||
sleep 200
|
|
||||||
if $loop_cnt == 10 then
|
|
||||||
print ====> dnode not ready!
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
sql show dnodes
|
|
||||||
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
|
|
||||||
if $data00 != 1 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data04 != ready then
|
|
||||||
goto check_dnode_ready
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql connect
|
sql connect
|
||||||
sql create dnode $hostname port 7200
|
sql create dnode $hostname port 7200
|
||||||
sql create dnode $hostname port 7300
|
sql create dnode $hostname port 7300
|
||||||
|
|
||||||
$loop_cnt = 0
|
$x = 0
|
||||||
check_dnode_ready_1:
|
step1:
|
||||||
$loop_cnt = $loop_cnt + 1
|
$x = $x + 1
|
||||||
sleep 200
|
sleep 1000
|
||||||
if $loop_cnt == 10 then
|
if $x == 10 then
|
||||||
print ====> dnode not ready!
|
print ====> dnode not ready!
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql show dnodes
|
sql show dnodes
|
||||||
print ===> rows: $rows
|
|
||||||
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
print ===> $data00 $data01 $data02 $data03 $data04 $data05
|
||||||
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
print ===> $data10 $data11 $data12 $data13 $data14 $data15
|
||||||
print ===> $data20 $data21 $data22 $data23 $data24 $data25
|
print ===> $data20 $data21 $data22 $data23 $data24 $data25
|
||||||
if $data00 != 1 then
|
print ===> $data30 $data31 $data32 $data33 $data34 $data35
|
||||||
|
if $rows != 3 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
system_content printf %OS%
|
if $data(1)[4] != ready then
|
||||||
if $system_content == Windows_NT then
|
goto step1
|
||||||
system_content printf %COMPUTERNAME%:7100
|
|
||||||
if $data01 != $system_content then
|
|
||||||
return -1
|
|
||||||
endi
|
endi
|
||||||
else
|
if $data(2)[4] != ready then
|
||||||
if $data01 != localhost:7100 then
|
goto step1
|
||||||
return -1
|
|
||||||
endi
|
endi
|
||||||
endi
|
if $data(3)[4] != ready then
|
||||||
if $data04 != ready then
|
goto step1
|
||||||
goto check_dnode_ready_1
|
|
||||||
endi
|
|
||||||
if $data14 != ready then
|
|
||||||
goto check_dnode_ready_1
|
|
||||||
endi
|
|
||||||
if $data24 != ready then
|
|
||||||
goto check_dnode_ready_1
|
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print ============= create database with all options
|
print ============= create database with all options
|
||||||
|
|
|
@ -16,10 +16,9 @@ endi
|
||||||
print =============== restart
|
print =============== restart
|
||||||
|
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
||||||
sleep 2000
|
sleep 200
|
||||||
system rm -rf ../../sim/dnode1/log
|
system rm -rf ../../sim/dnode1/log
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
sleep 2000
|
|
||||||
|
|
||||||
print =============== show databases
|
print =============== show databases
|
||||||
sql create database d2 vgroups 6
|
sql create database d2 vgroups 6
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
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/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
sleep 50
|
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
print =============== create database
|
print =============== create database
|
||||||
|
@ -99,23 +98,6 @@ endi
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
|
||||||
$loop_cnt = 0
|
|
||||||
check_dnode_ready:
|
|
||||||
$loop_cnt = $loop_cnt + 1
|
|
||||||
sleep 200
|
|
||||||
if $loop_cnt == 10 then
|
|
||||||
print ====> dnode not ready!
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
sql show dnodes
|
|
||||||
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
|
|
||||||
if $data00 != 1 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data04 != ready then
|
|
||||||
goto check_dnode_ready
|
|
||||||
endi
|
|
||||||
|
|
||||||
print =============== step3-2 query records of ct1 from file
|
print =============== step3-2 query records of ct1 from file
|
||||||
sql select * from ct1;
|
sql select * from ct1;
|
||||||
print $data00 $data01
|
print $data00 $data01
|
||||||
|
|
Loading…
Reference in New Issue