|
1 | 1 | package dotc
|
2 | 2 |
|
3 | 3 | import test._
|
4 |
| -import dotty.partest._ |
5 | 4 | import org.junit.Test
|
6 |
| -import org.junit.experimental.categories._ |
7 |
| - |
| 5 | +import scala.reflect.io.Directory |
8 | 6 | import scala.io.Source
|
9 | 7 |
|
10 | 8 | // tests that match regex '(pos|dotc|run|java|compileStdLib)\.*' would be executed as benchmarks.
|
@@ -288,4 +286,26 @@ class tests extends CompilerTest {
|
288 | 286 | @Test def tasty_dotc_util = compileDir(dotcDir, "util", testPickling)
|
289 | 287 | @Test def tasty_tools_io = compileDir(toolsDir, "io", testPickling)
|
290 | 288 | @Test def tasty_tests = compileDir(testsDir, "tasty", testPickling)
|
| 289 | + |
| 290 | + @Test def tasty_bootstrap = { |
| 291 | + // remove class files from stdlib compilation |
| 292 | + Directory(defaultOutputDir + "scala").deleteRecursively() |
| 293 | + |
| 294 | + val opt = List("-classpath", defaultOutputDir, "-Ylog-classpath") |
| 295 | + // first compile dotty |
| 296 | + compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant", "-strict"))(allowDeepSubtypes) |
| 297 | + |
| 298 | + compileDir(dottyDir, "tools", opt) |
| 299 | + compileDir(toolsDir, "dotc", opt) |
| 300 | + compileDir(dotcDir, "ast", opt) |
| 301 | + compileDir(dotcDir, "config", opt) |
| 302 | + compileDir(dotcDir, "parsing", opt) |
| 303 | + compileDir(dotcDir, "printing", opt) |
| 304 | + compileDir(dotcDir, "repl", opt) |
| 305 | + compileDir(dotcDir, "reporting", opt) |
| 306 | + compileDir(dotcDir, "rewrite", opt) |
| 307 | + compileDir(dotcDir, "transform", opt) |
| 308 | + compileDir(dotcDir, "typer", opt) |
| 309 | + compileDir(dotcDir, "util", opt) |
| 310 | + } |
291 | 311 | }
|
0 commit comments