mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* restore .gitmodules
* Revert "[TD-13408]<test>: move tests directory out"
This reverts commit 7db7bd9337.
* revert to make tests back
* immigrate file change in stand-alone repo to TDengine
* remove tests repository checkout
Co-authored-by: tangfangzhi <fztang@taosdata.com>
77 lines
1.5 KiB
Text
77 lines
1.5 KiB
Text
system sh/stop_dnodes.sh
|
|
system sh/deploy.sh -n dnode1 -i 1
|
|
|
|
print ============== deploy
|
|
system sh/exec.sh -n dnode1 -s start
|
|
sleep 3001
|
|
sql connect
|
|
|
|
sql create database d1
|
|
sql use d1
|
|
|
|
sql create table t1 (ts timestamp, i int)
|
|
sql insert into t1 values(now, 1);
|
|
|
|
print =============== step3
|
|
sleep 2000
|
|
sql select * from t1;
|
|
print rows: $rows
|
|
if $rows != 1 then
|
|
return -1
|
|
endi
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
|
sleep 2000
|
|
|
|
print =============== step4
|
|
system sh/exec.sh -n dnode1 -s start -x SIGKILL
|
|
sleep 2000
|
|
sql select * from t1;
|
|
print rows: $rows
|
|
if $rows != 1 then
|
|
return -1
|
|
endi
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
|
sleep 2000
|
|
|
|
print =============== step5
|
|
system sh/exec.sh -n dnode1 -s start -x SIGKILL
|
|
sleep 2000
|
|
sql select * from t1;
|
|
print rows: $rows
|
|
if $rows != 1 then
|
|
return -1
|
|
endi
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
|
sleep 2000
|
|
|
|
print =============== step6
|
|
system sh/exec.sh -n dnode1 -s start -x SIGKILL
|
|
sleep 2000
|
|
sql select * from t1;
|
|
print rows: $rows
|
|
if $rows != 1 then
|
|
return -1
|
|
endi
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
|
sleep 2000
|
|
|
|
print =============== step7
|
|
system sh/exec.sh -n dnode1 -s start -x SIGKILL
|
|
sleep 2000
|
|
sql select * from t1;
|
|
print rows: $rows
|
|
if $rows != 1 then
|
|
return -1
|
|
endi
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
|
sleep 2000
|
|
|
|
print =============== step8
|
|
system sh/exec.sh -n dnode1 -s start -x SIGKILL
|
|
sleep 2000
|
|
sql select * from t1;
|
|
print rows: $rows
|
|
if $rows != 1 then
|
|
return -1
|
|
endi
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|