diff options
Diffstat (limited to 'main/test/src/main/ForeignBuildsTest.scala')
-rw-r--r-- | main/test/src/main/ForeignBuildsTest.scala | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/main/test/src/main/ForeignBuildsTest.scala b/main/test/src/main/ForeignBuildsTest.scala new file mode 100644 index 00000000..cfc8d00c --- /dev/null +++ b/main/test/src/main/ForeignBuildsTest.scala @@ -0,0 +1,30 @@ +package mill.main + +import mill.util.ScriptTestSuite +import utest._ + +object ForeignBuildsTest extends ScriptTestSuite(fork = false) { + def workspaceSlug = "foreign-builds" + def scriptSourcePath = + os.pwd / 'main / 'test / 'resources / 'examples / 'foreign + override def buildPath = os.rel / 'project / "build.sc" + + val tests = Tests { + initWorkspace() + 'test - { + // See https://github.com/lihaoyi/mill/issues/302 + if (!ammonite.util.Util.java9OrAbove) { + assert( + eval("checkProjectPaths"), + eval("checkInnerPaths"), + eval("checkOuterPaths"), + eval("checkOuterInnerPaths"), + eval("checkProjectDests"), + eval("checkInnerDests"), + eval("checkOuterDests"), + eval("checkOuterInnerDests") + ) + } + } + } +} |