checkError2.sim 836 字节
Newer Older
1 2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
S
Shengliang Guan 已提交
3 4 5
system sh/exec.sh -n dnode1 -s start -v
sql connect

S
Shengliang Guan 已提交
6
print =============== step1: create drop show dnodes
S
Shengliang Guan 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20
$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
if $rows != 1 then
  return -1
endi

S
Shengliang Guan 已提交
21 22
print =============== step2: create db
sql create database db vgroups 1
S
Shengliang Guan 已提交
23

S
Shengliang Guan 已提交
24
_OVER:
25 26
system sh/exec.sh -n dnode1 -s stop -x SIGINT

S
Shengliang Guan 已提交
27
print =============== check
S
Shengliang Guan 已提交
28
print ----> start to check if there are ERRORS in vagrind log file for each dnode
29
system_content sh/checkValgrind.sh -n dnode1 
S
Shengliang Guan 已提交
30 31

print cmd return result ----> [ $system_content ]
32
if $system_content <= 10 then
P
plum-lihui 已提交
33
  return 0
34
endi 
P
plum-lihui 已提交
35 36 37 38 39 40

$null=
if $system_content == $null then
  return 0
endi 

P
plum-lihui 已提交
41
return -1