test: valgrind case
This commit is contained in:
parent
1fea5e567c
commit
af4e0626b6
|
@ -35,36 +35,51 @@ if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3: create show table
|
print =============== step4: create show table
|
||||||
sql create table ct1 using stb tags(1000)
|
sql create table ct1 using stb tags(1000)
|
||||||
|
sql create table ct2 using stb tags(2000)
|
||||||
|
sql create table ct3 using stb tags(3000)
|
||||||
sql show tables
|
sql show tables
|
||||||
if $rows != 1 then
|
if $rows != 3 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step5: insert data
|
print =============== step5: insert data
|
||||||
sql insert into ct1 values(now+0s, 10, 2.0, 3.0)
|
sql insert into ct1 values(now+0s, 10, 2.0, 3.0)
|
||||||
sql insert into ct1 values(now+1s, 11, 2.1, 3.1)(now+2s, -12, -2.2, -3.2)(now+3s, -13, -2.3, -3.3)
|
sql insert into ct1 values(now+1s, 11, 2.1, 3.1)(now+2s, -12, -2.2, -3.2)(now+3s, -13, -2.3, -3.3)
|
||||||
|
sql insert into ct2 values(now+0s, 10, 2.0, 3.0)
|
||||||
|
sql insert into ct2 values(now+1s, 11, 2.1, 3.1)(now+2s, -12, -2.2, -3.2)(now+3s, -13, -2.3, -3.3)
|
||||||
|
sql insert into ct3 values('2021-01-01 00:00:00.000', 10, 2.0, 3.0)
|
||||||
|
|
||||||
print =============== step6: select data
|
print =============== step6: query data
|
||||||
sql select * from ct1
|
sql select * from ct1
|
||||||
#sql select * from stb
|
sql select * from stb
|
||||||
|
sql select c1, c2, c3 from ct1
|
||||||
|
sql select ts, c1, c2, c3 from stb
|
||||||
|
|
||||||
|
print =============== step7: count
|
||||||
|
sql select count(*) from ct1;
|
||||||
|
#sql select count(*) from stb;
|
||||||
|
#sql select count(ts), count(c1), count(c2), count(c3) from ct1
|
||||||
|
#sql select count(ts), count(c1), count(c2), count(c3) from stb
|
||||||
|
|
||||||
|
print =============== step8: func
|
||||||
|
#sql select first(ts), first(c1), first(c2), first(c3) from ct1
|
||||||
|
#sql select min(c1), min(c2), min(c3) from ct1
|
||||||
|
#sql select max(c1), max(c2), max(c3) from ct1
|
||||||
|
#sql select sum(c1), sum(c2), sum(c3) from ct1
|
||||||
|
|
||||||
_OVER:
|
_OVER:
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
||||||
print =============== check
|
print =============== check
|
||||||
print ----> start to check if there are ERRORS in vagrind log file for each dnode
|
|
||||||
system_content sh/checkValgrind.sh -n dnode1
|
|
||||||
|
|
||||||
print cmd return result ----> [ $system_content ]
|
|
||||||
if $system_content <= 0 then
|
|
||||||
return 0
|
|
||||||
endi
|
|
||||||
|
|
||||||
$null=
|
$null=
|
||||||
if $system_content == $null then
|
|
||||||
return 0
|
system_content sh/checkValgrind.sh -n dnode1
|
||||||
|
print cmd return result ----> [ $system_content ]
|
||||||
|
if $system_content > 1 then
|
||||||
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
return -1
|
if $system_content == $null then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
|
@ -35,36 +35,51 @@ if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3: create show table
|
print =============== step4: create show table
|
||||||
sql create table ct1 using stb tags(1000)
|
sql create table ct1 using stb tags(1000)
|
||||||
#sql show tables
|
sql create table ct2 using stb tags(2000)
|
||||||
#if $rows != 1 then
|
sql create table ct3 using stb tags(3000)
|
||||||
# return -1
|
sql show tables
|
||||||
#endi
|
if $rows != 3 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
print =============== step5: insert data
|
print =============== step5: insert data
|
||||||
sql insert into ct1 values(now+0s, 10, 2.0, 3.0)
|
sql insert into ct1 values(now+0s, 10, 2.0, 3.0)
|
||||||
sql insert into ct1 values(now+1s, 11, 2.1, 3.1)(now+2s, -12, -2.2, -3.2)(now+3s, -13, -2.3, -3.3)
|
sql insert into ct1 values(now+1s, 11, 2.1, 3.1)(now+2s, -12, -2.2, -3.2)(now+3s, -13, -2.3, -3.3)
|
||||||
|
sql insert into ct2 values(now+0s, 10, 2.0, 3.0)
|
||||||
|
sql insert into ct2 values(now+1s, 11, 2.1, 3.1)(now+2s, -12, -2.2, -3.2)(now+3s, -13, -2.3, -3.3)
|
||||||
|
sql insert into ct3 values('2021-01-01 00:00:00.000', 10, 2.0, 3.0)
|
||||||
|
|
||||||
print =============== step6: select data
|
print =============== step6: query data
|
||||||
sql select * from ct1
|
sql select * from ct1
|
||||||
sql select * from stb
|
sql select * from stb
|
||||||
|
sql select c1, c2, c3 from ct1
|
||||||
|
sql select ts, c1, c2, c3 from stb
|
||||||
|
|
||||||
|
print =============== step7: count
|
||||||
|
sql select count(*) from ct1;
|
||||||
|
sql select count(*) from stb;
|
||||||
|
#sql select count(ts), count(c1), count(c2), count(c3) from ct1
|
||||||
|
#sql select count(ts), count(c1), count(c2), count(c3) from stb
|
||||||
|
|
||||||
|
print =============== step8: func
|
||||||
|
#sql select first(ts), first(c1), first(c2), first(c3) from ct1
|
||||||
|
#sql select min(c1), min(c2), min(c3) from ct1
|
||||||
|
#sql select max(c1), max(c2), max(c3) from ct1
|
||||||
|
#sql select sum(c1), sum(c2), sum(c3) from ct1
|
||||||
|
|
||||||
_OVER:
|
_OVER:
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
||||||
print =============== check
|
print =============== check
|
||||||
print ----> start to check if there are ERRORS in vagrind log file for each dnode
|
|
||||||
system_content sh/checkValgrind.sh -n dnode1
|
|
||||||
|
|
||||||
print cmd return result ----> [ $system_content ]
|
|
||||||
if $system_content <= 0 then
|
|
||||||
return 0
|
|
||||||
endi
|
|
||||||
|
|
||||||
$null=
|
$null=
|
||||||
if $system_content == $null then
|
|
||||||
return 0
|
system_content sh/checkValgrind.sh -n dnode1
|
||||||
|
print cmd return result ----> [ $system_content ]
|
||||||
|
if $system_content > 1 then
|
||||||
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
return -1
|
if $system_content == $null then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
|
@ -94,17 +94,14 @@ print =============== stop
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
||||||
print =============== check
|
print =============== check
|
||||||
print ----> start to check if there are ERRORS in vagrind log file for each dnode
|
|
||||||
system_content sh/checkValgrind.sh -n dnode1
|
|
||||||
|
|
||||||
print cmd return result ----> [ $system_content ]
|
|
||||||
if $system_content <= 0 then
|
|
||||||
return 0
|
|
||||||
endi
|
|
||||||
|
|
||||||
$null=
|
$null=
|
||||||
if $system_content == $null then
|
|
||||||
return 0
|
system_content sh/checkValgrind.sh -n dnode1
|
||||||
|
print cmd return result ----> [ $system_content ]
|
||||||
|
if $system_content > 1 then
|
||||||
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
return -1
|
if $system_content == $null then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
|
@ -35,7 +35,7 @@ if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3: create show table
|
print =============== step4: create show table
|
||||||
sql create table ct1 using stb tags(1000)
|
sql create table ct1 using stb tags(1000)
|
||||||
sql show tables
|
sql show tables
|
||||||
if $rows != 1 then
|
if $rows != 1 then
|
||||||
|
@ -54,17 +54,14 @@ _OVER:
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
||||||
print =============== check
|
print =============== check
|
||||||
print ----> start to check if there are ERRORS in vagrind log file for each dnode
|
|
||||||
system_content sh/checkValgrind.sh -n dnode1
|
|
||||||
|
|
||||||
print cmd return result ----> [ $system_content ]
|
|
||||||
if $system_content <= 0 then
|
|
||||||
return 0
|
|
||||||
endi
|
|
||||||
|
|
||||||
$null=
|
$null=
|
||||||
if $system_content == $null then
|
|
||||||
return 0
|
system_content sh/checkValgrind.sh -n dnode1
|
||||||
|
print cmd return result ----> [ $system_content ]
|
||||||
|
if $system_content > 1 then
|
||||||
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
return -1
|
if $system_content == $null then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
|
@ -129,17 +129,14 @@ print =============== stop
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
||||||
print =============== check
|
print =============== check
|
||||||
print ----> start to check if there are ERRORS in vagrind log file for each dnode
|
|
||||||
system_content sh/checkValgrind.sh -n dnode1
|
|
||||||
|
|
||||||
print cmd return result ----> [ $system_content ]
|
|
||||||
if $system_content <= 0 then
|
|
||||||
return 0
|
|
||||||
endi
|
|
||||||
|
|
||||||
$null=
|
$null=
|
||||||
if $system_content == $null then
|
|
||||||
return 0
|
system_content sh/checkValgrind.sh -n dnode1
|
||||||
|
print cmd return result ----> [ $system_content ]
|
||||||
|
if $system_content > 1 then
|
||||||
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
return -1
|
if $system_content == $null then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
Loading…
Reference in New Issue