aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/options/ShellSpec.scala
diff options
context:
space:
mode:
authorSchuyler Eldridge2018-11-07 13:48:06 -0500
committerGitHub2018-11-07 13:48:06 -0500
commit17b4e9835bd95dcf91c5ea5a4d7c52280031ea93 (patch)
treee54301b8019d17cce4448ce9d09589815a7315d5 /src/test/scala/firrtlTests/options/ShellSpec.scala
parentd04af59c233cec994087df3d0d3fff14e20ac04c (diff)
parent27c1b366ce58e93434e77e964365474f5e7aa8d7 (diff)
Merge pull request #879 from seldridge/issue-764-refactor-pr-pointer-optionsPackage
- Adds firrtl.options package and tests - Does not use firrtl.options in any way
Diffstat (limited to 'src/test/scala/firrtlTests/options/ShellSpec.scala')
-rw-r--r--src/test/scala/firrtlTests/options/ShellSpec.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/scala/firrtlTests/options/ShellSpec.scala b/src/test/scala/firrtlTests/options/ShellSpec.scala
new file mode 100644
index 00000000..d87a9a30
--- /dev/null
+++ b/src/test/scala/firrtlTests/options/ShellSpec.scala
@@ -0,0 +1,22 @@
+// See LICENSE for license details.
+
+package firrtlTests.options
+
+import org.scalatest._
+
+import firrtl.options.Shell
+
+class ShellSpec extends FlatSpec with Matchers {
+
+ behavior of "Shell"
+
+ it should "detect all registered libraries and transforms" in {
+ val shell = new Shell("foo")
+
+ info("Found FooTransform")
+ shell.registeredTransforms.map(_.getClass.getName) should contain ("firrtlTests.options.FooTransform")
+
+ info("Found BarLibrary")
+ shell.registeredLibraries.map(_.getClass.getName) should contain ("firrtlTests.options.BarLibrary")
+ }
+}