Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
24058f1d
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
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看板
提交
24058f1d
编写于
5月 14, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scripts
上级
ddc68fb7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
12 deletion
+27
-12
tests/script/general/db/delete.sim
tests/script/general/db/delete.sim
+6
-0
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+1
-1
tests/script/unique/db/delete.sim
tests/script/unique/db/delete.sim
+11
-6
tests/script/unique/db/delete_part.sim
tests/script/unique/db/delete_part.sim
+9
-5
未找到文件。
tests/script/general/db/delete.sim
浏览文件 @
24058f1d
...
@@ -20,6 +20,12 @@ while $i < 2000
...
@@ -20,6 +20,12 @@ while $i < 2000
$i = $i + 1
$i = $i + 1
endw
endw
sql show db.vgroups
if $rows != 2 then
return -1
endi
return
print ======== step2
print ======== step2
sleep 1000
sleep 1000
sql drop database db
sql drop database db
...
...
tests/script/jenkins/basic.txt
浏览文件 @
24058f1d
...
@@ -49,7 +49,7 @@ cd ../../../debug; make
...
@@ -49,7 +49,7 @@ cd ../../../debug; make
./test.sh -f general/db/basic3.sim
./test.sh -f general/db/basic3.sim
./test.sh -f general/db/basic4.sim
./test.sh -f general/db/basic4.sim
./test.sh -f general/db/basic5.sim
./test.sh -f general/db/basic5.sim
./test.sh -f
unique
/db/delete.sim
./test.sh -f
general
/db/delete.sim
./test.sh -f general/db/delete_reuse1.sim
./test.sh -f general/db/delete_reuse1.sim
./test.sh -f general/db/delete_reuse2.sim
./test.sh -f general/db/delete_reuse2.sim
./test.sh -f general/db/delete_reusevnode.sim
./test.sh -f general/db/delete_reusevnode.sim
...
...
tests/script/unique/db/delete.sim
浏览文件 @
24058f1d
...
@@ -34,6 +34,11 @@ while $i < 2000
...
@@ -34,6 +34,11 @@ while $i < 2000
$i = $i + 1
$i = $i + 1
endw
endw
sql show db.vgroups
if $rows != 2 then
return -1
endi
print ======== step2
print ======== step2
sleep 1000
sleep 1000
sql drop database db
sql drop database db
...
@@ -59,14 +64,14 @@ endi
...
@@ -59,14 +64,14 @@ endi
print ======== step3
print ======== step3
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode3 -s stop -x SIGINT
sleep 1000
sleep 1000
system sh/exec
.sh -n dnode1 -s start -
t
system sh/exec
_up.sh -n dnode1 -s star
t
system sh/exec
.sh -n dnode2 -s start -
t
system sh/exec
_up.sh -n dnode2 -s star
t
system sh/exec
.sh -n dnode3 -s start -
t
system sh/exec
_up.sh -n dnode3 -s star
t
$x = 0
$x = 0
step3:
step3:
...
...
tests/script/unique/db/delete_part.sim
浏览文件 @
24058f1d
...
@@ -31,17 +31,17 @@ system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 4
...
@@ -31,17 +31,17 @@ system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 4
print ========= start dnodes
print ========= start dnodes
system sh/exec_up.sh -n dnode1 -s start
system sh/exec_up.sh -n dnode1 -s start
sleep 3000
sql connect
sql connect
sql create dnode $hostname2
sql create dnode $hostname2
system sh/exec_up.sh -n dnode2 -s start
system sh/exec_up.sh -n dnode2 -s start
sleep 3000
$loop = 0
$loop = 0
begin:
begin:
$db = db . $loop
$db = db . $loop
print ======== step1
print ======== step1
$loop
sql create database $db
sql create database $db
sql use $db
sql use $db
...
@@ -53,15 +53,16 @@ begin:
...
@@ -53,15 +53,16 @@ begin:
$x = $x + 1
$x = $x + 1
endw
endw
print ======== step2
print ======== step2
$loop
system sh/exec_up.sh -n dnode2 -s stop
system sh/exec_up.sh -n dnode2 -s stop
sleep 1000
sql drop database $db
sql drop database $db
print ======== step3
print ======== step3
$loop
sleep 3000
sleep 3000
system sh/exec_up.sh -n dnode2 -s start
system sh/exec_up.sh -n dnode2 -s start
sleep
20
000
sleep
5
000
print ===> test times : $loop
print ===> test times : $loop
if $loop > 5 then
if $loop > 5 then
...
@@ -69,6 +70,9 @@ begin:
...
@@ -69,6 +70,9 @@ begin:
endi
endi
$loop = $loop + 1
$loop = $loop + 1
sql reset query cache
sleep 1000
goto begin
goto begin
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录