blob: c117f8624d229e67f8c1e654f03f28f85c38d98c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package mill.integration
import ammonite.ops._
import utest._
class AcyclicTests(fork: Boolean)
extends IntegrationTestSuite("MILL_ACYCLIC_REPO", "acyclic", fork) {
val tests = Tests{
initWorkspace()
def check(scalaVersion: String) = {
val firstCompile = eval(s"acyclic[$scalaVersion].compile")
assert(
firstCompile,
ls.rec(workspacePath).exists(_.last == "GraphAnalysis.class"),
ls.rec(workspacePath).exists(_.last == "PluginPhase.class")
)
for(scalaFile <- ls.rec(workspacePath).filter(_.ext == "scala")){
write.append(scalaFile, "\n}")
}
val brokenCompile = eval(s"acyclic[$scalaVersion].compile")
assert(!brokenCompile)
}
'scala2118 - mill.util.TestUtil.disableInJava9OrAbove(check("2.11.8"))
'scala2124 - check("2.12.4")
}
}
|