提交 0030888d 编写于 作者: S Shengliang Guan

test: restore some 2.0 case

上级 16188022
run general/compress/commitlog.sim
run general/compress/compress2.sim
run general/compress/compress.sim
run general/compress/uncompress.sim
...@@ -22,6 +22,12 @@ ...@@ -22,6 +22,12 @@
./test.sh -f tsim/column/metrics.sim ./test.sh -f tsim/column/metrics.sim
./test.sh -f tsim/column/table.sim ./test.sh -f tsim/column/table.sim
# ---- compress
./test.sh -f tsim/compress/commitlog.sim
./test.sh -f tsim/compress/compress2.sim
./test.sh -f tsim/compress/compress.sim
./test.sh -f tsim/compress/uncompress.sim
# ---- db # ---- db
./test.sh -f tsim/db/alter_option.sim ./test.sh -f tsim/db/alter_option.sim
# ./test.sh -f tsim/db/alter_replica_13.sim # ./test.sh -f tsim/db/alter_replica_13.sim
......
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/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c comp -v 1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect sql connect
print ============================ dnode1 start
print ============================ dnode1 start
$i = 0 $i = 0
$dbPrefix = db $dbPrefix = db
$tbPrefix = tb $tbPrefix = tb
...@@ -18,7 +13,6 @@ $tb = $tbPrefix . $i ...@@ -18,7 +13,6 @@ $tb = $tbPrefix . $i
$N = 2000 $N = 2000
print =============== step1 print =============== step1
sql create database $db sql create database $db
sql use $db sql use $db
sql create table $tb (ts timestamp, b bool, t tinyint, s smallint, i int, big bigint, str binary(256)) sql create table $tb (ts timestamp, b bool, t tinyint, s smallint, i int, big bigint, str binary(256))
...@@ -87,9 +81,7 @@ endi ...@@ -87,9 +81,7 @@ endi
print =============== step4 print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 3000
print =============== step5 print =============== step5
......
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/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c comp -v 1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect sql connect
print ============================ dnode1 start print ============================ dnode1 start
$i = 0 $i = 0
$dbPrefix = db $dbPrefix = db
$tbPrefix = tb $tbPrefix = tb
...@@ -19,7 +13,6 @@ $tb = $tbPrefix . $i ...@@ -19,7 +13,6 @@ $tb = $tbPrefix . $i
$N = 2000 $N = 2000
print =============== step1 print =============== step1
sql create database $db sql create database $db
sql use $db sql use $db
sql create table $tb (ts timestamp, b bool, t tinyint, s smallint, i int, big bigint, str binary(256)) sql create table $tb (ts timestamp, b bool, t tinyint, s smallint, i int, big bigint, str binary(256))
...@@ -82,9 +75,7 @@ endi ...@@ -82,9 +75,7 @@ endi
print =============== step4 print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 3000
print =============== step5 print =============== step5
......
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/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c comp -v 2
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect sql connect
print ============================ dnode1 start print ============================ dnode1 start
$i = 0 $i = 0
$dbPrefix = db $dbPrefix = db
$tbPrefix = tb $tbPrefix = tb
...@@ -82,9 +76,7 @@ endi ...@@ -82,9 +76,7 @@ endi
print =============== step4 print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 3000
print =============== step5 print =============== step5
......
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/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c comp -v 1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect sql connect
print ============================ dnode1 start
print ============================ dnode1 start
$i = 0 $i = 0
$dbPrefix = cp_cp_db $dbPrefix = cp_cp_db
$tbPrefix = cp_cp_tb $tbPrefix = cp_cp_tb
...@@ -17,7 +13,6 @@ $tb = $tbPrefix . $i ...@@ -17,7 +13,6 @@ $tb = $tbPrefix . $i
$N = 2000 $N = 2000
print =============== step1 print =============== step1
sql create database $db sql create database $db
sql use $db sql use $db
...@@ -81,12 +76,9 @@ endi ...@@ -81,12 +76,9 @@ endi
print =============== step4 print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 2000
print =============== step5 print =============== step5
$i = 0 $i = 0
$db = $dbPrefix . $i $db = $dbPrefix . $i
$tb = $tbPrefix . $i $tb = $tbPrefix . $i
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册