提交 729e4b4a authored 作者: Thomas Mueller's avatar Thomas Mueller

Improve test case

上级 f73be7b4
...@@ -231,6 +231,9 @@ java -cp . org.h2.test.TestAll crash >testCrash.txt ...@@ -231,6 +231,9 @@ java -cp . org.h2.test.TestAll crash >testCrash.txt
java org.h2.test.TestAll timer java org.h2.test.TestAll timer
*/ */
;
private static final boolean MV_STORE = true;
/** /**
* If the test should run with many rows. * If the test should run with many rows.
...@@ -429,6 +432,8 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1` ...@@ -429,6 +432,8 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
FilePathRec.register(); FilePathRec.register();
test.reopen = true; test.reopen = true;
TestReopen reopen = new TestReopen(); TestReopen reopen = new TestReopen();
reopen.init();
reopen.config.mvStore = MV_STORE;
FilePathRec.setRecorder(reopen); FilePathRec.setRecorder(reopen);
test.runTests(); test.runTests();
} else if ("crash".equals(args[0])) { } else if ("crash".equals(args[0])) {
...@@ -466,14 +471,14 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1` ...@@ -466,14 +471,14 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
prof.startCollecting(); prof.startCollecting();
if (test.mvStore) { if (test.mvStore) {
TestPerformance.main("-init", "-db", "9", "-size", "1000"); TestPerformance.main("-init", "-db", "9", "-size", "1000");
TestPerformance.main("-init", "-db", "1", "-size", "1000");
TestPerformance.main("-init", "-db", "9", "-size", "1000");
TestPerformance.main("-init", "-db", "1", "-size", "1000");
} else { } else {
TestPerformance.main("-init", "-db", "1"); TestPerformance.main("-init", "-db", "1");
} }
prof.stopCollecting(); prof.stopCollecting();
System.out.println(prof.getTop(3)); System.out.println(prof.getTop(3));
if (test.mvStore) {
TestPerformance.main("-init", "-db", "1", "-size", "1000");
}
// Recover.execute("data", null); // Recover.execute("data", null);
// RunScript.execute("jdbc:h2:data/test2", // RunScript.execute("jdbc:h2:data/test2",
// "sa1", "sa1", "data/test.h2.sql", null, false); // "sa1", "sa1", "data/test.h2.sql", null, false);
...@@ -516,8 +521,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1` ...@@ -516,8 +521,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
coverage = isCoverage(); coverage = isCoverage();
; mvStore = MV_STORE;
mvStore = true;
smallLog = big = networked = memory = ssl = false; smallLog = big = networked = memory = ssl = false;
diskResult = traceSystemOut = diskUndo = false; diskResult = traceSystemOut = diskUndo = false;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论