split TestlibTest into two tests

* old tests attaches stdlib sources to testlib classpath
* new test compiles stdlib into stdlib.jar and then adds stdlib.jar to testlib classpath
This commit is contained in:
Stepan Koltsov
2012-01-23 03:37:09 +04:00
parent 19b206378d
commit 4767e5c935
6 changed files with 205 additions and 15 deletions
@@ -172,8 +172,20 @@ public class JetTestUtils {
}
}
public static File tmpRoot() {
return new File("tmp");
}
public static File tmpDirForTest(TestCase test) {
return new File("tmp/" + test.getClass().getSimpleName() + "/" + test.getName());
return new File(tmpRoot(), test.getClass().getSimpleName() + "/" + test.getName());
}
public static File tmpDirForTest(Class<?> clazz) {
return tmpDirForTest(clazz.getSimpleName());
}
public static File tmpDirForTest(String name) {
return new File(tmpRoot(), name);
}
public static void recreateDirectory(File file) throws IOException {