Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
哥们要飞
TDengine
提交
ae372d30
T
TDengine
项目概览
哥们要飞
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ae372d30
编写于
5月 08, 2020
作者:
sangshuduo
浏览文件
操作
浏览文件
下载
差异文件
merge with develop branch.
上级
c4e7acc3
dd1bb6e0
变更
145
隐藏空白更改
内联
并排
Showing
145 changed file
with
989 addition
and
512 deletion
+989
-512
src/mnode/src/mgmtDb.c
src/mnode/src/mgmtDb.c
+2
-2
tests/script/general/alter/cached_schema_after_alter.sim
tests/script/general/alter/cached_schema_after_alter.sim
+2
-0
tests/script/general/alter/count.sim
tests/script/general/alter/count.sim
+1
-0
tests/script/general/alter/import.sim
tests/script/general/alter/import.sim
+2
-0
tests/script/general/alter/insert1.sim
tests/script/general/alter/insert1.sim
+2
-0
tests/script/general/alter/insert2.sim
tests/script/general/alter/insert2.sim
+1
-0
tests/script/general/alter/metrics.sim
tests/script/general/alter/metrics.sim
+1
-0
tests/script/general/alter/table.sim
tests/script/general/alter/table.sim
+1
-0
tests/script/general/alter/testSuite.sim
tests/script/general/alter/testSuite.sim
+1
-1
tests/script/general/cache/new_metrics.sim
tests/script/general/cache/new_metrics.sim
+1
-3
tests/script/general/cache/restart_metrics.sim
tests/script/general/cache/restart_metrics.sim
+1
-0
tests/script/general/cache/restart_table.sim
tests/script/general/cache/restart_table.sim
+1
-1
tests/script/general/cache/testSuite.sim
tests/script/general/cache/testSuite.sim
+1
-1
tests/script/general/column/commit.sim
tests/script/general/column/commit.sim
+3
-1
tests/script/general/column/metrics.sim
tests/script/general/column/metrics.sim
+2
-0
tests/script/general/column/table.sim
tests/script/general/column/table.sim
+2
-0
tests/script/general/column/testSuite.sim
tests/script/general/column/testSuite.sim
+2
-3
tests/script/general/compress/commitlog.sim
tests/script/general/compress/commitlog.sim
+4
-5
tests/script/general/compress/compress.sim
tests/script/general/compress/compress.sim
+4
-5
tests/script/general/compress/compress2.sim
tests/script/general/compress/compress2.sim
+4
-5
tests/script/general/compress/testSuite.sim
tests/script/general/compress/testSuite.sim
+2
-2
tests/script/general/compress/uncompress.sim
tests/script/general/compress/uncompress.sim
+4
-6
tests/script/general/compute/avg.sim
tests/script/general/compute/avg.sim
+3
-1
tests/script/general/compute/bottom.sim
tests/script/general/compute/bottom.sim
+3
-1
tests/script/general/compute/count.sim
tests/script/general/compute/count.sim
+3
-1
tests/script/general/compute/diff.sim
tests/script/general/compute/diff.sim
+3
-1
tests/script/general/compute/diff2.sim
tests/script/general/compute/diff2.sim
+2
-0
tests/script/general/compute/first.sim
tests/script/general/compute/first.sim
+3
-1
tests/script/general/compute/interval.sim
tests/script/general/compute/interval.sim
+3
-1
tests/script/general/compute/last.sim
tests/script/general/compute/last.sim
+3
-1
tests/script/general/compute/leastsquare.sim
tests/script/general/compute/leastsquare.sim
+2
-0
tests/script/general/compute/max.sim
tests/script/general/compute/max.sim
+3
-1
tests/script/general/compute/min.sim
tests/script/general/compute/min.sim
+3
-1
tests/script/general/compute/null.sim
tests/script/general/compute/null.sim
+3
-1
tests/script/general/compute/percentile.sim
tests/script/general/compute/percentile.sim
+2
-0
tests/script/general/compute/stddev.sim
tests/script/general/compute/stddev.sim
+3
-1
tests/script/general/compute/sum.sim
tests/script/general/compute/sum.sim
+3
-1
tests/script/general/compute/testSuite.sim
tests/script/general/compute/testSuite.sim
+11
-11
tests/script/general/compute/top.sim
tests/script/general/compute/top.sim
+3
-1
tests/script/general/db/testSuite.sim
tests/script/general/db/testSuite.sim
+1
-1
tests/script/general/field/2.sim
tests/script/general/field/2.sim
+8
-6
tests/script/general/field/3.sim
tests/script/general/field/3.sim
+6
-6
tests/script/general/field/4.sim
tests/script/general/field/4.sim
+6
-6
tests/script/general/field/5.sim
tests/script/general/field/5.sim
+6
-6
tests/script/general/field/6.sim
tests/script/general/field/6.sim
+6
-6
tests/script/general/field/bigint.sim
tests/script/general/field/bigint.sim
+6
-6
tests/script/general/field/binary.sim
tests/script/general/field/binary.sim
+6
-6
tests/script/general/field/bool.sim
tests/script/general/field/bool.sim
+6
-6
tests/script/general/field/double.sim
tests/script/general/field/double.sim
+6
-6
tests/script/general/field/float.sim
tests/script/general/field/float.sim
+6
-6
tests/script/general/field/int.sim
tests/script/general/field/int.sim
+6
-6
tests/script/general/field/single.sim
tests/script/general/field/single.sim
+6
-6
tests/script/general/field/smallint.sim
tests/script/general/field/smallint.sim
+6
-6
tests/script/general/field/tinyint.sim
tests/script/general/field/tinyint.sim
+6
-6
tests/script/general/http/testSuite.sim
tests/script/general/http/testSuite.sim
+2
-2
tests/script/general/import/basic.sim
tests/script/general/import/basic.sim
+16
-21
tests/script/general/import/commit.sim
tests/script/general/import/commit.sim
+5
-13
tests/script/general/import/large.sim
tests/script/general/import/large.sim
+7
-11
tests/script/general/import/replica1.sim
tests/script/general/import/replica1.sim
+98
-59
tests/script/general/import/testSuite.sim
tests/script/general/import/testSuite.sim
+1
-1
tests/script/general/insert/tcp.sim
tests/script/general/insert/tcp.sim
+0
-6
tests/script/general/insert/testSuite.sim
tests/script/general/insert/testSuite.sim
+1
-1
tests/script/general/metrics/disk.sim
tests/script/general/metrics/disk.sim
+3
-1
tests/script/general/metrics/metrics.sim
tests/script/general/metrics/metrics.sim
+2
-2
tests/script/general/metrics/values.sim
tests/script/general/metrics/values.sim
+1
-22
tests/script/general/metrics/vnode3.sim
tests/script/general/metrics/vnode3.sim
+3
-1
tests/script/general/table/testSuite.sim
tests/script/general/table/testSuite.sim
+6
-6
tests/script/general/tag/3.sim
tests/script/general/tag/3.sim
+2
-3
tests/script/general/tag/4.sim
tests/script/general/tag/4.sim
+2
-0
tests/script/general/tag/5.sim
tests/script/general/tag/5.sim
+2
-0
tests/script/general/tag/6.sim
tests/script/general/tag/6.sim
+2
-0
tests/script/general/tag/add.sim
tests/script/general/tag/add.sim
+3
-1
tests/script/general/tag/bigint.sim
tests/script/general/tag/bigint.sim
+3
-1
tests/script/general/tag/binary.sim
tests/script/general/tag/binary.sim
+3
-1
tests/script/general/tag/binary_binary.sim
tests/script/general/tag/binary_binary.sim
+3
-1
tests/script/general/tag/bool.sim
tests/script/general/tag/bool.sim
+3
-1
tests/script/general/tag/bool_binary.sim
tests/script/general/tag/bool_binary.sim
+3
-1
tests/script/general/tag/bool_int.sim
tests/script/general/tag/bool_int.sim
+3
-1
tests/script/general/tag/change.sim
tests/script/general/tag/change.sim
+3
-1
tests/script/general/tag/column.sim
tests/script/general/tag/column.sim
+3
-1
tests/script/general/tag/commit.sim
tests/script/general/tag/commit.sim
+3
-1
tests/script/general/tag/create.sim
tests/script/general/tag/create.sim
+2
-0
tests/script/general/tag/delete.sim
tests/script/general/tag/delete.sim
+3
-1
tests/script/general/tag/double.sim
tests/script/general/tag/double.sim
+3
-1
tests/script/general/tag/filter.sim
tests/script/general/tag/filter.sim
+2
-2
tests/script/general/tag/float.sim
tests/script/general/tag/float.sim
+3
-1
tests/script/general/tag/int.sim
tests/script/general/tag/int.sim
+3
-1
tests/script/general/tag/int_binary.sim
tests/script/general/tag/int_binary.sim
+3
-1
tests/script/general/tag/int_float.sim
tests/script/general/tag/int_float.sim
+3
-1
tests/script/general/tag/set.sim
tests/script/general/tag/set.sim
+3
-1
tests/script/general/tag/smallint.sim
tests/script/general/tag/smallint.sim
+3
-1
tests/script/general/tag/testSuite.sim
tests/script/general/tag/testSuite.sim
+18
-18
tests/script/general/tag/tinyint.sim
tests/script/general/tag/tinyint.sim
+3
-1
tests/script/general/user/testSuite.sim
tests/script/general/user/testSuite.sim
+1
-1
tests/script/general/vector/metrics_field.sim
tests/script/general/vector/metrics_field.sim
+3
-1
tests/script/general/vector/metrics_mix.sim
tests/script/general/vector/metrics_mix.sim
+3
-1
tests/script/general/vector/metrics_query.sim
tests/script/general/vector/metrics_query.sim
+3
-1
tests/script/general/vector/metrics_tag.sim
tests/script/general/vector/metrics_tag.sim
+3
-1
tests/script/general/vector/metrics_time.sim
tests/script/general/vector/metrics_time.sim
+3
-1
tests/script/general/vector/multi.sim
tests/script/general/vector/multi.sim
+3
-2
tests/script/general/vector/single.sim
tests/script/general/vector/single.sim
+3
-1
tests/script/general/vector/table_field.sim
tests/script/general/vector/table_field.sim
+3
-1
tests/script/general/vector/table_mix.sim
tests/script/general/vector/table_mix.sim
+3
-1
tests/script/general/vector/table_query.sim
tests/script/general/vector/table_query.sim
+3
-1
tests/script/general/vector/table_time.sim
tests/script/general/vector/table_time.sim
+3
-1
tests/script/general/vector/testSuite.sim
tests/script/general/vector/testSuite.sim
+8
-9
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+126
-27
tests/script/unique/big/balance.sim
tests/script/unique/big/balance.sim
+9
-0
tests/script/unique/big/maxvnodes.sim
tests/script/unique/big/maxvnodes.sim
+9
-0
tests/script/unique/big/tcp.sim
tests/script/unique/big/tcp.sim
+9
-2
tests/script/unique/big/testSuite.sim
tests/script/unique/big/testSuite.sim
+3
-3
tests/script/unique/cluster/testSuite.sim
tests/script/unique/cluster/testSuite.sim
+1
-1
tests/script/unique/db/commit.sim
tests/script/unique/db/commit.sim
+8
-3
tests/script/unique/db/delete.sim
tests/script/unique/db/delete.sim
+9
-0
tests/script/unique/db/delete_part.sim
tests/script/unique/db/delete_part.sim
+8
-5
tests/script/unique/db/testSuite.sim
tests/script/unique/db/testSuite.sim
+3
-3
tests/script/unique/dnode/remove1.sim
tests/script/unique/dnode/remove1.sim
+9
-0
tests/script/unique/dnode/remove2.sim
tests/script/unique/dnode/remove2.sim
+9
-0
tests/script/unique/dnode/testSuite.sim
tests/script/unique/dnode/testSuite.sim
+3
-3
tests/script/unique/dnode/vnode_clean.sim
tests/script/unique/dnode/vnode_clean.sim
+8
-0
tests/script/unique/http/opentsdb.sim
tests/script/unique/http/opentsdb.sim
+10
-1
tests/script/unique/http/testSuite.sim
tests/script/unique/http/testSuite.sim
+1
-1
tests/script/unique/import/replica2.sim
tests/script/unique/import/replica2.sim
+33
-14
tests/script/unique/import/replica3.sim
tests/script/unique/import/replica3.sim
+99
-55
tests/script/unique/import/testSuite.sim
tests/script/unique/import/testSuite.sim
+2
-2
tests/script/unique/metrics/balance_replica1.sim
tests/script/unique/metrics/balance_replica1.sim
+10
-1
tests/script/unique/metrics/dnode2.sim
tests/script/unique/metrics/dnode2.sim
+10
-1
tests/script/unique/metrics/dnode2_stop.sim
tests/script/unique/metrics/dnode2_stop.sim
+10
-1
tests/script/unique/metrics/dnode3.sim
tests/script/unique/metrics/dnode3.sim
+10
-1
tests/script/unique/metrics/replica2_dnode4.sim
tests/script/unique/metrics/replica2_dnode4.sim
+10
-1
tests/script/unique/metrics/replica2_vnode3.sim
tests/script/unique/metrics/replica2_vnode3.sim
+10
-1
tests/script/unique/metrics/replica3_dnode6.sim
tests/script/unique/metrics/replica3_dnode6.sim
+10
-1
tests/script/unique/metrics/replica3_vnode3.sim
tests/script/unique/metrics/replica3_vnode3.sim
+10
-1
tests/script/unique/metrics/testSuite.sim
tests/script/unique/metrics/testSuite.sim
+8
-4
tests/script/unique/mnode/mgmtr2.sim
tests/script/unique/mnode/mgmtr2.sim
+8
-3
tests/script/unique/mnode/secondIp.sim
tests/script/unique/mnode/secondIp.sim
+8
-3
tests/script/unique/table/delete_part.sim
tests/script/unique/table/delete_part.sim
+9
-6
tests/script/unique/table/testSuite.sim
tests/script/unique/table/testSuite.sim
+1
-1
tests/script/unique/vnode/commit.sim
tests/script/unique/vnode/commit.sim
+8
-1
tests/script/unique/vnode/many.sim
tests/script/unique/vnode/many.sim
+8
-1
tests/script/unique/vnode/replica2_basic.sim
tests/script/unique/vnode/replica2_basic.sim
+9
-2
tests/script/unique/vnode/replica2_repeat.sim
tests/script/unique/vnode/replica2_repeat.sim
+8
-1
tests/script/unique/vnode/replica3_repeat.sim
tests/script/unique/vnode/replica3_repeat.sim
+8
-1
tests/script/unique/vnode/replica3_vgroup.sim
tests/script/unique/vnode/replica3_vgroup.sim
+8
-2
tests/script/unique/vnode/testSuite.sim
tests/script/unique/vnode/testSuite.sim
+6
-5
未找到文件。
src/mnode/src/mgmtDb.c
浏览文件 @
ae372d30
...
...
@@ -803,7 +803,7 @@ static SDbCfg mgmtGetAlterDbOption(SDbObj *pDb, SCMAlterDbMsg *pAlter) {
newCfg
.
daysToKeep2
=
daysToKeep2
;
}
if
(
compression
>
0
&&
compression
!=
pDb
->
cfg
.
compression
)
{
if
(
compression
>
=
0
&&
compression
!=
pDb
->
cfg
.
compression
)
{
mTrace
(
"db:%s, compression:%d change to %d"
,
pDb
->
name
,
pDb
->
cfg
.
compression
,
compression
);
newCfg
.
compression
=
compression
;
}
...
...
@@ -823,7 +823,7 @@ static SDbCfg mgmtGetAlterDbOption(SDbObj *pDb, SCMAlterDbMsg *pAlter) {
}
}
if
(
walLevel
>
0
&&
(
walLevel
<
TSDB_MIN_WAL_LEVEL
||
walLevel
>
TSDB_MAX_WAL_LEVEL
))
{
if
(
walLevel
>
=
0
&&
(
walLevel
<
TSDB_MIN_WAL_LEVEL
||
walLevel
>
TSDB_MAX_WAL_LEVEL
))
{
mError
(
"db:%s, wal level %d should be between 0-2, origin:%d"
,
pDb
->
name
,
walLevel
,
pDb
->
cfg
.
walLevel
);
terrno
=
TSDB_CODE_INVALID_OPTION
;
}
...
...
tests/script/general/alter/cached_schema_after_alter.sim
浏览文件 @
ae372d30
...
...
@@ -117,3 +117,5 @@ endi
if $data12 != 2 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/alter/count.sim
浏览文件 @
ae372d30
...
...
@@ -264,3 +264,4 @@ if $data00 != 31 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/alter/import.sim
浏览文件 @
ae372d30
...
...
@@ -47,3 +47,5 @@ sql select count(b) from tb
if $data00 != 5 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/alter/insert1.sim
浏览文件 @
ae372d30
...
...
@@ -1148,3 +1148,5 @@ endi
if $data78 != 11 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/alter/insert2.sim
浏览文件 @
ae372d30
...
...
@@ -681,3 +681,4 @@ if $data62 != NULL then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/alter/metrics.sim
浏览文件 @
ae372d30
...
...
@@ -781,3 +781,4 @@ if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/alter/table.sim
浏览文件 @
ae372d30
...
...
@@ -684,3 +684,4 @@ if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/alter/testSuite.sim
浏览文件 @
ae372d30
run general/alter/count.sim
run general/alter/cached_schema_after_alter.sim
run general/alter/count.sim
run general/alter/import.sim
run general/alter/insert1.sim
run general/alter/insert2.sim
...
...
tests/script/general/cache/new_metrics.sim
浏览文件 @
ae372d30
...
...
@@ -140,6 +140,4 @@ if $data04 != 10 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/cache/restart_metrics.sim
浏览文件 @
ae372d30
...
...
@@ -83,3 +83,4 @@ if $data02 != 3 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/cache/restart_table.sim
浏览文件 @
ae372d30
...
...
@@ -56,4 +56,4 @@ if $data01 != 1 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/cache/testSuite.sim
浏览文件 @
ae372d30
run general/cache/new_metrics.sim
run general/cache/restart_table.sim
run general/cache/restart_metrics.sim
run general/cache/new_metrics.sim
tests/script/general/column/commit.sim
浏览文件 @
ae372d30
...
...
@@ -151,4 +151,6 @@ if $data08 != 10 then
endi
if $data09 != 10 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/column/metrics.sim
浏览文件 @
ae372d30
...
...
@@ -215,3 +215,5 @@ endi
if $data09 != 20 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/column/table.sim
浏览文件 @
ae372d30
...
...
@@ -211,3 +211,5 @@ endi
if $data07 != 2.872281323 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/column/testSuite.sim
浏览文件 @
ae372d30
run general/column/table.sim
run general/column/metrics.sim
run general/column/stream.sim
run general/column/commit.sim
run general/column/metrics.sim
run general/column/table.sim
tests/script/general/compress/commitlog.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
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
ression
-v 1
system sh/cfg.sh -n dnode1 -c comp -v 1
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
@@ -88,9 +87,9 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep
20
000
sleep
5
000
system sh/exec.sh -n dnode1 -s start
sleep
10
000
sleep
3
000
print =============== step5
...
...
@@ -124,4 +123,4 @@ if $rows != $N then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compress/compress.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c comp
ression
-v 1
system sh/cfg.sh -n dnode1 -c comp -v 1
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
@@ -83,9 +82,9 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep
10
000
sleep
5
000
system sh/exec.sh -n dnode1 -s start
sleep
10
000
sleep
3
000
print =============== step5
...
...
@@ -119,4 +118,4 @@ if $rows != $N then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compress/compress2.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c comp
ression
-v 2
system sh/cfg.sh -n dnode1 -c comp -v 2
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
@@ -83,9 +82,9 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep
10
000
sleep
5
000
system sh/exec.sh -n dnode1 -s start
sleep
10
000
sleep
3
000
print =============== step5
...
...
@@ -119,4 +118,4 @@ if $rows != $N then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compress/testSuite.sim
浏览文件 @
ae372d30
run general/compress/compress.sim
run general/compress/uncompress.sim
run general/compress/commitlog.sim
run general/compress/compress2.sim
run general/compress/compress.sim
run general/compress/uncompress.sim
tests/script/general/compress/uncompress.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c comp
ression
-v 1
system sh/cfg.sh -n dnode1 -c comp -v 1
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
@@ -83,9 +81,9 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep
10
000
sleep
5
000
system sh/exec.sh -n dnode1 -s start
sleep
10
000
sleep
3
000
print =============== step5
...
...
@@ -119,4 +117,4 @@ if $rows != $N then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/avg.sim
浏览文件 @
ae372d30
...
...
@@ -153,4 +153,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/bottom.sim
浏览文件 @
ae372d30
...
...
@@ -94,4 +94,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/count.sim
浏览文件 @
ae372d30
...
...
@@ -169,4 +169,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/diff.sim
浏览文件 @
ae372d30
...
...
@@ -86,4 +86,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/diff2.sim
浏览文件 @
ae372d30
...
...
@@ -153,3 +153,5 @@ print =============== clear
#if $rows != 0 then
# return -1
#endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/first.sim
浏览文件 @
ae372d30
...
...
@@ -155,4 +155,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/interval.sim
浏览文件 @
ae372d30
...
...
@@ -171,4 +171,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/last.sim
浏览文件 @
ae372d30
...
...
@@ -154,4 +154,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/leastsquare.sim
浏览文件 @
ae372d30
...
...
@@ -96,3 +96,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/max.sim
浏览文件 @
ae372d30
...
...
@@ -154,4 +154,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/min.sim
浏览文件 @
ae372d30
...
...
@@ -155,4 +155,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/null.sim
浏览文件 @
ae372d30
...
...
@@ -222,4 +222,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/percentile.sim
浏览文件 @
ae372d30
...
...
@@ -112,3 +112,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/stddev.sim
浏览文件 @
ae372d30
...
...
@@ -93,4 +93,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/sum.sim
浏览文件 @
ae372d30
...
...
@@ -154,4 +154,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/compute/testSuite.sim
浏览文件 @
ae372d30
run general/compute/count.sim
run general/compute/avg.sim
run general/compute/sum.sim
run general/compute/min.sim
run general/compute/max.sim
run general/compute/first.sim
run general/compute/last.sim
run general/compute/stddev.sim
run general/compute/leastsquare.sim
run general/compute/top.sim
run general/compute/bottom.sim
run general/compute/
percentile
.sim
run general/compute/
count
.sim
run general/compute/diff.sim
run general/compute/diff2.sim
run general/compute/first.sim
run general/compute/interval.sim
run general/compute/last.sim
run general/compute/leastsquare.sim
run general/compute/max.sim
run general/compute/min.sim
run general/compute/null.sim
run general/compute/diff2.sim
run general/compute/percentile.sim
run general/compute/stddev.sim
run general/compute/sum.sim
run general/compute/top.sim
tests/script/general/compute/top.sim
浏览文件 @
ae372d30
...
...
@@ -94,4 +94,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/db/testSuite.sim
浏览文件 @
ae372d30
...
...
@@ -7,7 +7,7 @@ run general/db/basic5.sim
run general/db/delete_reuse1.sim
run general/db/delete_reuse2.sim
run general/db/delete_reusevnode.sim
#
run general/db/delete_reusevnode2.sim
run general/db/delete_reusevnode2.sim
run general/db/delete_writing1.sim
run general/db/delete_writing2.sim
run general/db/len.sim
...
...
tests/script/general/field/2.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_bt_
db
$tbPrefix =
fi_bt_
tb
$mtPrefix =
fi_bt_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -233,6 +231,8 @@ if $data00 != 100 then
return -1
endi
print sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol2 = 1
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol2 = 1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
if $data00 != 100 then
...
...
@@ -292,4 +292,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/3.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_3_
db
$tbPrefix =
fi_3_
tb
$mtPrefix =
fi_3_
mt
$dbPrefix = db
$tbPrefix = tb
$mtPrefix = mt
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -518,4 +516,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/4.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_4_
db
$tbPrefix =
fi_4_
tb
$mtPrefix =
fi_4_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -708,4 +706,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/5.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_5_
db
$tbPrefix =
fi_5_
tb
$mtPrefix =
fi_5_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -831,4 +829,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/6.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_6_
db
$tbPrefix =
fi_6_
tb
$mtPrefix =
fi_6_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -986,4 +984,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/bigint.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_bi_
db
$tbPrefix =
fi_bi_
tb
$mtPrefix =
fi_bi_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -157,4 +155,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/binary.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_by_
db
$tbPrefix =
fi_by_
tb
$mtPrefix =
fi_by_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -81,4 +79,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/bool.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_bo_
db
$tbPrefix =
fi_bo_
tb
$mtPrefix =
fi_bo_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -158,4 +156,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/double.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_do_
db
$tbPrefix =
fi_do_
tb
$mtPrefix =
fi_do_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -157,4 +155,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/float.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_fl_
db
$tbPrefix =
fi_fl_
tb
$mtPrefix =
fi_fl_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -157,4 +155,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/int.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_in_
db
$tbPrefix =
fi_in_
tb
$mtPrefix =
fi_in_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -157,4 +155,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/single.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_si_
db
$tbPrefix =
fi_si_
tb
$mtPrefix =
fi_si_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$rowNum = 20
print =============== step1
...
...
@@ -215,4 +213,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/smallint.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -9,9 +7,9 @@ sleep 3000
sql connect
print ======================== dnode1 start
$dbPrefix =
fi_sm_
db
$tbPrefix =
fi_sm_
tb
$mtPrefix =
fi_sm_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -157,4 +155,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/field/tinyint.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
...
...
@@ -10,9 +8,9 @@ sql connect
print ======================== dnode1 start
$dbPrefix =
fi_ti_
db
$tbPrefix =
fi_ti_
tb
$mtPrefix =
fi_ti_m
t
$dbPrefix = db
$tbPrefix = tb
$mtPrefix =
s
t
$tbNum = 10
$rowNum = 20
$totalNum = 200
...
...
@@ -158,4 +156,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/http/testSuite.sim
浏览文件 @
ae372d30
...
...
@@ -4,5 +4,5 @@ run general/http/restful_limit.sim
run general/http/restful_full.sim
run general/http/prepare.sim
run general/http/telegraf.sim
#
run general/http/grafana_bug.sim
#
run general/http/grafana.sim
run general/http/grafana_bug.sim
run general/http/grafana.sim
tests/script/general/import/basic.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -25,10 +19,10 @@ system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode3 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode1 -c
commitlog
-v 0
system sh/cfg.sh -n dnode2 -c
commitlog
-v 0
system sh/cfg.sh -n dnode3 -c
commitlog
-v 0
system sh/cfg.sh -n dnode4 -c
commitlog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode3 -c
walLevel
-v 0
system sh/cfg.sh -n dnode4 -c
walLevel
-v 0
print ========= start dnode1
system sh/exec.sh -n dnode1 -s start
...
...
@@ -50,14 +44,14 @@ endi
print ================= step2
sql insert into tb values(1564641708000, 8000)
sql select * from tb;
if $rows !=
1
then
if $rows !=
2
then
return -1
endi
print ================= step3
sql insert into tb values(1564641720000, 20000)
sql select * from tb;
if $rows !=
2
then
if $rows !=
3
then
return -1
endi
...
...
@@ -76,7 +70,7 @@ sql insert into tb values(1564641714000, 14000)
sql insert into tb values(1564641725000, 25000)
sql insert into tb values(1564641740000, 40000)
sql select * from tb;
if $rows !=
6
then
if $rows !=
8
then
return -1
endi
...
...
@@ -87,7 +81,7 @@ sql import into tb values(1564641723000, 23000)
sql import into tb values(1564641734000, 34000)
sql import into tb values(1564641750000, 50000)
sql select * from tb;
if $rows != 1
1
then
if $rows != 1
3
then
return -1
endi
...
...
@@ -98,7 +92,7 @@ sql import into tb values(1564641723001, 23001)
sql import into tb values(1564641734001, 34001)
sql import into tb values(1564641750001, 50001)
sql select * from tb;
if $rows != 1
6
then
if $rows != 1
8
then
return -1
endi
...
...
@@ -108,28 +102,28 @@ sql insert into tb values(1564641714002, 14002)
sql insert into tb values(1564641725002, 25002)
sql insert into tb values(1564641900000, 200000)
sql select * from tb;
if $rows !=
17
then
if $rows !=
22
then
return -1
endi
print ================= step9 only insert last one
sql import into tb values(1564641705000, 5000)(1564641718000, 18000)(1564642400000, 700000)
sql select * from tb;
if $rows != 2
0
then
if $rows != 2
5
then
return -1
endi
print ================= step10
sql import into tb values(1564641705000, 5000)(1564641718000, 18000)(1564642400000, 70000)
sql select * from tb;
if $rows != 2
0
then
if $rows != 2
5
then
return -1
endi
print ================= step11
sql import into tb values(1564642400000, 700000)
sql select * from tb;
if $rows != 2
0
then
if $rows != 2
5
then
return -1
endi
...
...
@@ -137,7 +131,7 @@ print ================= step12
sql import into tb values(1564641709527, 9527)(1564641709527, 9528)
sql select * from tb;
print rows=> $rows
if $rows != 2
1
then
if $rows != 2
6
then
return -1
endi
...
...
@@ -145,7 +139,8 @@ print ================= step13
sql import into tb values(1564641709898, 9898)(1564641709897, 9897)
sql select * from tb;
print rows=> $rows
if $rows != 2
3
then
if $rows != 2
8
then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/import/commit.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -25,10 +19,10 @@ system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode3 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode1 -c
commitlog
-v 0
system sh/cfg.sh -n dnode2 -c
commitlog
-v 0
system sh/cfg.sh -n dnode3 -c
commitlog
-v 0
system sh/cfg.sh -n dnode4 -c
commitlog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode3 -c
walLevel
-v 0
system sh/cfg.sh -n dnode4 -c
walLevel
-v 0
print ========= start dnode1
system sh/exec.sh -n dnode1 -s start
...
...
@@ -93,6 +87,4 @@ if $rows != 12 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/import/large.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -25,10 +19,10 @@ system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode3 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode1 -c
commitlog
-v 0
system sh/cfg.sh -n dnode2 -c
commitlog
-v 0
system sh/cfg.sh -n dnode3 -c
commitlog
-v 0
system sh/cfg.sh -n dnode4 -c
commitlog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode3 -c
walLevel
-v 0
system sh/cfg.sh -n dnode4 -c
walLevel
-v 0
print ========= start dnode1
system sh/exec.sh -n dnode1 -s start
...
...
@@ -99,4 +93,6 @@ while $i < 1000
$i = $i + 1
endw
print ================= step2
\ No newline at end of file
print ================= step2
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/import/replica1.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -25,10 +20,10 @@ system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode3 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode1 -c
commitlog -v 0
system sh/cfg.sh -n dnode2 -c
commitlog -v 0
system sh/cfg.sh -n dnode3 -c
commitlog -v 0
system sh/cfg.sh -n dnode4 -c
commitlog -v 0
system sh/cfg.sh -n dnode1 -c
walLevel -v 2
system sh/cfg.sh -n dnode2 -c
walLevel -v 2
system sh/cfg.sh -n dnode3 -c
walLevel -v 2
system sh/cfg.sh -n dnode4 -c
walLevel -v 2
print ========= start dnode1
system sh/exec.sh -n dnode1 -s start
...
...
@@ -40,53 +35,59 @@ sql use ir1db
sql create table tb(ts timestamp, i int)
print ================= step1
sql import into tb values(
now+10000a
, 10000)
sql import into tb values(
1520000010000
, 10000)
sql select * from tb;
print $rows
if $rows != 1 then
return -1
endi
print ================= step2
sql insert into tb values(now+8000a, 8000)
sql insert into tb values(1520000008000, 8000)
print $rows
sql select * from tb;
if $rows !=
1
then
if $rows !=
2
then
return -1
endi
print ================= step3
sql insert into tb values(
now+20000a
, 20000)
sql insert into tb values(
1520000020000
, 20000)
sql select * from tb;
if $rows != 2 then
print $rows
if $rows != 3 then
return -1
endi
print ================= step4
sql import into tb values(
now+8000a
, 9000)
sql import into tb values(
now+15000a
, 15000)
sql import into tb values(
now+30000a
, 30000)
sql import into tb values(
1520000009000
, 9000)
sql import into tb values(
1520000015000
, 15000)
sql import into tb values(
1520000030000
, 30000)
sql select * from tb;
if $rows != 5 then
print $rows
if $rows != 6 then
return -1
endi
print ================= step5
sql insert into tb values(
now+8000a
, 8000)
sql insert into tb values(
now+14000a
, 14000)
sql insert into tb values(
now+25000a
, 25000)
sql insert into tb values(
now+40000a
, 40000)
sql insert into tb values(
1520000008000
, 8000)
sql insert into tb values(
1520000014000
, 14000)
sql insert into tb values(
1520000025000
, 25000)
sql insert into tb values(
1520000040000
, 40000)
sql select * from tb;
if $rows != 6 then
print $rows
if $rows != 9 then
return -1
endi
print ================= step6
sql import into tb values(
now+7000a
, 7000)
sql import into tb values(
now+12000a
, 12000)
sql import into tb values(
now+23000a
, 23000)
sql import into tb values(
now+34000a
, 34000)
sql import into tb values(
now+50000a
, 50000)
sql import into tb values(
1520000007000
, 7000)
sql import into tb values(
1520000012000
, 12000)
sql import into tb values(
1520000023000
, 23000)
sql import into tb values(
1520000034000
, 34000)
sql import into tb values(
1520000050000
, 50000)
sql select * from tb;
if $rows != 11 then
print $rows
if $rows != 14 then
return -1
endi
...
...
@@ -98,46 +99,63 @@ sleep 5000
sql use ir1db
sql select * from tb;
if $rows != 1
1
then
if $rows != 1
4
then
return -1
endi
print ================= step7
sql import into tb values(
now+7001a
, 7001)
sql import into tb values(
now+12001a
, 12001)
sql import into tb values(
now+23001a
, 23001)
sql import into tb values(
now+34001a
, 34001)
sql import into tb values(
now+50001a
, 50001)
sql import into tb values(
1520000007001
, 7001)
sql import into tb values(
1520000012001
, 12001)
sql import into tb values(
1520000023001
, 23001)
sql import into tb values(
1520000034001
, 34001)
sql import into tb values(
1520000050001
, 50001)
sql select * from tb;
if $rows != 16 then
print $rows
if $rows != 19 then
return -1
endi
print ================= step8
sql insert into tb values(
now+8002a
, 8002)
sql insert into tb values(
now+14002a
, 14002)
sql insert into tb values(
now+25002a
, 25002)
sql insert into tb values(
now+200000a
, 60000)
sql insert into tb values(
1520000008002
, 8002)
sql insert into tb values(
1520000014002
, 14002)
sql insert into tb values(
1520000025002
, 25002)
sql insert into tb values(
1520000060000
, 60000)
sql select * from tb;
if $rows != 17 then
print $rows
if $rows != 24 then
return -1
endi
print ================= step9
sql import into tb values(now-30d, 7003)
sql import into tb values(now-20d, 34003)
sql import into tb values(now-10d, 34003)
sql import into tb values(now-5d, 34003)
sql import into tb values(now+1m, 50001)
sql import into tb values(now+2m, 50001)
sql import into tb values(now+3m, 50001)
sql import into tb values(now+4m, 50002)
sql import into tb values(now+5m, 50003)
sql import into tb values(now+6m, 50004)
sql import into tb values(now+7m, 50001)
sql import into tb values(now+8m, 500051)
#1520000000000
#sql import into tb values(now-30d, 7003)
#sql import into tb values(now-20d, 34003)
#sql import into tb values(now-10d, 34003)
#sql import into tb values(now-5d, 34003)
#sql import into tb values(now+1d, 50001)
#sql import into tb values(now+2d, 50001)
#sql import into tb values(now+6d, 50001)
#sql import into tb values(now+8d, 50002)
#sql import into tb values(now+10d, 50003)
#sql import into tb values(now+12d, 50004)
#sql import into tb values(now+14d, 50001)
#sql import into tb values(now+16d, 500051)
sql import into tb values(1517408000000, 7003)
sql import into tb values(1518272000000, 34003)
sql import into tb values(1519136000000, 34003)
sql import into tb values(1519568000000, 34003)
sql import into tb values(1519654400000, 50001)
sql import into tb values(1519827200000, 50001)
sql import into tb values(1520345600000, 50001)
sql import into tb values(1520691200000, 50002)
sql import into tb values(1520864000000, 50003)
sql import into tb values(1521900800000, 50004)
sql import into tb values(1523110400000, 50001)
sql import into tb values(1521382400000, 500051)
sql select * from tb;
if $rows != 29 then
print $rows
if $rows != 36 then
return -1
endi
...
...
@@ -149,23 +167,44 @@ sleep 5000
sql use ir1db
sql select * from tb;
if $rows != 29 then
print $rows
if $rows != 36 then
return -1
endi
print ================= step11
sql import into tb values(now-50d, 7003) (now-48d, 7003) (now-46d, 7003) (now-44d, 7003) (now-42d, 7003)
#sql import into tb values(now-50d, 7003) (now-48d, 7003) (now-46d, 7003) (now-44d, 7003) (now-42d, 7003)
sql import into tb values(1515680000000, 7003) (1515852800000, 7003) (1516025600000, 7003) (1516198400000, 7003) (1516371200000, 7003)
sql select * from tb;
if $rows !=
34
then
if $rows !=
41
then
return -1
endi
sql import into tb values(now-19d, 7003) (now-18d, 7003) (now-17d, 7003) (now-16d, 7003) (now-15d, 7003) (now-14d, 7003) (now-13d, 7003) (now-12d, 7003) (now-11d, 7003)
print ================= step12
#1520000000000
#sql import into tb values(now-19d, 7003) (now-18d, 7003) (now-17d, 7003) (now-16d, 7003) (now-15d, 7003) (now-14d, 7003) (now-13d, 7003) (now-12d, 7003) (now-11d, 7003)
sql import into tb values(1518358400000, 7003) (1518444800000, 7003) (1518531200000, 7003) (1518617600000, 7003) (1518704000000, 7003) (1518790400000, 7003) (1518876800000, 7003) (1518963200000, 7003) (1519049600000, 7003)
sql select * from tb;
if $rows != 43 then
print $rows
if $rows != 50 then
return -1
endi
print ================= step14
#1520000000000
#sql import into tb values(now-48d, 34003)
#sql import into tb values(now-38d, 50001)
#sql import into tb values(now-28d, 50001)
sql import into tb values(1515852800001, 34003)
sql import into tb values(1516716800000, 50001)
sql import into tb values(1517580800000, 50001)
sql select * from tb;
if $rows != 50 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/import/testSuite.sim
浏览文件 @
ae372d30
run general/import/basic.sim
#
run general/import/commit.sim
run general/import/commit.sim
run general/import/large.sim
run general/import/replica1.sim
tests/script/general/insert/tcp.sim
浏览文件 @
ae372d30
...
...
@@ -28,10 +28,4 @@ endw
sql select * from tb
sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/insert/testSuite.sim
浏览文件 @
ae372d30
run general/insert/basic.sim
#
run general/insert/insert_drop.sim
run general/insert/insert_drop.sim
run general/insert/query_block1_memory.sim
run general/insert/query_block2_memory.sim
run general/insert/query_block1_file.sim
...
...
tests/script/general/metrics/disk.sim
浏览文件 @
ae372d30
...
...
@@ -194,4 +194,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/metrics/metrics.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
...
...
@@ -135,3 +133,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/metrics/values.sim
浏览文件 @
ae372d30
...
...
@@ -102,25 +102,4 @@ if $rows != 100 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/metrics/vnode3.sim
浏览文件 @
ae372d30
...
...
@@ -175,4 +175,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/table/testSuite.sim
浏览文件 @
ae372d30
...
...
@@ -11,17 +11,17 @@ run general/table/column_value.sim
run general/table/column2.sim
run general/table/date.sim
run general/table/db.table.sim
#
run general/table/delete_reuse1.sim
#
run general/table/delete_reuse2.sim
#
run general/table/delete_writing.sim
#
run general/table/describe.sim
run general/table/delete_reuse1.sim
run general/table/delete_reuse2.sim
run general/table/delete_writing.sim
run general/table/describe.sim
run general/table/double.sim
#
run general/table/fill.sim
run general/table/fill.sim
run general/table/float.sim
run general/table/int.sim
run general/table/limit.sim
run general/table/smallint.sim
#
run general/table/table_len.sim
run general/table/table_len.sim
run general/table/table.sim
run general/table/tinyint.sim
run general/table/vgroup.sim
tests/script/general/tag/3.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
sql reset query cache
print ======================== dnode1 start
...
...
@@ -521,3 +518,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/4.sim
浏览文件 @
ae372d30
...
...
@@ -711,3 +711,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/5.sim
浏览文件 @
ae372d30
...
...
@@ -834,3 +834,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/6.sim
浏览文件 @
ae372d30
...
...
@@ -989,3 +989,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/add.sim
浏览文件 @
ae372d30
...
...
@@ -851,4 +851,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/bigint.sim
浏览文件 @
ae372d30
...
...
@@ -239,4 +239,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/binary.sim
浏览文件 @
ae372d30
...
...
@@ -239,4 +239,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/binary_binary.sim
浏览文件 @
ae372d30
...
...
@@ -306,4 +306,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/bool.sim
浏览文件 @
ae372d30
...
...
@@ -236,4 +236,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/bool_binary.sim
浏览文件 @
ae372d30
...
...
@@ -306,4 +306,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/bool_int.sim
浏览文件 @
ae372d30
...
...
@@ -322,4 +322,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/change.sim
浏览文件 @
ae372d30
...
...
@@ -511,4 +511,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/column.sim
浏览文件 @
ae372d30
...
...
@@ -91,4 +91,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/commit.sim
浏览文件 @
ae372d30
...
...
@@ -1180,4 +1180,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/create.sim
浏览文件 @
ae372d30
...
...
@@ -598,3 +598,5 @@ print $data00 $data01 $data02
if $data02 != 12345 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/delete.sim
浏览文件 @
ae372d30
...
...
@@ -823,4 +823,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/double.sim
浏览文件 @
ae372d30
...
...
@@ -239,4 +239,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/filter.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
...
...
@@ -146,3 +144,5 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/float.sim
浏览文件 @
ae372d30
...
...
@@ -239,4 +239,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/int.sim
浏览文件 @
ae372d30
...
...
@@ -239,4 +239,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/int_binary.sim
浏览文件 @
ae372d30
...
...
@@ -306,4 +306,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/int_float.sim
浏览文件 @
ae372d30
...
...
@@ -322,4 +322,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/set.sim
浏览文件 @
ae372d30
...
...
@@ -455,4 +455,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/smallint.sim
浏览文件 @
ae372d30
...
...
@@ -239,4 +239,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/tag/testSuite.sim
浏览文件 @
ae372d30
run general/tag/filter.sim
run general/tag/column.sim
run general/tag/bool.sim
run general/tag/smallint.sim
run general/tag/tinyint.sim
run general/tag/int.sim
run general/tag/bigint.sim
run general/tag/float.sim
run general/tag/double.sim
run general/tag/binary.sim
run general/tag/bool_int.sim
run general/tag/bool_binary.sim
run general/tag/int_float.sim
run general/tag/int_binary.sim
run general/tag/binary_binary.sim
run general/tag/3.sim
run general/tag/4.sim
run general/tag/5.sim
run general/tag/6.sim
run general/tag/add.sim
run general/tag/bigint.sim
run general/tag/binary_binary.sim
run general/tag/binary.sim
run general/tag/bool_binary.sim
run general/tag/bool_int.sim
run general/tag/bool.sim
run general/tag/change.sim
run general/tag/column.sim
run general/tag/commit.sim
run general/tag/create.sim
run general/tag/delete.sim
run general/tag/change.sim
run general/tag/double.sim
run general/tag/filter.sim
run general/tag/float.sim
run general/tag/int_binary.sim
run general/tag/int_float.sim
run general/tag/int.sim
run general/tag/set.sim
run general/tag/add.sim
run general/tag/commit.sim
\ No newline at end of file
run general/tag/smallint.sim
run general/tag/tinyint.sim
tests/script/general/tag/tinyint.sim
浏览文件 @
ae372d30
...
...
@@ -239,4 +239,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/user/testSuite.sim
浏览文件 @
ae372d30
run general/user/basic1.sim
#
run general/user/monitor.sim
run general/user/monitor.sim
run general/user/pass_alter.sim
run general/user/pass_len.sim
run general/user/user_create.sim
...
...
tests/script/general/vector/metrics_field.sim
浏览文件 @
ae372d30
...
...
@@ -618,4 +618,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/metrics_mix.sim
浏览文件 @
ae372d30
...
...
@@ -618,4 +618,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/metrics_query.sim
浏览文件 @
ae372d30
...
...
@@ -614,4 +614,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/metrics_tag.sim
浏览文件 @
ae372d30
...
...
@@ -614,4 +614,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/metrics_time.sim
浏览文件 @
ae372d30
...
...
@@ -614,4 +614,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/multi.sim
浏览文件 @
ae372d30
...
...
@@ -206,10 +206,11 @@ sql select a + f from $tb where g = 2 and ts > now + 4m order by ts asc -x step
return -1
step74:
print =============== clear
sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/single.sim
浏览文件 @
ae372d30
...
...
@@ -298,4 +298,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/table_field.sim
浏览文件 @
ae372d30
...
...
@@ -614,4 +614,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/table_mix.sim
浏览文件 @
ae372d30
...
...
@@ -614,4 +614,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/table_query.sim
浏览文件 @
ae372d30
...
...
@@ -614,4 +614,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/table_time.sim
浏览文件 @
ae372d30
...
...
@@ -614,4 +614,6 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/general/vector/testSuite.sim
浏览文件 @
ae372d30
run general/vector/single.sim
run general/vector/multi.sim
run general/vector/table_query.sim
run general/vector/table_time.sim
run general/vector/table_field.sim
run general/vector/table_mix.sim
run general/vector/metrics_field.sim
run general/vector/metrics_mix.sim
run general/vector/metrics_query.sim
run general/vector/metrics_tag.sim
run general/vector/metrics_time.sim
run general/vector/metrics_field.sim
run general/vector/metrics_mix.sim
run general/vector/multi.sim
run general/vector/single.sim
run general/vector/table_field.sim
run general/vector/table_mix.sim
run general/vector/table_query.sim
run general/vector/table_time.sim
tests/script/jenkins/basic.txt
浏览文件 @
ae372d30
...
...
@@ -6,20 +6,43 @@ cd ../../../debug; cmake ..
#cd ../../../debug; make clean
cd ../../../debug; make
######### general #########
#alter
#cache
#./test.sh -f general/cache/restart_table.sim
#./test.sh -f general/alter/cached_schema_after_alter.sim
#./test.sh -f general/alter/count.sim
#./test.sh -f general/alter/import.sim
#./test.sh -f general/alter/insert1.sim
#./test.sh -f general/alter/insert2.sim
#./test.sh -f general/alter/metrics.sim
#./test.sh -f general/alter/table.sim
./test.sh -f general/cache/new_metrics.sim
#./test.sh -f general/cache/restart_metrics.sim
#./test.sh -f general/cache/new_metrics.sim
#column
#compress
#compute
./test.sh -f general/cache/restart_table.sim
#./test.sh -f general/column/commit.sim
#./test.sh -f general/column/metrics.sim
#./test.sh -f general/column/table.sim
./test.sh -f general/compress/commitlog.sim
./test.sh -f general/compress/compress.sim
./test.sh -f general/compress/compress2.sim
./test.sh -f general/compress/uncompress.sim
#./test.sh -f general/compute/avg.sim
./test.sh -f general/compute/bottom.sim
#./test.sh -f general/compute/count.sim
./test.sh -f general/compute/diff.sim
#./test.sh -f general/compute/diff2.sim
#./test.sh -f general/compute/first.sim
#./test.sh -f general/compute/interval.sim
#./test.sh -f general/compute/last.sim
#./test.sh -f general/compute/leastsquare.sim
#./test.sh -f general/compute/max.sim
#./test.sh -f general/compute/min.sim
./test.sh -f general/compute/null.sim
./test.sh -f general/compute/percentile.sim
./test.sh -f general/compute/stddev.sim
#./test.sh -f general/compute/sum.sim
./test.sh -f general/compute/top.sim
./test.sh -f general/db/basic.sim
./test.sh -f general/db/basic1.sim
...
...
@@ -37,7 +60,17 @@ cd ../../../debug; make
./test.sh -f general/db/repeat.sim
./test.sh -f general/db/tables.sim
#field
#./test.sh -f general/field/2.sim
#./test.sh -f general/field/3.sim
#./test.sh -f general/field/4.sim
#./test.sh -f general/field/5.sim
#./test.sh -f general/field/6.sim
./test.sh -f general/field/bigint.sim
#./test.sh -f general/field/binary.sim
./test.sh -f general/field/bool.sim
#./test.sh -f general/field/single.sim
./test.sh -f general/field/smallint.sim
./test.sh -f general/field/tinyint.sim
./test.sh -f general/http/restful.sim
./test.sh -f general/http/restful_insert.sim
...
...
@@ -48,8 +81,10 @@ cd ../../../debug; make
#./test.sh -f general/http/grafana_bug.sim
#./test.sh -f general/http/grafana.sim
#import
./test.sh -f general/import/basic.sim
./test.sh -f general/import/commit.sim
./test.sh -f general/import/large.sim
#./test.sh -f general/import/replica1.sim
./test.sh -f general/insert/basic.sim
#./test.sh -f general/insert/insert_drop.sim
...
...
@@ -61,8 +96,11 @@ cd ../../../debug; make
./test.sh -f general/insert/query_multi_file.sim
./test.sh -f general/insert/tcp.sim
#./test.sh -f general/metrics/disk.sim
#./test.sh -f general/metrics/metrics.sim
#./test.sh -f general/metrics/values.sim
#./test.sh -f general/metrics/vnode3.sim
#metrics
#parser
#stream
...
...
@@ -94,19 +132,52 @@ cd ../../../debug; make
./test.sh -f general/table/tinyint.sim
./test.sh -f general/table/vgroup.sim
#tag
#./test.sh -f general/tag/3.sim
#./test.sh -f general/tag/4.sim
#./test.sh -f general/tag/5.sim
#./test.sh -f general/tag/6.sim
#./test.sh -f general/tag/add.sim
#./test.sh -f general/tag/bigint.sim
#./test.sh -f general/tag/binary_binary.sim
#./test.sh -f general/tag/binary.sim
#./test.sh -f general/tag/bool_binary.sim
#./test.sh -f general/tag/bool_int.sim
#./test.sh -f general/tag/bool.sim
#./test.sh -f general/tag/change.sim
#./test.sh -f general/tag/column.sim
#./test.sh -f general/tag/commit.sim
#./test.sh -f general/tag/create.sim
#./test.sh -f general/tag/delete.sim
#./test.sh -f general/tag/double.sim
#./test.sh -f general/tag/filter.sim
#./test.sh -f general/tag/float.sim
#./test.sh -f general/tag/int_binary.sim
#./test.sh -f general/tag/int_float.sim
#./test.sh -f general/tag/int.sim
#./test.sh -f general/tag/set.sim
#./test.sh -f general/tag/smallint.sim
#./test.sh -f general/tag/tinyint.sim
./test.sh -f general/user/basic1.sim
./test.sh -f general/user/monitor.sim
#
./test.sh -f general/user/monitor.sim
./test.sh -f general/user/pass_alter.sim
./test.sh -f general/user/pass_len.sim
./test.sh -f general/user/user_create.sim
./test.sh -f general/user/user_len.sim
#vector
#./test.sh -f general/vector/metrics_field.sim
#./test.sh -f general/vector/metrics_mix.sim
#./test.sh -f general/vector/metrics_query.sim
#./test.sh -f general/vector/metrics_tag.sim
#./test.sh -f general/vector/metrics_time.sim
#./test.sh -f general/vector/multi.sim
./test.sh -f general/vector/single.sim
#./test.sh -f general/vector/table_field.sim
#./test.sh -f general/vector/table_mix.sim
#./test.sh -f general/vector/table_query.sim
#./test.sh -f general/vector/table_time.sim
#########
unique
#########
#########
###############
#########
./test.sh -u -f unique/account/account_create.sim
./test.sh -u -f unique/account/account_delete.sim
...
...
@@ -120,7 +191,9 @@ cd ../../../debug; make
./test.sh -u -f unique/account/user_create.sim
./test.sh -u -f unique/account/user_len.sim
#big
#./test.sh -u -f unique/big/balance.sim
#./test.sh -u -f unique/big/maxvnodes.sim
#./test.sh -u -f unique/big/tcp.sim
./test.sh -u -f unique/cluster/balance1.sim
./test.sh -u -f unique/cluster/balance2.sim
...
...
@@ -129,6 +202,9 @@ cd ../../../debug; make
./test.sh -u -f unique/column/replica3.sim
#./test.sh -u -f unique/db/commit.sim
#./test.sh -u -f unique/db/delete.sim
#./test.sh -u -f unique/db/delete_part.sim
./test.sh -u -f unique/db/replica_add12.sim
./test.sh -u -f unique/db/replica_add13.sim
./test.sh -u -f unique/db/replica_add23.sim
...
...
@@ -143,12 +219,24 @@ cd ../../../debug; make
./test.sh -u -f unique/dnode/balancex.sim
./test.sh -u -f unique/dnode/offline1.sim
./test.sh -u -f unique/dnode/offline2.sim
#./test.sh -u -f unique/dnode/remove1.sim
#./test.sh -u -f unique/dnode/remove2.sim
#./test.sh -u -f unique/dnode/vnode_clean.sim
./test.sh -u -f unique/http/admin.sim
./test.sh -u -f unique/http/opentsdb.sim
#import
#./test.sh -u -f unique/import/replica2.sim
#./test.sh -u -f unique/import/replica3.sim
#metrics
#./test.sh -u -f unique/metrics/balance_replica1.sim
#./test.sh -u -f unique/metrics/dnode2_stop.sim
#./test.sh -u -f unique/metrics/dnode2.sim
#./test.sh -u -f unique/metrics/dnode3.sim
#./test.sh -u -f unique/metrics/replica2_dnode4.sim
#./test.sh -u -f unique/metrics/replica2_vnode3.sim
#./test.sh -u -f unique/metrics/replica3_dnode6.sim
#./test.sh -u -f unique/metrics/replica3_vnode3.sim
./test.sh -u -f unique/mnode/mgmt22.sim
./test.sh -u -f unique/mnode/mgmt23.sim
...
...
@@ -157,10 +245,21 @@ cd ../../../debug; make
./test.sh -u -f unique/mnode/mgmt26.sim
./test.sh -u -f unique/mnode/mgmt33.sim
./test.sh -u -f unique/mnode/mgmt34.sim
#./test.sh -u -f unique/mnode/mgmtr2.sim
#./test.sh -u -f unique/mnode/secondIp.sim
#stream
#table
./test.sh -u -f unique/table/delete_part.sim
./test.sh -u -f unique/vnode/replica2_basic2.sim
./test.sh -u -f unique/vnode/replica3_basic.sim
#./test.sh -u -f unique/vnode/commit.sim
#./test.sh -u -f unique/vnode/many.sim
#./test.sh -u -f unique/vnode/replica2_basic.sim
./test.sh -u -f unique/vnode/replica2_basic2.sim
./test.sh -u -f unique/vnode/replica3_basic.sim
\ No newline at end of file
#./test.sh -u -f unique/vnode/replica2_repeat.sim
./test.sh -u -f unique/vnode/replica3_basic.sim
#./test.sh -u -f unique/vnode/replica3_repeat.sim
#./test.sh -u -f unique/vnode/replica3_vgroup.sim
tests/script/unique/big/balance.sim
浏览文件 @
ae372d30
...
...
@@ -304,3 +304,12 @@ print select count(*) from mt $data00 expect $rowNum
if $data00 != $totalNum then
goto show5
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/big/maxvnodes.sim
浏览文件 @
ae372d30
...
...
@@ -79,3 +79,12 @@ sql select count(*) from mt
if $data00 != 25600 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/big/tcp.sim
浏览文件 @
ae372d30
...
...
@@ -103,5 +103,12 @@ while $i < 100
$i = $i + 1
endw
system sh/stop_dnodes.sh
sleep 10000
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
tests/script/unique/big/testSuite.sim
浏览文件 @
ae372d30
#
run unique/big/balance.sim
#
run unique/big/maxvnodes.sim
#
run unique/big/tcp.sim
run unique/big/balance.sim
run unique/big/maxvnodes.sim
run unique/big/tcp.sim
tests/script/unique/cluster/testSuite.sim
浏览文件 @
ae372d30
run unique/cluster/balance1.sim
run unique/cluster/balance2.sim
run unique/cluster/balance3.sim
#
run unique/cluster/cache.sim
run unique/cluster/cache.sim
tests/script/unique/db/commit.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -118,3 +115,11 @@ if $data01 != 40 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/delete.sim
浏览文件 @
ae372d30
...
...
@@ -44,3 +44,12 @@ sql show databases
if $rows != 0 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/delete_part.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -77,3 +72,11 @@ begin:
goto begin
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/db/testSuite.sim
浏览文件 @
ae372d30
#
run unique/db/commit.sim
#
run unique/db/delete.sim
run unique/db/commit.sim
run unique/db/delete.sim
run unique/db/replica_add12.sim
run unique/db/replica_add13.sim
run unique/db/replica_add23.sim
...
...
@@ -7,4 +7,4 @@ run unique/db/replica_reduce21.sim
run unique/db/replica_reduce32.sim
run unique/db/replica_reduce31.sim
run unique/db/replica_part.sim
#
run unique/db/delete_part.sim
run unique/db/delete_part.sim
tests/script/unique/dnode/remove1.sim
浏览文件 @
ae372d30
...
...
@@ -194,3 +194,12 @@ endi
if $data41 != 35 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/remove2.sim
浏览文件 @
ae372d30
...
...
@@ -140,3 +140,12 @@ endi
if $data41 != 35 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnode/testSuite.sim
浏览文件 @
ae372d30
...
...
@@ -4,6 +4,6 @@ run unique/dnode/balance3.sim
run unique/dnode/balancex.sim
run unique/dnode/offline1.sim
run unique/dnode/offline2.sim
#
run unique/dnode/remove1.sim
#
run unique/dnode/remove2.sim
#
run unique/dnode/vnode_clean.sim
run unique/dnode/remove1.sim
run unique/dnode/remove2.sim
run unique/dnode/vnode_clean.sim
tests/script/unique/dnode/vnode_clean.sim
浏览文件 @
ae372d30
...
...
@@ -302,3 +302,11 @@ if $data41 != 45 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/http/opentsdb.sim
浏览文件 @
ae372d30
...
...
@@ -234,4 +234,13 @@ system_content curl -u root:taosdata -d 'select count(*) from db.sys_cpu_d_bbb'
print $system_content
if $system_content != @{"status":"succ","head":["count(*)"],"data":[[8]],"rows":1}@ then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/http/testSuite.sim
浏览文件 @
ae372d30
run unique/http/admin.sim
#run general/http/opentsdb.sim
\ No newline at end of file
run general/http/opentsdb.sim
\ No newline at end of file
tests/script/unique/import/replica2.sim
浏览文件 @
ae372d30
...
...
@@ -40,14 +40,16 @@ sql create table tb(ts timestamp, i int)
print ================= step1
sql import into tb values(1520000010000, 10000)
sql select * from tb;
print $rows
if $rows != 1 then
return -1
endi
print ================= step2
sql insert into tb values(1520000008000, 8000)
print $rows
sql select * from tb;
if $rows !=
1
then
if $rows !=
2
then
return -1
endi
...
...
@@ -55,7 +57,7 @@ print ================= step3
sql insert into tb values(1520000020000, 20000)
sql select * from tb;
print $rows
if $rows !=
2
then
if $rows !=
3
then
return -1
endi
...
...
@@ -64,7 +66,8 @@ sql import into tb values(1520000009000, 9000)
sql import into tb values(1520000015000, 15000)
sql import into tb values(1520000030000, 30000)
sql select * from tb;
if $rows != 5 then
print $rows
if $rows != 6 then
return -1
endi
...
...
@@ -74,7 +77,8 @@ sql insert into tb values(1520000014000, 14000)
sql insert into tb values(1520000025000, 25000)
sql insert into tb values(1520000040000, 40000)
sql select * from tb;
if $rows != 6 then
print $rows
if $rows != 9 then
return -1
endi
...
...
@@ -85,7 +89,8 @@ sql import into tb values(1520000023000, 23000)
sql import into tb values(1520000034000, 34000)
sql import into tb values(1520000050000, 50000)
sql select * from tb;
if $rows != 11 then
print $rows
if $rows != 14 then
return -1
endi
...
...
@@ -95,7 +100,7 @@ sleep 5000
system sh/exec_up.sh -n dnode1 -s start
sleep 5000
sql select * from tb;
if $rows != 1
1
then
if $rows != 1
4
then
return -1
endi
...
...
@@ -106,7 +111,8 @@ sql import into tb values(1520000023001, 23001)
sql import into tb values(1520000034001, 34001)
sql import into tb values(1520000050001, 50001)
sql select * from tb;
if $rows != 16 then
print $rows
if $rows != 19 then
return -1
endi
...
...
@@ -116,7 +122,8 @@ sql insert into tb values(1520000014002, 14002)
sql insert into tb values(1520000025002, 25002)
sql insert into tb values(1520000060000, 60000)
sql select * from tb;
if $rows != 17 then
print $rows
if $rows != 24 then
return -1
endi
...
...
@@ -148,7 +155,8 @@ sql import into tb values(1521900800000, 50004)
sql import into tb values(1523110400000, 50001)
sql import into tb values(1521382400000, 500051)
sql select * from tb;
if $rows != 29 then
print $rows
if $rows != 36 then
return -1
endi
...
...
@@ -158,7 +166,8 @@ sleep 5000
system sh/exec_up.sh -n dnode1 -s start
sleep 5000
sql select * from tb;
if $rows != 29 then
print $rows
if $rows != 36 then
return -1
endi
...
...
@@ -167,7 +176,7 @@ print ================= step11
#sql import into tb values(now-50d, 7003) (now-48d, 7003) (now-46d, 7003) (now-44d, 7003) (now-42d, 7003)
sql import into tb values(1515680000000, 7003) (1515852800000, 7003) (1516025600000, 7003) (1516198400000, 7003) (1516371200000, 7003)
sql select * from tb;
if $rows !=
34
then
if $rows !=
41
then
return -1
endi
...
...
@@ -176,7 +185,8 @@ print ================= step12
#sql import into tb values(now-19d, 7003) (now-18d, 7003) (now-17d, 7003) (now-16d, 7003) (now-15d, 7003) (now-14d, 7003) (now-13d, 7003) (now-12d, 7003) (now-11d, 7003)
sql import into tb values(1518358400000, 7003) (1518444800000, 7003) (1518531200000, 7003) (1518617600000, 7003) (1518704000000, 7003) (1518790400000, 7003) (1518876800000, 7003) (1518963200000, 7003) (1519049600000, 7003)
sql select * from tb;
if $rows != 43 then
print $rows
if $rows != 50 then
return -1
endi
...
...
@@ -195,7 +205,7 @@ sql import into tb values(1516716800000, 50001)
sql import into tb values(1517580800000, 50001)
sql select * from tb;
if $rows !=
46
then
if $rows !=
50
then
return -1
endi
...
...
@@ -205,6 +215,15 @@ sleep 8000
system sh/exec_up.sh -n dnode1 -s stop
sleep 10000
if $rows !=
46
then
if $rows !=
50
then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/import/replica3.sim
浏览文件 @
ae372d30
...
...
@@ -41,53 +41,59 @@ sql use ir3db
sql create table tb(ts timestamp, i int)
print ================= step1
sql import into tb values(
now+10000a
, 10000)
sql import into tb values(
1520000010000
, 10000)
sql select * from tb;
print $rows
if $rows != 1 then
return -1
endi
print ================= step2
sql insert into tb values(now+8000a, 8000)
sql insert into tb values(1520000008000, 8000)
print $rows
sql select * from tb;
if $rows !=
1
then
if $rows !=
2
then
return -1
endi
print ================= step3
sql insert into tb values(
now+20000a
, 20000)
sql insert into tb values(
1520000020000
, 20000)
sql select * from tb;
if $rows != 2 then
print $rows
if $rows != 3 then
return -1
endi
print ================= step4
sql import into tb values(
now+8000a
, 9000)
sql import into tb values(
now+15000a
, 15000)
sql import into tb values(
now+30000a
, 30000)
sql import into tb values(
1520000009000
, 9000)
sql import into tb values(
1520000015000
, 15000)
sql import into tb values(
1520000030000
, 30000)
sql select * from tb;
if $rows != 5 then
print $rows
if $rows != 6 then
return -1
endi
print ================= step5
sql insert into tb values(
now+8000a
, 8000)
sql insert into tb values(
now+14000a
, 14000)
sql insert into tb values(
now+25000a
, 25000)
sql insert into tb values(
now+40000a
, 40000)
sql insert into tb values(
1520000008000
, 8000)
sql insert into tb values(
1520000014000
, 14000)
sql insert into tb values(
1520000025000
, 25000)
sql insert into tb values(
1520000040000
, 40000)
sql select * from tb;
if $rows != 6 then
print $rows
if $rows != 9 then
return -1
endi
print ================= step6
sql import into tb values(
now+7000a
, 7000)
sql import into tb values(
now+12000a
, 12000)
sql import into tb values(
now+23000a
, 23000)
sql import into tb values(
now+34000a
, 34000)
sql import into tb values(
now+50000a
, 50000)
sql import into tb values(
1520000007000
, 7000)
sql import into tb values(
1520000012000
, 12000)
sql import into tb values(
1520000023000
, 23000)
sql import into tb values(
1520000034000
, 34000)
sql import into tb values(
1520000050000
, 50000)
sql select * from tb;
if $rows != 11 then
print $rows
if $rows != 14 then
return -1
endi
...
...
@@ -97,46 +103,63 @@ endi
#system sh/exec_up.sh -n dnode1 -s start
#sleep 5000
#sql select * from tb;
#if $rows != 1
1
then
#if $rows != 1
4
then
# return -1
#endi
print ================= step7
sql import into tb values(
now+7001a
, 7001)
sql import into tb values(
now+12001a
, 12001)
sql import into tb values(
now+23001a
, 23001)
sql import into tb values(
now+34001a
, 34001)
sql import into tb values(
now+50001a
, 50001)
sql import into tb values(
1520000007001
, 7001)
sql import into tb values(
1520000012001
, 12001)
sql import into tb values(
1520000023001
, 23001)
sql import into tb values(
1520000034001
, 34001)
sql import into tb values(
1520000050001
, 50001)
sql select * from tb;
if $rows != 16 then
print $rows
if $rows != 19 then
return -1
endi
print ================= step8
sql insert into tb values(
now+8002a
, 8002)
sql insert into tb values(
now+14002a
, 14002)
sql insert into tb values(
now+25002a
, 25002)
sql insert into tb values(
now+200000a
, 60000)
sql insert into tb values(
1520000008002
, 8002)
sql insert into tb values(
1520000014002
, 14002)
sql insert into tb values(
1520000025002
, 25002)
sql insert into tb values(
1520000060000
, 60000)
sql select * from tb;
if $rows != 17 then
print $rows
if $rows != 24 then
return -1
endi
print ================= step9
sql import into tb values(now-30d, 7003)
sql import into tb values(now-20d, 34003)
sql import into tb values(now-10d, 34003)
sql import into tb values(now-5d, 34003)
sql import into tb values(now+1m, 50001)
sql import into tb values(now+2m, 50001)
sql import into tb values(now+6m, 50001)
sql import into tb values(now+8m, 50002)
sql import into tb values(now+10m, 50003)
sql import into tb values(now+12m, 50004)
sql import into tb values(now+14m, 50001)
sql import into tb values(now+16m, 500051)
#1520000000000
#sql import into tb values(now-30d, 7003)
#sql import into tb values(now-20d, 34003)
#sql import into tb values(now-10d, 34003)
#sql import into tb values(now-5d, 34003)
#sql import into tb values(now+1d, 50001)
#sql import into tb values(now+2d, 50001)
#sql import into tb values(now+6d, 50001)
#sql import into tb values(now+8d, 50002)
#sql import into tb values(now+10d, 50003)
#sql import into tb values(now+12d, 50004)
#sql import into tb values(now+14d, 50001)
#sql import into tb values(now+16d, 500051)
sql import into tb values(1517408000000, 7003)
sql import into tb values(1518272000000, 34003)
sql import into tb values(1519136000000, 34003)
sql import into tb values(1519568000000, 34003)
sql import into tb values(1519654400000, 50001)
sql import into tb values(1519827200000, 50001)
sql import into tb values(1520345600000, 50001)
sql import into tb values(1520691200000, 50002)
sql import into tb values(1520864000000, 50003)
sql import into tb values(1521900800000, 50004)
sql import into tb values(1523110400000, 50001)
sql import into tb values(1521382400000, 500051)
sql select * from tb;
if $rows != 29 then
print $rows
if $rows != 36 then
return -1
endi
...
...
@@ -146,21 +169,27 @@ sleep 5000
system sh/exec_up.sh -n dnode1 -s start
sleep 5000
sql select * from tb;
if $rows != 29 then
print $rows
if $rows != 36 then
return -1
endi
print ================= step11
sql import into tb values(now-50d, 7003) (now-48d, 7003) (now-46d, 7003) (now-44d, 7003) (now-42d, 7003)
#sql import into tb values(now-50d, 7003) (now-48d, 7003) (now-46d, 7003) (now-44d, 7003) (now-42d, 7003)
sql import into tb values(1515680000000, 7003) (1515852800000, 7003) (1516025600000, 7003) (1516198400000, 7003) (1516371200000, 7003)
sql select * from tb;
if $rows !=
34
then
if $rows !=
41
then
return -1
endi
print ================= step12
sql import into tb values(now-19d, 7003) (now-18d, 7003) (now-17d, 7003) (now-16d, 7003) (now-15d, 7003) (now-14d, 7003) (now-13d, 7003) (now-12d, 7003) (now-11d, 7003)
#1520000000000
#sql import into tb values(now-19d, 7003) (now-18d, 7003) (now-17d, 7003) (now-16d, 7003) (now-15d, 7003) (now-14d, 7003) (now-13d, 7003) (now-12d, 7003) (now-11d, 7003)
sql import into tb values(1518358400000, 7003) (1518444800000, 7003) (1518531200000, 7003) (1518617600000, 7003) (1518704000000, 7003) (1518790400000, 7003) (1518876800000, 7003) (1518963200000, 7003) (1519049600000, 7003)
sql select * from tb;
if $rows != 43 then
print $rows
if $rows != 50 then
return -1
endi
...
...
@@ -169,11 +198,17 @@ system sh/exec_up.sh -n dnode2 -s stop
sleep 5000
print ================= step14
sql import into tb values(now-48d, 34003)
sql import into tb values(now-38d, 50001)
sql import into tb values(now-28d, 50001)
#1520000000000
#sql import into tb values(now-48d, 34003)
#sql import into tb values(now-38d, 50001)
#sql import into tb values(now-28d, 50001)
sql import into tb values(1515852800001, 34003)
sql import into tb values(1516716800000, 50001)
sql import into tb values(1517580800000, 50001)
sql select * from tb;
if $rows !=
46
then
if $rows !=
50
then
return -1
endi
...
...
@@ -183,6 +218,15 @@ sleep 8000
system sh/exec_up.sh -n dnode3 -s stop
sleep 3000
if $rows !=
46
then
if $rows !=
50
then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/import/testSuite.sim
浏览文件 @
ae372d30
#run unique/import/replica2.sim
#run unique/import/replica3.sim
\ No newline at end of file
run unique/import/replica2.sim
run unique/import/replica3.sim
\ No newline at end of file
tests/script/unique/metrics/balance_replica1.sim
浏览文件 @
ae372d30
...
...
@@ -136,4 +136,13 @@ sql select * from $mt
print select * from $mt ==> $rows
if $rows != 2600 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/dnode2.sim
浏览文件 @
ae372d30
...
...
@@ -195,4 +195,13 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/dnode2_stop.sim
浏览文件 @
ae372d30
...
...
@@ -148,4 +148,13 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/dnode3.sim
浏览文件 @
ae372d30
...
...
@@ -224,4 +224,13 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/replica2_dnode4.sim
浏览文件 @
ae372d30
...
...
@@ -215,4 +215,13 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/replica2_vnode3.sim
浏览文件 @
ae372d30
...
...
@@ -192,4 +192,13 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/replica3_dnode6.sim
浏览文件 @
ae372d30
...
...
@@ -245,4 +245,13 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/replica3_vnode3.sim
浏览文件 @
ae372d30
...
...
@@ -214,4 +214,13 @@ sql drop database $db
sql show databases
if $rows != 0 then
return -1
endi
\ No newline at end of file
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/metrics/testSuite.sim
浏览文件 @
ae372d30
#run unique/metrics/disk.sim
#run unique/metrics/metrics.sim
#run unique/metrics/values.sim
#run unique/metrics/vnode3.sim
\ No newline at end of file
run unique/metrics/balance_replica1.sim
run unique/metrics/dnode2_stop.sim
run unique/metrics/dnode2.sim
run unique/metrics/dnode3.sim
run unique/metrics/replica2_dnode4.sim
run unique/metrics/replica2_vnode3.sim
run unique/metrics/replica3_dnode6.sim
run unique/metrics/replica3_vnode3.sim
\ No newline at end of file
tests/script/unique/mnode/mgmtr2.sim
浏览文件 @
ae372d30
...
...
@@ -75,6 +75,11 @@ if $dnode3Role != NULL then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/mnode/secondIp.sim
浏览文件 @
ae372d30
...
...
@@ -34,6 +34,11 @@ if $data4_2 != 4 then
return -1
endi
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode3 -s stop
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/table/delete_part.sim
浏览文件 @
ae372d30
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -79,4 +74,12 @@ begin:
$loop = $loop + 1
goto begin
\ No newline at end of file
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/table/testSuite.sim
浏览文件 @
ae372d30
#
run unique/table/delete_part.sim
run unique/table/delete_part.sim
tests/script/unique/vnode/commit.sim
浏览文件 @
ae372d30
...
...
@@ -148,4 +148,11 @@ if $rows != $remainRows then
return -1
endi
system sh/exec_up.sh -n dnode1 -s start
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
tests/script/unique/vnode/many.sim
浏览文件 @
ae372d30
...
...
@@ -113,4 +113,11 @@ if $x < 5 then
goto loop
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/vnode/replica2_basic.sim
浏览文件 @
ae372d30
...
...
@@ -188,5 +188,12 @@ if $rows != $expect then
endi
print =================== step 12
system sh/exec_up.sh -n dnode1 -s stop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/vnode/replica2_repeat.sim
浏览文件 @
ae372d30
...
...
@@ -71,4 +71,11 @@ if $x < 5 then
goto loop
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/vnode/replica3_repeat.sim
浏览文件 @
ae372d30
...
...
@@ -80,4 +80,11 @@ if $x < 5 then
goto loop
endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/vnode/replica3_vgroup.sim
浏览文件 @
ae372d30
...
...
@@ -61,5 +61,11 @@ endw
# return -1
#endi
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/vnode/testSuite.sim
浏览文件 @
ae372d30
run unique/vnode/commit.sim
run unique/vnode/many.sim
run unique/vnode/replica2_basic.sim
run unique/vnode/replica2_basic2.sim
#run unique/vnode/replica2_basic.sim
#run unique/vnode/replica2_repeat.sim
run unique/vnode/replica2_repeat.sim
run unique/vnode/replica3_basic.sim
#run unique/vnode/replica3_repeat.sim
#run unique/vnode/commit.sim
#run unique/vnode/many.sim
run unique/vnode/replica3_repeat.sim
run unique/vnode/replica3_vgroup.sim
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录