提交 ab1c98ae authored 作者: Thomas Mueller's avatar Thomas Mueller

Option to run only fast tests

上级 8c29fb53
...@@ -782,6 +782,17 @@ public class Build extends BuildBase { ...@@ -782,6 +782,17 @@ public class Build extends BuildBase {
* Compile and run all tests. This does not include the compile step. * Compile and run all tests. This does not include the compile step.
*/ */
public void test() { public void test() {
test(false);
}
/**
* Compile and run all fast tests. This does not include the compile step.
*/
public void testFast() {
test(true);
}
private void test(boolean fast) {
downloadTest(); downloadTest();
String cp = "temp" + File.pathSeparator + "bin" + String cp = "temp" + File.pathSeparator + "bin" +
File.pathSeparator + "ext/postgresql-8.3-603.jdbc3.jar" + File.pathSeparator + "ext/postgresql-8.3-603.jdbc3.jar" +
...@@ -795,10 +806,17 @@ public class Build extends BuildBase { ...@@ -795,10 +806,17 @@ public class Build extends BuildBase {
File.pathSeparator + "ext/slf4j-nop-1.6.0.jar" + File.pathSeparator + "ext/slf4j-nop-1.6.0.jar" +
File.pathSeparator + System.getProperty("java.home") + File.pathSeparator + System.getProperty("java.home") +
"/../lib/tools.jar"; "/../lib/tools.jar";
if (fast) {
exec("java", args(
"-Xmx128m",
"-cp", cp,
"org.h2.test.TestAll", "fast"));
} else {
exec("java", args( exec("java", args(
"-Xmx128m", "-Xmx128m",
"-cp", cp, "-cp", cp,
"org.h2.test.TestAll")); "org.h2.test.TestAll"));
}
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论