aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJack Koenig2021-03-02 15:32:24 -0800
committerGitHub2021-03-02 15:32:24 -0800
commit38dc5401ea875037e23bbbe998fb1b0f9aef7334 (patch)
tree948ea28b7dbbef0347e6e86d30b6f12854fe61f1 /src/test
parent541a70c9489ec90118d45d4c953af0d0a33f8316 (diff)
Remove Scala 2.11 (#2062)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/firrtl/backends/experimental/smt/end2end/SMTCompilationTest.scala3
-rw-r--r--src/test/scala/firrtlTests/stage/FirrtlMainSpec.scala28
2 files changed, 2 insertions, 29 deletions
diff --git a/src/test/scala/firrtl/backends/experimental/smt/end2end/SMTCompilationTest.scala b/src/test/scala/firrtl/backends/experimental/smt/end2end/SMTCompilationTest.scala
index 72949830..f846e19c 100644
--- a/src/test/scala/firrtl/backends/experimental/smt/end2end/SMTCompilationTest.scala
+++ b/src/test/scala/firrtl/backends/experimental/smt/end2end/SMTCompilationTest.scala
@@ -15,8 +15,7 @@ import scala.sys.process.{Process, ProcessLogger}
class SMTCompilationTest extends AnyFlatSpec with LazyLogging {
it should "generate valid SMTLib for AddNot" taggedAs (RequiresZ3) in { compileAndParse("AddNot") }
it should "generate valid SMTLib for FPU" taggedAs (RequiresZ3) in { compileAndParse("FPU") }
- // we get a stack overflow in Scala 2.11 because of a deeply nested and(...) expression in the sequencer
- it should "generate valid SMTLib for HwachaSequencer" taggedAs (RequiresZ3) ignore {
+ it should "generate valid SMTLib for HwachaSequencer" taggedAs (RequiresZ3) in {
compileAndParse("HwachaSequencer")
}
it should "generate valid SMTLib for ICache" taggedAs (RequiresZ3) in { compileAndParse("ICache") }
diff --git a/src/test/scala/firrtlTests/stage/FirrtlMainSpec.scala b/src/test/scala/firrtlTests/stage/FirrtlMainSpec.scala
index ea590d26..eaf48b49 100644
--- a/src/test/scala/firrtlTests/stage/FirrtlMainSpec.scala
+++ b/src/test/scala/firrtlTests/stage/FirrtlMainSpec.scala
@@ -164,16 +164,6 @@ class FirrtlMainSpec
|""".stripMargin
}
- /** This returns a string containing the default standard out string based on the Scala version. E.g., if there are
- * version-specific deprecation warnings, those are available here and can be passed to tests that should have them.
- */
- val defaultStdOut: Option[String] = BuildInfo.scalaVersion.split("\\.").toList match {
- case "2" :: v :: _ :: Nil if v.toInt <= 11 =>
- Some(CheckScalaVersion.deprecationMessage("2.11", s"--${WarnNoScalaVersionDeprecation.longOption}"))
- case x =>
- None
- }
-
info("As a FIRRTL command line user")
info("I want to compile some FIRRTL")
Feature("FirrtlMain command line interface") {
@@ -205,58 +195,48 @@ class FirrtlMainSpec
Seq(
/* Test all standard emitters with and without annotation file outputs */
FirrtlMainTest(args = Array("-X", "none", "-E", "chirrtl"), files = Seq("Top.fir")),
- FirrtlMainTest(args = Array("-X", "high", "-E", "high"), stdout = defaultStdOut, files = Seq("Top.hi.fir")),
+ FirrtlMainTest(args = Array("-X", "high", "-E", "high"), files = Seq("Top.hi.fir")),
FirrtlMainTest(
args = Array("-X", "middle", "-E", "middle", "-foaf", "Top"),
- stdout = defaultStdOut,
files = Seq("Top.mid.fir", "Top.anno.json")
),
FirrtlMainTest(
args = Array("-X", "low", "-E", "low", "-foaf", "annotations.anno.json"),
- stdout = defaultStdOut,
files = Seq("Top.lo.fir", "annotations.anno.json")
),
FirrtlMainTest(
args = Array("-X", "verilog", "-E", "verilog", "-foaf", "foo.anno"),
- stdout = defaultStdOut,
files = Seq("Top.v", "foo.anno.anno.json")
),
FirrtlMainTest(
args = Array("-X", "sverilog", "-E", "sverilog", "-foaf", "foo.json"),
- stdout = defaultStdOut,
files = Seq("Top.sv", "foo.json.anno.json")
),
/* Test all one file per module emitters */
FirrtlMainTest(args = Array("-X", "none", "-e", "chirrtl"), files = Seq("Top.fir", "Child.fir")),
FirrtlMainTest(
args = Array("-X", "high", "-e", "high"),
- stdout = defaultStdOut,
files = Seq("Top.hi.fir", "Child.hi.fir")
),
FirrtlMainTest(
args = Array("-X", "middle", "-e", "middle"),
- stdout = defaultStdOut,
files = Seq("Top.mid.fir", "Child.mid.fir")
),
FirrtlMainTest(
args = Array("-X", "low", "-e", "low"),
- stdout = defaultStdOut,
files = Seq("Top.lo.fir", "Child.lo.fir")
),
FirrtlMainTest(
args = Array("-X", "verilog", "-e", "verilog"),
- stdout = defaultStdOut,
files = Seq("Top.v", "Child.v")
),
FirrtlMainTest(
args = Array("-X", "sverilog", "-e", "sverilog"),
- stdout = defaultStdOut,
files = Seq("Top.sv", "Child.sv")
),
/* Test mixing of -E with -e */
FirrtlMainTest(
args = Array("-X", "middle", "-E", "high", "-e", "middle"),
- stdout = defaultStdOut,
files = Seq("Top.hi.fir", "Top.mid.fir", "Child.mid.fir"),
notFiles = Seq("Child.hi.fir")
),
@@ -264,33 +244,27 @@ class FirrtlMainSpec
FirrtlMainTest(args = Array("-X", "none", "-E", "chirrtl", "-o", "foo"), files = Seq("foo.fir")),
FirrtlMainTest(
args = Array("-X", "high", "-E", "high", "-o", "foo"),
- stdout = defaultStdOut,
files = Seq("foo.hi.fir")
),
FirrtlMainTest(
args = Array("-X", "middle", "-E", "middle", "-o", "foo.middle"),
- stdout = defaultStdOut,
files = Seq("foo.middle.mid.fir")
),
FirrtlMainTest(
args = Array("-X", "low", "-E", "low", "-o", "foo.lo.fir"),
- stdout = defaultStdOut,
files = Seq("foo.lo.fir")
),
FirrtlMainTest(
args = Array("-X", "verilog", "-E", "verilog", "-o", "foo.sv"),
- stdout = defaultStdOut,
files = Seq("foo.sv.v")
),
FirrtlMainTest(
args = Array("-X", "sverilog", "-E", "sverilog", "-o", "Foo"),
- stdout = defaultStdOut,
files = Seq("Foo.sv")
),
/* Test that an output is generated if no emitter is specified */
FirrtlMainTest(
args = Array("-X", "verilog", "-o", "Foo"),
- stdout = defaultStdOut,
files = Seq("Foo.v")
)
)