-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests.sc to split tests from common.sc
- Loading branch information
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) | ||
} |