aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtl
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/firrtl')
-rw-r--r--src/test/scala/firrtl/stage/phases/tests/DriverCompatibilitySpec.scala2
-rw-r--r--src/test/scala/firrtl/testutils/FirrtlSpec.scala6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/scala/firrtl/stage/phases/tests/DriverCompatibilitySpec.scala b/src/test/scala/firrtl/stage/phases/tests/DriverCompatibilitySpec.scala
index 64654175..007608ca 100644
--- a/src/test/scala/firrtl/stage/phases/tests/DriverCompatibilitySpec.scala
+++ b/src/test/scala/firrtl/stage/phases/tests/DriverCompatibilitySpec.scala
@@ -125,7 +125,7 @@ class DriverCompatibilitySpec extends AnyFlatSpec with Matchers with PrivateMeth
new PhaseFixture(new AddImplicitFirrtlFile) {
val annotations = Seq( TopNameAnnotation("foo") )
val expected = annotations.toSet +
- FirrtlFileAnnotation(new File("foo.fir").getCanonicalPath)
+ FirrtlFileAnnotation(new File("foo.fir").getPath())
phase.transform(annotations).toSet should be (expected)
}
diff --git a/src/test/scala/firrtl/testutils/FirrtlSpec.scala b/src/test/scala/firrtl/testutils/FirrtlSpec.scala
index 75739147..dfc20352 100644
--- a/src/test/scala/firrtl/testutils/FirrtlSpec.scala
+++ b/src/test/scala/firrtl/testutils/FirrtlSpec.scala
@@ -104,13 +104,13 @@ trait FirrtlRunners extends BackendCompilationUtilities {
val customName = s"${prefix}_custom"
val customAnnos = getBaseAnnos(customName) ++: toAnnos((new GetNamespace) +: customTransforms) ++: customAnnotations
- val customResult = (new firrtl.stage.FirrtlStage).run(customAnnos)
+ val customResult = (new firrtl.stage.FirrtlStage).execute(Array.empty, customAnnos)
val nsAnno = customResult.collectFirst { case m: ModuleNamespaceAnnotation => m }.get
val refSuggestedName = s"${prefix}_ref"
val refAnnos = getBaseAnnos(refSuggestedName) ++: Seq(RunFirrtlTransformAnnotation(new RenameModules), nsAnno)
- val refResult = (new firrtl.stage.FirrtlStage).run(refAnnos)
+ val refResult = (new firrtl.stage.FirrtlStage).execute(Array.empty, refAnnos)
val refName = refResult.collectFirst({ case stage.FirrtlCircuitAnnotation(c) => c.main }).getOrElse(refSuggestedName)
assert(BackendCompilationUtilities.yosysExpectSuccess(customName, refName, testDir, timesteps))
@@ -145,7 +145,7 @@ trait FirrtlRunners extends BackendCompilationUtilities {
annotations ++:
(customTransforms ++ extraCheckTransforms).map(RunFirrtlTransformAnnotation(_))
- (new firrtl.stage.FirrtlStage).run(annos)
+ (new firrtl.stage.FirrtlStage).execute(Array.empty, annos)
testDir
}