diff options
| author | Chick Markley | 2018-03-19 16:57:07 -0700 |
|---|---|---|
| committer | Adam Izraelevitz | 2018-03-19 16:57:07 -0700 |
| commit | 64ddd10c5b9c24dc9f74e545397dd548017febca (patch) | |
| tree | 6d89022141383e2127637c720c431fa0fbf27950 /src/test/scala | |
| parent | 9e32fd0ddfe3510d02ac4f5c2a118b631d4d3d6b (diff) | |
Pass up annotations in return value from Driver.execute (#760)
* Pass up annotations in return value from Driver.execute
Backward compatible with existing usage.
Adds CircuitState to FirrtlExecutionSuccess, but
that member is not part of the unapply.
"To a single file per module if OneFilePerModule is specified"
test shows example of getting access to annotations
* As experiment return created files in annotations
Fix line missed in last push
Diffstat (limited to 'src/test/scala')
| -rw-r--r-- | src/test/scala/firrtlTests/DriverSpec.scala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/scala/firrtlTests/DriverSpec.scala b/src/test/scala/firrtlTests/DriverSpec.scala index 406e5f42..b0ce0af9 100644 --- a/src/test/scala/firrtlTests/DriverSpec.scala +++ b/src/test/scala/firrtlTests/DriverSpec.scala @@ -355,7 +355,12 @@ class DriverSpec extends FreeSpec with Matchers with BackendCompilationUtilities emitOneFilePerModule = true) } - firrtl.Driver.execute(manager) + firrtl.Driver.execute(manager) match { + case success: FirrtlExecutionSuccess => + success.circuitState.annotations.length should be > (0) + case _ => + + } for (name <- expectedOutputFileNames) { val file = new File(name) |
