Skip to content

Commit

Permalink
add tests.sc to split tests from common.sc
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Oct 21, 2023
1 parent a9bc4c9 commit e951966
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import mill.scalalib.scalafmt._
import coursier.maven.MavenRepository
import mill.scalalib.api.ZincWorkerUtil.matchingVersions
import $file.common
import $file.tests
import $file.project.Boilerplate

object v {
Expand Down
79 changes: 79 additions & 0 deletions tests.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import mill._
import mill.scalalib._
import $file.common

trait SvsimUnitTestModule
extends TestModule
with ScalaModule
with TestModule.ScalaTest {
def svsimModule: common.SvsimModule

def scalatestIvy: Dep

def scalacheckIvy: Dep

override def moduleDeps = Seq(svsimModule)

override def defaultCommandName() = "test"

override def ivyDeps = super.ivyDeps() ++ Agg(
scalatestIvy,
scalacheckIvy
)
}

trait FirrtlUnitTestModule
extends TestModule
with ScalaModule
with TestModule.ScalaTest {
def firrtlModule: common.FirrtlModule

def scalatestIvy: Dep

def scalacheckIvy: Dep

override def moduleDeps = Seq(firrtlModule)

override def defaultCommandName() = "test"

override def ivyDeps = super.ivyDeps() ++ Agg(
scalatestIvy,
scalacheckIvy
)
}

trait ChiselUnitTestModule
extends TestModule
with ScalaModule
with common.HasChisel
with common.HasMacroAnnotations
with TestModule.ScalaTest {
def scalatestIvy: Dep

def scalacheckIvy: Dep

override def defaultCommandName() = "test"

override def ivyDeps = super.ivyDeps() ++ Agg(
scalatestIvy,
scalacheckIvy
)
}

trait CIRCTPanamaBinderModuleTestModule
extends TestModule
with ScalaModule
with common.HasCIRCTPanamaBinderModule
with common.HasMacroAnnotations
with TestModule.ScalaTest {
def scalatestIvy: Dep

def scalacheckIvy: Dep

override def defaultCommandName() = "test"

override def ivyDeps = super.ivyDeps() ++ Agg(
scalatestIvy,
scalacheckIvy
)
}

0 comments on commit e951966

Please sign in to comment.