Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e3f10342
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
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看板
未验证
提交
e3f10342
编写于
6月 24, 2020
作者:
S
Shengliang Guan
提交者:
GitHub
6月 24, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2440 from taosdata/buildTaosdForJDBCTests
Build taosd before running jdbc tests
上级
58189bd3
0651c778
变更
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
浏览文件 @
e3f10342
#!/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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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
浏览文件 @
e3f10342
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录