Bring up FireSim tests

This commit is contained in:
David Biancolin
2019-05-28 22:51:39 +00:00
parent 2a58f387ed
commit a53abf1856
5 changed files with 76 additions and 38 deletions

View File

@@ -1,3 +1,5 @@
import Tests._
lazy val commonSettings = Seq(
organization := "edu.berkeley.cs",
version := "1.0",
@@ -41,6 +43,14 @@ def conditionalDependsOn(prj: Project): Project = {
}
}
// Fork each scala test for now, to work around persistent mutable state
// in Rocket-Chip based generators
def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test =>
val options = ForkOptions()
new Group(test.name, Seq(test), SubProcess(options))
} toSeq
// Subproject definitions begin
// Biancolin: get to the bottom of these
@@ -117,5 +127,8 @@ lazy val firesimLib = ProjectRef(firesimDir, "firesimLib")
lazy val firechip = (project in file("generators/firechip"))
.dependsOn(boom, icenet, testchipip, sifive_blocks, midasTargetUtils, midas, firesimLib % "test->test;compile->compile")
.settings(commonSettings)
.settings(
commonSettings,
testGrouping in Test := isolateAllTests( (definedTests in Test).value )
)