aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/IntegrationSpec.scala
diff options
context:
space:
mode:
authorjackkoenig2016-03-03 12:23:57 -0800
committerjackkoenig2016-03-03 12:23:57 -0800
commit4d77e3ac1020b404e5a0f5d68cd36fb3a07ef333 (patch)
tree5e78244b61d87d0256efe974a7a352285f745a65 /src/test/scala/firrtlTests/IntegrationSpec.scala
parent0aa246385d1d2eabafce0e659d6438a38c3b6519 (diff)
Add some integration tests: successful compilation and execution
Diffstat (limited to 'src/test/scala/firrtlTests/IntegrationSpec.scala')
-rw-r--r--src/test/scala/firrtlTests/IntegrationSpec.scala26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/scala/firrtlTests/IntegrationSpec.scala b/src/test/scala/firrtlTests/IntegrationSpec.scala
new file mode 100644
index 00000000..eb5a7fa1
--- /dev/null
+++ b/src/test/scala/firrtlTests/IntegrationSpec.scala
@@ -0,0 +1,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)
+ }
+ }
+}