Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
9801430a
提交
9801430a
authored
6月 20, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Test utilities only once during TestAll
上级
69a4d7f3
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
64 行增加
和
39 行删除
+64
-39
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+64
-39
没有找到文件。
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
9801430a
...
...
@@ -614,7 +614,12 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
if
(
vmlens
)
{
return
;
}
testUnit
();
testAdditional
();
// test utilities
big
=
!
travis
;
testUtils
();
big
=
false
;
// lazy
lazy
=
true
;
...
...
@@ -627,20 +632,20 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
memory
=
false
;
multiThreaded
=
true
;
test
();
test
Unit
();
test
Additional
();
// a more normal setup
memory
=
false
;
multiThreaded
=
false
;
test
();
test
Unit
();
test
Additional
();
// basic pagestore testing
memory
=
false
;
multiThreaded
=
false
;
mvStore
=
false
;
test
();
test
Unit
();
test
Additional
();
mvStore
=
true
;
memory
=
true
;
...
...
@@ -681,7 +686,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
ssl
=
false
;
traceLevelFile
=
0
;
test
();
test
Unit
();
test
Additional
();
big
=
false
;
cipher
=
"AES"
;
...
...
@@ -702,7 +707,8 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
memory
=
true
;
multiThreaded
=
true
;
test
();
testUnit
();
testAdditional
();
testUtils
();
multiThreaded
=
false
;
mvStore
=
false
;
...
...
@@ -876,7 +882,58 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
afterTest
();
}
private
void
testUnit
()
{
/**
* Run additional tests.
*/
private
void
testAdditional
()
{
if
(
networked
)
{
throw
new
RuntimeException
(
"testAditional() is not allowed in networked mode"
);
}
addTest
(
new
TestMVTableEngine
());
addTest
(
new
TestAutoReconnect
());
addTest
(
new
TestBnf
());
addTest
(
new
TestCache
());
addTest
(
new
TestCollation
());
addTest
(
new
TestCompress
());
addTest
(
new
TestConnectionInfo
());
addTest
(
new
TestExit
());
addTest
(
new
TestFileLock
());
addTest
(
new
TestJmx
());
addTest
(
new
TestModifyOnWrite
());
addTest
(
new
TestOldVersion
());
addTest
(
new
TestMultiThreadedKernel
());
addTest
(
new
TestPageStore
());
addTest
(
new
TestPageStoreCoverage
());
addTest
(
new
TestPgServer
());
addTest
(
new
TestRecovery
());
addTest
(
new
RecoverLobTest
());
addTest
(
createTest
(
"org.h2.test.unit.TestServlet"
));
addTest
(
new
TestTimeStampWithTimeZone
());
addTest
(
new
TestUpgrade
());
addTest
(
new
TestUsingIndex
());
addTest
(
new
TestValue
());
addTest
(
new
TestWeb
());
runAddedTests
();
addTest
(
new
TestCluster
());
addTest
(
new
TestFileLockSerialized
());
addTest
(
new
TestFileLockProcess
());
addTest
(
new
TestFileSystem
());
addTest
(
new
TestTools
());
addTest
(
new
TestSampleApps
());
runAddedTests
(
1
);
}
/**
* Run tests for utilities.
*/
private
void
testUtils
()
{
System
.
out
.
println
();
System
.
out
.
println
(
"Test utilities ("
+
Utils
.
getMemoryUsed
()
+
" KB used)"
);
// mv store
addTest
(
new
TestCacheConcurrentLIRS
());
addTest
(
new
TestCacheLIRS
());
...
...
@@ -889,7 +946,6 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
addTest
(
new
TestMVStoreBenchmark
());
addTest
(
new
TestMVStoreStopCompact
());
addTest
(
new
TestMVStoreTool
());
addTest
(
new
TestMVTableEngine
());
addTest
(
new
TestObjectDataType
());
addTest
(
new
TestRandomMapOps
());
addTest
(
new
TestSpinLock
());
...
...
@@ -898,77 +954,46 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
// unit
addTest
(
new
TestAnsCompression
());
addTest
(
new
TestAutoReconnect
());
addTest
(
new
TestBinaryArithmeticStream
());
addTest
(
new
TestBitStream
());
addTest
(
new
TestBnf
());
addTest
(
new
TestCache
());
addTest
(
new
TestCharsetCollator
());
addTest
(
new
TestClearReferences
());
addTest
(
new
TestCollation
());
addTest
(
new
TestCompress
());
addTest
(
new
TestConnectionInfo
());
addTest
(
new
TestDataPage
());
addTest
(
new
TestDateIso8601
());
addTest
(
new
TestExit
());
addTest
(
new
TestFile
());
addTest
(
new
TestFileLock
());
addTest
(
new
TestFtp
());
addTest
(
new
TestIntArray
());
addTest
(
new
TestIntIntHashMap
());
addTest
(
new
TestIntPerfectHash
());
addTest
(
new
TestJmx
());
addTest
(
new
TestMathUtils
());
addTest
(
new
TestMode
());
addTest
(
new
TestModifyOnWrite
());
addTest
(
new
TestOldVersion
());
addTest
(
new
TestObjectDeserialization
());
addTest
(
new
TestMultiThreadedKernel
());
addTest
(
new
TestOverflow
());
addTest
(
new
TestPageStore
());
addTest
(
new
TestPageStoreCoverage
());
addTest
(
new
TestPerfectHash
());
addTest
(
new
TestPgServer
());
addTest
(
new
TestReader
());
addTest
(
new
TestRecovery
());
addTest
(
new
TestScriptReader
());
addTest
(
new
RecoverLobTest
());
addTest
(
createTest
(
"org.h2.test.unit.TestServlet"
));
addTest
(
new
TestSecurity
());
addTest
(
new
TestShell
());
addTest
(
new
TestSort
());
addTest
(
new
TestStreams
());
addTest
(
new
TestStringUtils
());
addTest
(
new
TestTimeStampWithTimeZone
());
addTest
(
new
TestTraceSystem
());
addTest
(
new
TestUpgrade
());
addTest
(
new
TestUsingIndex
());
addTest
(
new
TestUtils
());
addTest
(
new
TestValue
());
addTest
(
new
TestValueHashMap
());
addTest
(
new
TestWeb
());
runAddedTests
();
// serial
addTest
(
new
TestDate
());
addTest
(
new
TestDateTimeUtils
());
addTest
(
new
TestCluster
());
addTest
(
new
TestConcurrent
());
addTest
(
new
TestFileLockSerialized
());
addTest
(
new
TestFileLockProcess
());
addTest
(
new
TestFileSystem
());
addTest
(
new
TestNetUtils
());
addTest
(
new
TestPattern
());
addTest
(
new
TestTools
());
addTest
(
new
TestSampleApps
());
addTest
(
new
TestStringCache
());
addTest
(
new
TestValueMemory
());
addTest
(
new
TestAuthentication
());
runAddedTests
(
1
);
}
private
void
addTest
(
TestBase
test
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论