Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a16b2c7f
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a16b2c7f
编写于
12月 22, 2021
作者:
L
liuyq-617
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-12390]<CI>(connector)add connector test
上级
02593305
变更
17
显示空白变更内容
内联
并排
Showing
17 changed file
with
347 addition
and
1 deletion
+347
-1
Jenkinsfile
Jenkinsfile
+1
-1
tests/develop-test/3-connectors/c#/test.sh
tests/develop-test/3-connectors/c#/test.sh
+32
-0
tests/develop-test/3-connectors/go/test.sh
tests/develop-test/3-connectors/go/test.sh
+20
-0
tests/develop-test/3-connectors/java/test.sh
tests/develop-test/3-connectors/java/test.sh
+17
-0
tests/develop-test/3-connectors/nodejs/test.sh
tests/develop-test/3-connectors/nodejs/test.sh
+29
-0
tests/develop-test/3-connectors/python/test.sh
tests/develop-test/3-connectors/python/test.sh
+30
-0
tests/develop-test/3-connectors/restful/test.sh
tests/develop-test/3-connectors/restful/test.sh
+19
-0
tests/develop-test/3-connectors/rust/test.sh
tests/develop-test/3-connectors/rust/test.sh
+19
-0
tests/develop-test/fulltest-connector.sh
tests/develop-test/fulltest-connector.sh
+7
-0
tests/system-test/3-connectors/c#/test.sh
tests/system-test/3-connectors/c#/test.sh
+32
-0
tests/system-test/3-connectors/go/test.sh
tests/system-test/3-connectors/go/test.sh
+20
-0
tests/system-test/3-connectors/java/test.sh
tests/system-test/3-connectors/java/test.sh
+17
-0
tests/system-test/3-connectors/nodejs/test.sh
tests/system-test/3-connectors/nodejs/test.sh
+29
-0
tests/system-test/3-connectors/python/test.sh
tests/system-test/3-connectors/python/test.sh
+30
-0
tests/system-test/3-connectors/restful/test.sh
tests/system-test/3-connectors/restful/test.sh
+19
-0
tests/system-test/3-connectors/rust/test.sh
tests/system-test/3-connectors/rust/test.sh
+19
-0
tests/system-test/fulltest-connector.sh
tests/system-test/fulltest-connector.sh
+7
-0
未找到文件。
Jenkinsfile
浏览文件 @
a16b2c7f
...
...
@@ -361,7 +361,7 @@ pipeline {
abortPreviousBuilds
()
println
env
.
CHANGE_BRANCH
if
(
env
.
CHANGE_FORK
){
scope
=
[
'connector'
,
'query'
,
'insert'
,
'other'
,
'tools'
]
scope
=
[
'connector'
,
'query'
,
'insert'
,
'other'
,
'tools'
,
'taosAdapter'
]
}
else
{
sh
'''
...
...
tests/develop-test/3-connectors/c#/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
cd
${
WKC
}
/src/connector/C#
dotnet
test
dotnet run
--project
src/test/Cases/Cases.csproj
cd
${
WKC
}
/tests/examples/C#
dotnet run
--project
C#checker/C#checker.csproj
dotnet run
--project
TDengineTest/TDengineTest.csproj
dotnet run
--project
schemaless/schemaless.csproj
cd
${
WKC
}
/tests/examples/C#/taosdemo
dotnet build
-c
Release
tree |
true
./bin/Release/net5.0/taosdemo
-c
/etc/taos
-y
tests/develop-test/3-connectors/go/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
tests/develop-test/3-connectors/java/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
tests/develop-test/3-connectors/nodejs/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
cd
${
WKC
}
/src/connector/nodejs
npm
install
npm run
test
cd
${
WKC
}
/tests/examples/nodejs
npm
install
td2.0-connector
>
/dev/null 2>&1
node nodejsChecker.js
host
=
localhost
node test1970.js
cd
${
WKC
}
/tests/connectorTest/nodejsTest/nanosupport
npm
install
td2.0-connector
>
/dev/null 2>&1
node nanosecondTest.js
tests/develop-test/3-connectors/python/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../src/connector/python
pip3
install
pytest
pytest tests/
python3 examples/bind-multi.py
python3 examples/bind-row.py
python3 examples/demo.py
python3 examples/insert-lines.py
python3 examples/pep-249.py
python3 examples/query-async.py
python3 examples/query-objectively.py
python3 examples/subscribe-sync.py
python3 examples/subscribe-async.py
tests/develop-test/3-connectors/restful/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
tests/develop-test/3-connectors/rust/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
\ No newline at end of file
tests/develop-test/fulltest-connector.sh
0 → 100755
浏览文件 @
a16b2c7f
bash c#/test.sh
bash go/test.sh
bash java/test.sh
bash nodejs/test.sh
bash python/test.sh
bash restful/test.sh
bash rust/test.sh
tests/system-test/3-connectors/c#/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
cd
${
WKC
}
/src/connector/C#
dotnet
test
dotnet run
--project
src/test/Cases/Cases.csproj
cd
${
WKC
}
/tests/examples/C#
dotnet run
--project
C#checker/C#checker.csproj
dotnet run
--project
TDengineTest/TDengineTest.csproj
dotnet run
--project
schemaless/schemaless.csproj
cd
${
WKC
}
/tests/examples/C#/taosdemo
dotnet build
-c
Release
tree |
true
./bin/Release/net5.0/taosdemo
-c
/etc/taos
-y
tests/system-test/3-connectors/go/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
tests/system-test/3-connectors/java/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
tests/system-test/3-connectors/nodejs/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
cd
${
WKC
}
/src/connector/nodejs
npm
install
npm run
test
cd
${
WKC
}
/tests/examples/nodejs
npm
install
td2.0-connector
>
/dev/null 2>&1
node nodejsChecker.js
host
=
localhost
node test1970.js
cd
${
WKC
}
/tests/connectorTest/nodejsTest/nanosupport
npm
install
td2.0-connector
>
/dev/null 2>&1
node nanosecondTest.js
tests/system-test/3-connectors/python/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../src/connector/python
pip3
install
pytest
pytest tests/
python3 examples/bind-multi.py
python3 examples/bind-row.py
python3 examples/demo.py
python3 examples/insert-lines.py
python3 examples/pep-249.py
python3 examples/query-async.py
python3 examples/query-objectively.py
python3 examples/subscribe-sync.py
python3 examples/subscribe-async.py
tests/system-test/3-connectors/restful/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
tests/system-test/3-connectors/rust/test.sh
0 → 100755
浏览文件 @
a16b2c7f
#!/bin/bash
function
stopTaosd
{
echo
"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
pkill
-TERM
-x
taosd
sleep
1
PID
=
`
ps
-ef
|grep
-w
taosd |
grep
-v
grep
|
awk
'{print $2}'
`
done
}
stopTaosd
rm
-rf
/var/lib/taos/
*
rm
-rf
/var/log/taos/
*
nohup
taosd
-c
/etc/taos/
>
/dev/null 2>&1 &
sleep
10
cd
../../
WKC
=
`
pwd
`
\ No newline at end of file
tests/system-test/fulltest-connector.sh
0 → 100755
浏览文件 @
a16b2c7f
bash c#/test.sh
bash go/test.sh
bash java/test.sh
bash nodejs/test.sh
bash python/test.sh
bash restful/test.sh
bash rust/test.sh
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录