aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotc
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-01-11 00:57:59 +0100
committerGuillaume Martres <smarter@ubuntu.com>2017-01-27 14:24:11 +0100
commitadc370df8a584096467ba567c0b75d7cec36fd81 (patch)
tree1d69c463e161fa0528c1bf27b7fbb4b4c00a723f /compiler/test/dotc
parentc3f20b61b90db0556272931cb661ef56e92b68d3 (diff)
downloaddotty-adc370df8a584096467ba567c0b75d7cec36fd81.tar.gz
dotty-adc370df8a584096467ba567c0b75d7cec36fd81.tar.bz2
dotty-adc370df8a584096467ba567c0b75d7cec36fd81.zip
Use new sbt-based bootstrap for partest too
`partest` and `partest-only` are now run through `dotty-compiler-bootstrapped`. The old bootstrapping mechanism is deleted since it has been unmaintained and broken for several months and that I do not wish to maintain two bootstrapping mechanisms.
Diffstat (limited to 'compiler/test/dotc')
-rw-r--r--compiler/test/dotc/build.scala40
1 files changed, 0 insertions, 40 deletions
diff --git a/compiler/test/dotc/build.scala b/compiler/test/dotc/build.scala
deleted file mode 100644
index b1c8db7c7..000000000
--- a/compiler/test/dotc/build.scala
+++ /dev/null
@@ -1,40 +0,0 @@
-package dotc
-
-import java.io.File
-
-object build extends tests {
-
- private def deleteFilesInFolder(folder: File, deleteFolder: Boolean = false): Unit = {
- val files = folder.listFiles()
- if(files != null) { //some JVMs return null for empty dirs
- for(f <- files) {
- if(f.isDirectory) {
- deleteFilesInFolder(f, deleteFolder = true)
- } else {
- f.delete()
- }
- }
- }
- if(deleteFolder) folder.delete()
- }
-
- def clearOutput() = {
- deleteFilesInFolder(new File(defaultOutputDir)) // clear previous output
- val keepFile = new File(defaultOutputDir + ".keep")
- keepFile.createNewFile()
- }
-
- def main(args: Array[String]): Unit = {
- println("---------- Building bootstrapped dotty-lib ----------------------------------------------")
- clearOutput()
- dottyBootedLib
- val p1 = Runtime.getRuntime.exec(Array("jar", "cf", "dotty-lib.jar", "-C", "out", "."))
- p1.waitFor()
-
- println("---------- Building bootstrapped dotty depending on dotty-lib compiled by dotty ----------")
- clearOutput()
- dottyDependsOnBootedLib
- val p2 = Runtime.getRuntime.exec(Array("jar", "cf", "dotty.jar", "-C", "out", "."))
- p2.waitFor()
- }
-}