aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/options/ShellSpec.scala
blob: d87a9a3014b34c432434c484783ca3b51bfe37a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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")
  }
}