summaryrefslogtreecommitdiff
path: root/main/test/src/mill/main/ForeignConflictTest.scala
blob: a4352bb6a077ccdc2cbb634ac11a886683a1ffb9 (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
package mill.main


import mill.util.ScriptTestSuite
import utest._

object ForeignConflictTest extends ScriptTestSuite(fork = false) {
  def workspaceSlug = "foreign-conflict"
  def scriptSourcePath =
    os.pwd / 'main / 'test / 'resources / 'examples / 'foreign
  override def buildPath = os.rel / 'conflict / "build.sc"

  val tests = Tests {
    initWorkspace()
    'test - {
      // see https://github.com/lihaoyi/mill/issues/302
      if (!ammonite.util.Util.java9OrAbove) {
        assert(
          eval("checkPaths"),
          eval("checkDests")
        )
      }
    }
  }
}