2016-09-15 03:10:21 +02:00
|
|
|
// See LICENSE for license details.
|
|
|
|
|
2016-09-15 22:04:01 +02:00
|
|
|
package unittest
|
2016-09-15 03:10:21 +02:00
|
|
|
|
|
|
|
import scala.collection.mutable.LinkedHashSet
|
|
|
|
|
|
|
|
import Chisel._
|
2016-09-15 23:25:47 +02:00
|
|
|
import cde.{Parameters, Config, CDEMatchError}
|
2016-09-15 03:10:21 +02:00
|
|
|
import coreplex._
|
|
|
|
import rocketchip._
|
|
|
|
|
|
|
|
class WithUnitTest extends Config(
|
|
|
|
(pname, site, here) => pname match {
|
|
|
|
case UnitTests => (testParams: Parameters) => {
|
2016-09-15 23:25:47 +02:00
|
|
|
TestGeneration.addSuite(DefaultTestSuites.groundtest64("p")) // TODO why
|
2016-09-15 03:10:21 +02:00
|
|
|
TestGeneration.addSuite(DefaultTestSuites.emptyBmarks)
|
2016-09-15 23:25:47 +02:00
|
|
|
JunctionsUnitTests(testParams) ++ UncoreUnitTests(testParams) // TODO refactor
|
2016-09-15 03:10:21 +02:00
|
|
|
}
|
|
|
|
case RegressionTestNames => LinkedHashSet("rv64ui-p-simple")
|
|
|
|
case _ => throw new CDEMatchError
|
|
|
|
})
|
|
|
|
|
|
|
|
class UnitTestConfig extends Config(new WithUnitTest ++ new BaseConfig)
|