Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Rattenking
TDengine
提交
0651c778
T
TDengine
项目概览
Rattenking
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0651c778
编写于
6月 24, 2020
作者:
P
Ping Xiao
提交者:
Ping Xiao
6月 24, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-754: automatically build taosd before running jdbc tests
上级
9e47c5e8
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
81 addition
and
10 deletion
+81
-10
src/connector/jdbc/buildTDengine.sh
src/connector/jdbc/buildTDengine.sh
+44
-0
src/connector/jdbc/src/test/java/com/taosdata/jdbc/AsyncSubscribeTest.java
...c/src/test/java/com/taosdata/jdbc/AsyncSubscribeTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/BaseTest.java
...nector/jdbc/src/test/java/com/taosdata/jdbc/BaseTest.java
+27
-0
src/connector/jdbc/src/test/java/com/taosdata/jdbc/ConnectionTest.java
.../jdbc/src/test/java/com/taosdata/jdbc/ConnectionTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/DatabaseMetaDataTest.java
...src/test/java/com/taosdata/jdbc/DatabaseMetaDataTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java
...ctor/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/PreparedStatementTest.java
...rc/test/java/com/taosdata/jdbc/PreparedStatementTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/ResultSetTest.java
...r/jdbc/src/test/java/com/taosdata/jdbc/ResultSetTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/SelectTest.java
...ctor/jdbc/src/test/java/com/taosdata/jdbc/SelectTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/StableTest.java
...ctor/jdbc/src/test/java/com/taosdata/jdbc/StableTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/StatementTest.java
...r/jdbc/src/test/java/com/taosdata/jdbc/StatementTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/SubscribeTest.java
...r/jdbc/src/test/java/com/taosdata/jdbc/SubscribeTest.java
+1
-1
未找到文件。
src/connector/jdbc/buildTDengine.sh
0 → 100755
浏览文件 @
0651c778
#!/bin/bash
ulimit
-c
unlimited
function
buildTDengine
{
cd
/root/TDengine
git remote update
REMOTE_COMMIT
=
`
git rev-parse
--short
remotes/origin/develop
`
LOCAL_COMMIT
=
`
git rev-parse
--short
@
`
echo
" LOCAL:
$LOCAL_COMMIT
"
echo
"REMOTE:
$REMOTE_COMMIT
"
if
[
"
$LOCAL_COMMIT
"
==
"
$REMOTE_COMMIT
"
]
;
then
echo
"repo up-to-date"
else
echo
"repo need to pull"
git pull
LOCAL_COMMIT
=
`
git rev-parse
--short
@
`
cd
/root/TDengine/debug
rm
-rf
/root/TDengine/debug/
*
cmake ..
make
>
/dev/null
make
install
fi
}
function
restartTaosd
{
systemctl stop taosd
pkill
-KILL
-x
taosd
sleep
10
logDir
=
`
grep
'logDir'
/etc/taos/taos.cfg|awk
'END{print $2}'
`
dataDir
=
`
grep
'dataDir'
/etc/taos/taos.cfg|awk
'{print $2}'
`
rm
-rf
$logDir
/
*
rm
-rf
$dataDir
/
*
taosd 2>&1
>
/dev/null &
sleep
10
}
buildTDengine
restartTaosd
src/connector/jdbc/src/test/java/com/taosdata/jdbc/AsyncSubscribeTest.java
浏览文件 @
0651c778
...
...
@@ -12,7 +12,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertTrue
;
public
class
AsyncSubscribeTest
{
public
class
AsyncSubscribeTest
extends
BaseTest
{
Connection
connection
=
null
;
Statement
statement
=
null
;
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/BaseTest.java
0 → 100644
浏览文件 @
0651c778
package
com.taosdata.jdbc
;
import
java.io.BufferedReader
;
import
java.io.InputStreamReader
;
import
org.junit.BeforeClass
;
public
class
BaseTest
{
@BeforeClass
public
static
void
setupEnv
()
{
try
{
String
path
=
System
.
getProperty
(
"user.dir"
);
String
bashPath
=
path
+
"/buildTDengine.sh"
;
Process
ps
=
Runtime
.
getRuntime
().
exec
(
bashPath
);
ps
.
waitFor
();
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
ps
.
getInputStream
()));
while
(
br
.
readLine
()
!=
null
)
{
System
.
out
.
println
(
br
.
readLine
());
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
\ No newline at end of file
src/connector/jdbc/src/test/java/com/taosdata/jdbc/ConnectionTest.java
浏览文件 @
0651c778
...
...
@@ -10,7 +10,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertTrue
;
public
class
ConnectionTest
{
public
class
ConnectionTest
extends
BaseTest
{
static
Connection
connection
=
null
;
static
Statement
statement
=
null
;
static
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/DatabaseMetaDataTest.java
浏览文件 @
0651c778
...
...
@@ -7,7 +7,7 @@ import org.junit.Test;
import
java.sql.*
;
import
java.util.Properties
;
public
class
DatabaseMetaDataTest
{
public
class
DatabaseMetaDataTest
extends
BaseTest
{
static
Connection
connection
=
null
;
static
PreparedStatement
statement
=
null
;
static
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java
浏览文件 @
0651c778
...
...
@@ -9,7 +9,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertEquals
;
public
class
ImportTest
{
public
class
ImportTest
extends
BaseTest
{
Connection
connection
=
null
;
Statement
statement
=
null
;
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/PreparedStatementTest.java
浏览文件 @
0651c778
...
...
@@ -13,7 +13,7 @@ import static org.junit.Assert.assertEquals;
import
static
org
.
junit
.
Assert
.
assertTrue
;
@FixMethodOrder
(
MethodSorters
.
DEFAULT
)
public
class
PreparedStatementTest
{
public
class
PreparedStatementTest
extends
BaseTest
{
static
Connection
connection
=
null
;
static
PreparedStatement
statement
=
null
;
static
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/ResultSetTest.java
浏览文件 @
0651c778
...
...
@@ -13,7 +13,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
public
class
ResultSetTest
{
public
class
ResultSetTest
extends
BaseTest
{
static
Connection
connection
=
null
;
static
Statement
statement
=
null
;
static
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/SelectTest.java
浏览文件 @
0651c778
...
...
@@ -9,7 +9,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertEquals
;
public
class
SelectTest
{
public
class
SelectTest
extends
BaseTest
{
Connection
connection
=
null
;
Statement
statement
=
null
;
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/StableTest.java
浏览文件 @
0651c778
...
...
@@ -12,7 +12,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertEquals
;
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
StableTest
{
public
class
StableTest
extends
BaseTest
{
static
Connection
connection
=
null
;
static
Statement
statement
=
null
;
static
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/StatementTest.java
浏览文件 @
0651c778
...
...
@@ -10,7 +10,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
public
class
StatementTest
{
public
class
StatementTest
extends
BaseTest
{
static
Connection
connection
=
null
;
static
Statement
statement
=
null
;
static
String
dbName
=
"test"
;
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/SubscribeTest.java
浏览文件 @
0651c778
...
...
@@ -12,7 +12,7 @@ import java.util.Properties;
import
static
org
.
junit
.
Assert
.
assertTrue
;
public
class
SubscribeTest
{
public
class
SubscribeTest
extends
BaseTest
{
Connection
connection
=
null
;
Statement
statement
=
null
;
String
dbName
=
"test"
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录