Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
loser646
TDengine
提交
d7eb5a22
T
TDengine
项目概览
loser646
/
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,发现更多精彩内容 >>
提交
d7eb5a22
编写于
8月 16, 2021
作者:
L
liuyq-617
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-6035]add connector test in CI
上级
4c07b004
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
27 addition
and
7 deletion
+27
-7
Jenkinsfile
Jenkinsfile
+20
-1
tests/gotest/case001/case001.sh
tests/gotest/case001/case001.sh
+3
-2
tests/test-all.sh
tests/test-all.sh
+4
-4
未找到文件。
Jenkinsfile
浏览文件 @
d7eb5a22
...
...
@@ -160,7 +160,6 @@ pipeline {
skipbuild
=
'2'
skipbuild
=
sh
(
script:
"git log -2 --pretty=%B | fgrep -ie '[skip ci]' -e '[ci skip]' && echo 1 || echo 2"
,
returnStdout:
true
)
println
skipbuild
}
sh
'''
rm -rf ${WORKSPACE}.tes
...
...
@@ -225,6 +224,26 @@ pipeline {
steps
{
timeout
(
time:
55
,
unit:
'MINUTES'
){
pre_test
()
sh
'''
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
nohup taosd >/dev/null &
sleep 10
'''
sh
'''
cd ${WKC}/tests/examples/nodejs
npm install td2.0-connector > /dev/null 2>&1
node nodejsChecker.js host=localhost
'''
sh
'''
cd ${WKC}/tests/examples/C#/taosdemo
mcs -out:taosdemo *.cs > /dev/null 2>&1
echo '' |./taosdemo
'''
sh
'''
cd ${WKC}/tests/gotest
bash batchtest.sh
'''
sh
'''
cd ${WKC}/tests
./test-all.sh b1fq
...
...
tests/gotest/case001/case001.sh
浏览文件 @
d7eb5a22
...
...
@@ -15,7 +15,8 @@ script_dir="$(dirname $(readlink -f $0))"
###### step 3: start build
cd
$script_dir
rm
-f
go.
*
go mod init demotest
go build
go mod init demotest
>
/dev/null 2>&1
go mod tidy
>
/dev/null 2>&1
go build
>
/dev/null 2>&1
sleep
1s
./demotest
-h
$1
-p
$2
tests/test-all.sh
浏览文件 @
d7eb5a22
...
...
@@ -12,7 +12,7 @@ IN_TDINTERNAL="community"
function
stopTaosd
{
echo
"Stop taosd"
sudo
systemctl stop taosd
sudo
systemctl stop taosd
||
echo
'no sudo or systemctl or stop fail'
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
while
[
-n
"
$PID
"
]
do
...
...
@@ -24,9 +24,9 @@ function stopTaosd {
function
dohavecore
(){
corefile
=
`
find
$corepath
-mmin
1
`
core_file
=
`
echo
$corefile
|cut
-d
" "
-f2
`
proc
=
`
echo
$corefile
|cut
-d
"_"
-f3
`
if
[
-n
"
$corefile
"
]
;
then
core_file
=
`
echo
$corefile
|cut
-d
" "
-f2
`
proc
=
`
file
$core_file
|awk
-F
"execfn:"
'/execfn:/{print $2}'
|tr
-d
\'
|awk
'{print $1}'
|tr
-d
\,
`
echo
'taosd or taos has generated core'
rm
case
.log
if
[[
"
$tests_dir
"
==
*
"
$IN_TDINTERNAL
"
*
]]
&&
[[
$1
==
1
]]
;
then
...
...
@@ -46,7 +46,7 @@ function dohavecore(){
fi
fi
if
[[
$1
==
1
]]
;
then
echo
'\n'
|
gdb
/usr/local/taos/bin/
$proc
$core_file
-ex
"bt 10"
-ex
quit
echo
'\n'
|
gdb
$proc
$core_file
-ex
"bt 10"
-ex
quit
exit
8
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录