diff options
| author | Chick Markley | 2017-05-18 12:23:40 -0700 |
|---|---|---|
| committer | GitHub | 2017-05-18 12:23:40 -0700 |
| commit | 9c50af20027801d8623edd1db2c63c4eb449b3ae (patch) | |
| tree | bee5ddcab07ca0e498c52a53f0b8d3e1c3b22293 /src/test/scala/firrtlTests/InlineInstancesTests.scala | |
| parent | d824c60c9643973e0ae9cddc5007b3d9592f8a52 (diff) | |
Upgrade Logging facility (#488)
* Upgrade Logging facility
Make thread-safe
Make logging by package name work
Use caching of class names to level for performance
Make some tests to show this working
* quick fix for dynamic logging variable
* A number of changes based on Adam's suggestions
Default LoggerState
But there is an invoke method now to handle threading issues. This should be propagated to other
projects Driver.execute methods
* Add built-in support for string capture of Logging
* Usability fixes for logging stuff. Settings made to the logger prior to execute/invoke will be passed along if possible.
* A couple style fixes
Comment and privatize Logger state
* Name and save string buffers used for logging
* Fix default logging state setting
Fix logging test, did not have change to command argument
* comment out logging in InlineInstanceTests
* Changed invoke to makeScope
Nested makeScopes share same state object
Removed earlier named string buffer implementation
* Better name for captor get data
* Add trace tests to make sure it works too
* Fix call into logger settings
Diffstat (limited to 'src/test/scala/firrtlTests/InlineInstancesTests.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/InlineInstancesTests.scala | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/test/scala/firrtlTests/InlineInstancesTests.scala b/src/test/scala/firrtlTests/InlineInstancesTests.scala index a3b7386d..9e8f8054 100644 --- a/src/test/scala/firrtlTests/InlineInstancesTests.scala +++ b/src/test/scala/firrtlTests/InlineInstancesTests.scala @@ -5,19 +5,12 @@ package firrtlTests import org.scalatest.FlatSpec import org.scalatest.Matchers import org.scalatest.junit.JUnitRunner - import firrtl.ir.Circuit -import firrtl.{Parser, AnnotationMap} +import firrtl.{AnnotationMap, Parser} import firrtl.passes.PassExceptions -import firrtl.annotations.{ - Named, - CircuitName, - ModuleName, - ComponentName, - Annotation -} -import firrtl.passes.{InlineInstances, InlineAnnotation} -import logger.Logger +import firrtl.annotations.{Annotation, CircuitName, ComponentName, ModuleName, Named} +import firrtl.passes.{InlineAnnotation, InlineInstances} +import logger.{LogLevel, Logger} import logger.LogLevel.Debug @@ -26,8 +19,8 @@ import logger.LogLevel.Debug */ class InlineInstancesTests extends LowTransformSpec { def transform = new InlineInstances - // Set this to debug - // Logger.setClassLogLevels(Map(this.getClass.getName -> Debug)) + // Set this to debug, this will apply to all tests + // Logger.setLevel(this.getClass, Debug) "The module Inline" should "be inlined" in { val input = """circuit Top : |
