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

Option to run only fast tests

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