aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/IntegrationSpec.scala
blob: e9afd73995458a2092a6bb849e677aefba185b29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package firrtlTests

import org.scalatest._
import org.scalatest.prop._

class IntegrationSpec extends FirrtlPropSpec {

  case class Test(name: String, dir: String)

  val runTests = Seq(Test("GCDTester", "/integration"),
                     Test("RightShiftTester", "/integration"))
      

  runTests foreach { test =>
    property(s"${test.name} should execute correctly") {
      runFirrtlTest(test.name, test.dir)
    }
  }

  val compileTests = Seq(Test("rocket", "/regress"), Test("rocket-firrtl", "/regress"))

  compileTests foreach { test =>
    property(s"${test.name} should compile to Verilog") {
      compileFirrtlTest(test.name, test.dir)
    }
  }
}