scripts
This commit is contained in:
parent
ddc68fb721
commit
24058f1d35
|
@ -20,6 +20,12 @@ while $i < 2000
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
|
sql show db.vgroups
|
||||||
|
if $rows != 2 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
return
|
||||||
print ======== step2
|
print ======== step2
|
||||||
sleep 1000
|
sleep 1000
|
||||||
sql drop database db
|
sql drop database db
|
||||||
|
|
|
@ -49,7 +49,7 @@ cd ../../../debug; make
|
||||||
./test.sh -f general/db/basic3.sim
|
./test.sh -f general/db/basic3.sim
|
||||||
./test.sh -f general/db/basic4.sim
|
./test.sh -f general/db/basic4.sim
|
||||||
./test.sh -f general/db/basic5.sim
|
./test.sh -f general/db/basic5.sim
|
||||||
./test.sh -f unique/db/delete.sim
|
./test.sh -f general/db/delete.sim
|
||||||
./test.sh -f general/db/delete_reuse1.sim
|
./test.sh -f general/db/delete_reuse1.sim
|
||||||
./test.sh -f general/db/delete_reuse2.sim
|
./test.sh -f general/db/delete_reuse2.sim
|
||||||
./test.sh -f general/db/delete_reusevnode.sim
|
./test.sh -f general/db/delete_reusevnode.sim
|
||||||
|
|
|
@ -34,6 +34,11 @@ while $i < 2000
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
|
sql show db.vgroups
|
||||||
|
if $rows != 2 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
print ======== step2
|
print ======== step2
|
||||||
sleep 1000
|
sleep 1000
|
||||||
sql drop database db
|
sql drop database db
|
||||||
|
@ -59,14 +64,14 @@ endi
|
||||||
|
|
||||||
print ======== step3
|
print ======== step3
|
||||||
|
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
|
||||||
system sh/exec.sh -n dnode2 -s stop -x SIGINT
|
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
|
||||||
system sh/exec.sh -n dnode3 -s stop -x SIGINT
|
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
|
||||||
|
|
||||||
sleep 1000
|
sleep 1000
|
||||||
system sh/exec.sh -n dnode1 -s start -t
|
system sh/exec_up.sh -n dnode1 -s start
|
||||||
system sh/exec.sh -n dnode2 -s start -t
|
system sh/exec_up.sh -n dnode2 -s start
|
||||||
system sh/exec.sh -n dnode3 -s start -t
|
system sh/exec_up.sh -n dnode3 -s start
|
||||||
|
|
||||||
$x = 0
|
$x = 0
|
||||||
step3:
|
step3:
|
||||||
|
|
|
@ -31,17 +31,17 @@ system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 4
|
||||||
|
|
||||||
print ========= start dnodes
|
print ========= start dnodes
|
||||||
system sh/exec_up.sh -n dnode1 -s start
|
system sh/exec_up.sh -n dnode1 -s start
|
||||||
|
sleep 3000
|
||||||
sql connect
|
sql connect
|
||||||
sql create dnode $hostname2
|
sql create dnode $hostname2
|
||||||
system sh/exec_up.sh -n dnode2 -s start
|
system sh/exec_up.sh -n dnode2 -s start
|
||||||
sleep 3000
|
|
||||||
|
|
||||||
$loop = 0
|
$loop = 0
|
||||||
begin:
|
begin:
|
||||||
|
|
||||||
$db = db . $loop
|
$db = db . $loop
|
||||||
|
|
||||||
print ======== step1
|
print ======== step1 $loop
|
||||||
sql create database $db
|
sql create database $db
|
||||||
sql use $db
|
sql use $db
|
||||||
|
|
||||||
|
@ -53,15 +53,16 @@ begin:
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print ======== step2
|
print ======== step2 $loop
|
||||||
system sh/exec_up.sh -n dnode2 -s stop
|
system sh/exec_up.sh -n dnode2 -s stop
|
||||||
|
sleep 1000
|
||||||
sql drop database $db
|
sql drop database $db
|
||||||
|
|
||||||
|
|
||||||
print ======== step3
|
print ======== step3 $loop
|
||||||
sleep 3000
|
sleep 3000
|
||||||
system sh/exec_up.sh -n dnode2 -s start
|
system sh/exec_up.sh -n dnode2 -s start
|
||||||
sleep 20000
|
sleep 5000
|
||||||
|
|
||||||
print ===> test times : $loop
|
print ===> test times : $loop
|
||||||
if $loop > 5 then
|
if $loop > 5 then
|
||||||
|
@ -70,6 +71,9 @@ begin:
|
||||||
|
|
||||||
$loop = $loop + 1
|
$loop = $loop + 1
|
||||||
|
|
||||||
|
sql reset query cache
|
||||||
|
sleep 1000
|
||||||
|
|
||||||
goto begin
|
goto begin
|
||||||
|
|
||||||
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
Loading…
Reference in New Issue