test: restore case
This commit is contained in:
parent
59fd4e192c
commit
e2648a7023
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
#======================b1-start===============
|
#======================b1-start===============
|
||||||
|
|
||||||
# ---- user
|
# ---- user ----
|
||||||
./test.sh -f tsim/user/basic.sim
|
./test.sh -f tsim/user/basic.sim
|
||||||
./test.sh -f tsim/user/password.sim
|
./test.sh -f tsim/user/password.sim
|
||||||
./test.sh -f tsim/user/privilege_db.sim
|
./test.sh -f tsim/user/privilege_db.sim
|
||||||
|
@ -58,13 +58,13 @@
|
||||||
# unsupport ./test.sh -f tsim/dnode/vnode_clean.sim
|
# unsupport ./test.sh -f tsim/dnode/vnode_clean.sim
|
||||||
./test.sh -f tsim/dnode/use_dropped_dnode.sim
|
./test.sh -f tsim/dnode/use_dropped_dnode.sim
|
||||||
|
|
||||||
# ---- import
|
# ---- import ----
|
||||||
./test.sh -f tsim/import/basic.sim
|
./test.sh -f tsim/import/basic.sim
|
||||||
./test.sh -f tsim/import/commit.sim
|
./test.sh -f tsim/import/commit.sim
|
||||||
./test.sh -f tsim/import/large.sim
|
./test.sh -f tsim/import/large.sim
|
||||||
./test.sh -f tsim/import/replica1.sim
|
./test.sh -f tsim/import/replica1.sim
|
||||||
|
|
||||||
# ---- insert
|
# ---- insert ----
|
||||||
./test.sh -f tsim/insert/backquote.sim
|
./test.sh -f tsim/insert/backquote.sim
|
||||||
./test.sh -f tsim/insert/basic.sim
|
./test.sh -f tsim/insert/basic.sim
|
||||||
./test.sh -f tsim/insert/basic0.sim
|
./test.sh -f tsim/insert/basic0.sim
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
# TD-17704 ./test.sh -f tsim/parser/union_sysinfo.sim
|
# TD-17704 ./test.sh -f tsim/parser/union_sysinfo.sim
|
||||||
# TD-17661 ./test.sh -f tsim/parser/where.sim
|
# TD-17661 ./test.sh -f tsim/parser/where.sim
|
||||||
|
|
||||||
# ---- query
|
# ---- query ----
|
||||||
./test.sh -f tsim/query/charScalarFunction.sim
|
./test.sh -f tsim/query/charScalarFunction.sim
|
||||||
# ./test.sh -f tsim/query/explain.sim
|
# ./test.sh -f tsim/query/explain.sim
|
||||||
./test.sh -f tsim/query/interval-offset.sim
|
./test.sh -f tsim/query/interval-offset.sim
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
./test.sh -f tsim/mnode/basic4.sim
|
./test.sh -f tsim/mnode/basic4.sim
|
||||||
./test.sh -f tsim/mnode/basic5.sim
|
./test.sh -f tsim/mnode/basic5.sim
|
||||||
|
|
||||||
# ---- show
|
# ---- show ----
|
||||||
./test.sh -f tsim/show/basic.sim
|
./test.sh -f tsim/show/basic.sim
|
||||||
|
|
||||||
# ---- table
|
# ---- table
|
||||||
|
@ -260,7 +260,7 @@
|
||||||
./test.sh -f tsim/tmq/snapshot.sim
|
./test.sh -f tsim/tmq/snapshot.sim
|
||||||
./test.sh -f tsim/tmq/snapshot1.sim
|
./test.sh -f tsim/tmq/snapshot1.sim
|
||||||
|
|
||||||
# --- stable
|
# --- stable ----
|
||||||
./test.sh -f tsim/stable/alter_comment.sim
|
./test.sh -f tsim/stable/alter_comment.sim
|
||||||
./test.sh -f tsim/stable/alter_count.sim
|
./test.sh -f tsim/stable/alter_count.sim
|
||||||
./test.sh -f tsim/stable/alter_import.sim
|
./test.sh -f tsim/stable/alter_import.sim
|
||||||
|
@ -350,13 +350,13 @@
|
||||||
./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
|
# ---- compress ----
|
||||||
./test.sh -f tsim/compress/commitlog.sim
|
./test.sh -f tsim/compress/commitlog.sim
|
||||||
./test.sh -f tsim/compress/compress2.sim
|
./test.sh -f tsim/compress/compress2.sim
|
||||||
./test.sh -f tsim/compress/compress.sim
|
./test.sh -f tsim/compress/compress.sim
|
||||||
./test.sh -f tsim/compress/uncompress.sim
|
./test.sh -f tsim/compress/uncompress.sim
|
||||||
|
|
||||||
# ---- compute
|
# ---- compute ----
|
||||||
./test.sh -f tsim/compute/avg.sim
|
./test.sh -f tsim/compute/avg.sim
|
||||||
./test.sh -f tsim/compute/block_dist.sim
|
./test.sh -f tsim/compute/block_dist.sim
|
||||||
./test.sh -f tsim/compute/bottom.sim
|
./test.sh -f tsim/compute/bottom.sim
|
||||||
|
|
|
@ -51,40 +51,10 @@ endi
|
||||||
##TBASE-352
|
##TBASE-352
|
||||||
$offset = $tbNum * $rowNum
|
$offset = $tbNum * $rowNum
|
||||||
$offset = $offset - 1
|
$offset = $offset - 1
|
||||||
sql select * from $stb limit 2 offset $offset
|
sql select * from $stb order by ts limit 2 offset $offset
|
||||||
if $rows != 1 then
|
if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data00 != @18-11-25 19:30:00.000@ then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data01 != 9 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data02 != NULL then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data03 != 9.00000 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data04 != NULL then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data05 != 9 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data06 != 9 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data07 != 1 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data08 != binary9 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data09 != nchar9 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
|
|
||||||
$offset = $tbNum * $rowNum
|
$offset = $tbNum * $rowNum
|
||||||
$offset = $offset / 2
|
$offset = $offset / 2
|
||||||
|
@ -207,21 +177,6 @@ sql select * from $stb where ts > '2018-09-17 09:30:00.000' and ts < '2018-09-17
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data01 != 5 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data11 != 6 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data21 != 7 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data31 != 8 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
if $data41 != 4 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
|
|
||||||
$offset = $totalNum / 2
|
$offset = $totalNum / 2
|
||||||
sql select * from $stb where ts >= $ts0 and ts <= $tsu limit 5 offset $offset
|
sql select * from $stb where ts >= $ts0 and ts <= $tsu limit 5 offset $offset
|
||||||
|
|
Loading…
Reference in New Issue