From 27c1b366ce58e93434e77e964365474f5e7aa8d7 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Fri, 28 Sep 2018 12:39:01 -0400 Subject: Add firrtl.options tests Signed-off-by: Schuyler Eldridge --- src/test/scala/firrtlTests/options/ShellSpec.scala | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/scala/firrtlTests/options/ShellSpec.scala (limited to 'src/test/scala/firrtlTests/options/ShellSpec.scala') 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") + } +} -- cgit v1.2.3