Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
bf4f652c
提交
bf4f652c
authored
14 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simplify testing (system property to always defragment)
上级
a824013c
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
2 行删除
+14
-2
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+13
-2
TestBase.java
h2/src/test/org/h2/test/TestBase.java
+1
-0
没有找到文件。
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
bf4f652c
...
@@ -39,7 +39,6 @@ import org.h2.test.db.TestMultiConn;
...
@@ -39,7 +39,6 @@ import org.h2.test.db.TestMultiConn;
import
org.h2.test.db.TestMultiDimension
;
import
org.h2.test.db.TestMultiDimension
;
import
org.h2.test.db.TestMultiThread
;
import
org.h2.test.db.TestMultiThread
;
import
org.h2.test.db.TestMultiThreadedKernel
;
import
org.h2.test.db.TestMultiThreadedKernel
;
import
org.h2.test.db.TestNestedJoins
;
import
org.h2.test.db.TestOpenClose
;
import
org.h2.test.db.TestOpenClose
;
import
org.h2.test.db.TestOptimizations
;
import
org.h2.test.db.TestOptimizations
;
import
org.h2.test.db.TestOutOfMemory
;
import
org.h2.test.db.TestOutOfMemory
;
...
@@ -104,6 +103,8 @@ import org.h2.test.synth.TestKill;
...
@@ -104,6 +103,8 @@ import org.h2.test.synth.TestKill;
import
org.h2.test.synth.TestKillRestart
;
import
org.h2.test.synth.TestKillRestart
;
import
org.h2.test.synth.TestKillRestartMulti
;
import
org.h2.test.synth.TestKillRestartMulti
;
import
org.h2.test.synth.TestMultiThreaded
;
import
org.h2.test.synth.TestMultiThreaded
;
import
org.h2.test.synth.TestNestedJoins
;
import
org.h2.test.synth.TestOuterJoins
;
import
org.h2.test.synth.TestRandomCompare
;
import
org.h2.test.synth.TestRandomCompare
;
import
org.h2.test.synth.TestRandomSQL
;
import
org.h2.test.synth.TestRandomSQL
;
import
org.h2.test.synth.TestTimer
;
import
org.h2.test.synth.TestTimer
;
...
@@ -280,6 +281,11 @@ java org.h2.test.TestAll timer
...
@@ -280,6 +281,11 @@ java org.h2.test.TestAll timer
*/
*/
boolean
stopOnError
;
boolean
stopOnError
;
/**
* If the database should always be defragmented when closing.
*/
boolean
defrag
;
/**
/**
* The cache type.
* The cache type.
*/
*/
...
@@ -439,6 +445,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -439,6 +445,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
smallLog
=
big
=
networked
=
memory
=
ssl
=
false
;
smallLog
=
big
=
networked
=
memory
=
ssl
=
false
;
diskResult
=
traceSystemOut
=
diskUndo
=
false
;
diskResult
=
traceSystemOut
=
diskUndo
=
false
;
mvcc
=
traceTest
=
stopOnError
=
false
;
mvcc
=
traceTest
=
stopOnError
=
false
;
defrag
=
false
;
traceLevelFile
=
throttle
=
0
;
traceLevelFile
=
throttle
=
0
;
cipher
=
null
;
cipher
=
null
;
test
();
test
();
...
@@ -464,6 +471,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -464,6 +471,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
throttle
=
0
;
throttle
=
0
;
cacheType
=
null
;
cacheType
=
null
;
cipher
=
null
;
cipher
=
null
;
defrag
=
true
;
test
();
test
();
traceLevelFile
=
2
;
traceLevelFile
=
2
;
...
@@ -471,6 +479,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -471,6 +479,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
smallLog
=
true
;
smallLog
=
true
;
networked
=
true
;
networked
=
true
;
ssl
=
true
;
ssl
=
true
;
defrag
=
false
;
test
();
test
();
smallLog
=
false
;
smallLog
=
false
;
...
@@ -532,7 +541,6 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -532,7 +541,6 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestMultiDimension
().
runTest
(
this
);
new
TestMultiDimension
().
runTest
(
this
);
new
TestMultiThread
().
runTest
(
this
);
new
TestMultiThread
().
runTest
(
this
);
new
TestMultiThreadedKernel
().
runTest
(
this
);
new
TestMultiThreadedKernel
().
runTest
(
this
);
new
TestNestedJoins
().
runTest
(
this
);
new
TestOpenClose
().
runTest
(
this
);
new
TestOpenClose
().
runTest
(
this
);
new
TestOptimizations
().
runTest
(
this
);
new
TestOptimizations
().
runTest
(
this
);
new
TestOutOfMemory
().
runTest
(
this
);
new
TestOutOfMemory
().
runTest
(
this
);
...
@@ -604,6 +612,8 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -604,6 +612,8 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestKillRestart
().
runTest
(
this
);
new
TestKillRestart
().
runTest
(
this
);
new
TestKillRestartMulti
().
runTest
(
this
);
new
TestKillRestartMulti
().
runTest
(
this
);
new
TestMultiThreaded
().
runTest
(
this
);
new
TestMultiThreaded
().
runTest
(
this
);
new
TestOuterJoins
().
runTest
(
this
);
new
TestNestedJoins
().
runTest
(
this
);
afterTest
();
afterTest
();
}
}
...
@@ -737,6 +747,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -737,6 +747,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
appendIf
(
buff
,
throttle
>
0
,
"throttle:"
+
throttle
);
appendIf
(
buff
,
throttle
>
0
,
"throttle:"
+
throttle
);
appendIf
(
buff
,
traceTest
,
"traceTest"
);
appendIf
(
buff
,
traceTest
,
"traceTest"
);
appendIf
(
buff
,
stopOnError
,
"stopOnError"
);
appendIf
(
buff
,
stopOnError
,
"stopOnError"
);
appendIf
(
buff
,
defrag
,
"defrag"
);
return
buff
.
toString
();
return
buff
.
toString
();
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/TestBase.java
浏览文件 @
bf4f652c
...
@@ -107,6 +107,7 @@ public abstract class TestBase {
...
@@ -107,6 +107,7 @@ public abstract class TestBase {
public
TestBase
init
(
TestAll
conf
)
throws
Exception
{
public
TestBase
init
(
TestAll
conf
)
throws
Exception
{
baseDir
=
getTestDir
(
""
);
baseDir
=
getTestDir
(
""
);
System
.
setProperty
(
"java.io.tmpdir"
,
TEMP_DIR
);
System
.
setProperty
(
"java.io.tmpdir"
,
TEMP_DIR
);
SysProperties
.
defragAlways
=
conf
.
defrag
;
this
.
config
=
conf
;
this
.
config
=
conf
;
return
this
;
return
this
;
}
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论