diff options
| author | Schuyler Eldridge | 2018-11-07 13:48:06 -0500 |
|---|---|---|
| committer | GitHub | 2018-11-07 13:48:06 -0500 |
| commit | 17b4e9835bd95dcf91c5ea5a4d7c52280031ea93 (patch) | |
| tree | e54301b8019d17cce4448ce9d09589815a7315d5 /src/test/scala/firrtlTests/options/ShellSpec.scala | |
| parent | d04af59c233cec994087df3d0d3fff14e20ac04c (diff) | |
| parent | 27c1b366ce58e93434e77e964365474f5e7aa8d7 (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.scala | 22 |
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") + } +} |
