blob: eb5a7fa1bd816df4c1d3815f000181484e00b6e8 (
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
|
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"))
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)
}
}
}
|