From ba1f24345ac5ab20c669c73b871920001ac3a8ed Mon Sep 17 00:00:00 2001 From: David Biancolin Date: Tue, 17 Mar 2020 13:26:40 -0700 Subject: [RFC] Factor out common test classes; package them (#1412) * Pull out common test utilities into a separate package * Project a fat jar for test utilities Co-authored-by: Albert Magyar --- src/test/scala/firrtlTests/options/OptionParserSpec.scala | 2 +- src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala | 2 +- .../scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/scala/firrtlTests/options') diff --git a/src/test/scala/firrtlTests/options/OptionParserSpec.scala b/src/test/scala/firrtlTests/options/OptionParserSpec.scala index 3059ba1a..1d055801 100644 --- a/src/test/scala/firrtlTests/options/OptionParserSpec.scala +++ b/src/test/scala/firrtlTests/options/OptionParserSpec.scala @@ -10,7 +10,7 @@ import scopt.OptionParser import org.scalatest.{FlatSpec, Matchers} -class OptionParserSpec extends FlatSpec with Matchers with firrtlTests.Utils { +class OptionParserSpec extends FlatSpec with Matchers with firrtl.testutils.Utils { case class IntAnnotation(x: Int) extends NoTargetAnnotation { def extract: Int = x diff --git a/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala b/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala index 3bdf65a8..defda6c0 100644 --- a/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala +++ b/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala @@ -19,7 +19,7 @@ case object C extends NoTargetAnnotation case object D extends NoTargetAnnotation case object E extends NoTargetAnnotation -class GetIncludesSpec extends FlatSpec with Matchers with BackendCompilationUtilities with firrtlTests.Utils { +class GetIncludesSpec extends FlatSpec with Matchers with BackendCompilationUtilities with firrtl.testutils.Utils { val dir = new File("test_run_dir/GetIncludesSpec") dir.mkdirs() diff --git a/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala b/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala index c5fc958c..176362cc 100644 --- a/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala +++ b/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala @@ -11,7 +11,7 @@ import firrtl.annotations.{DeletedAnnotation, NoTargetAnnotation} import firrtl.options.{InputAnnotationFileAnnotation, OutputAnnotationFileAnnotation, Phase, WriteDeletedAnnotation} import firrtl.options.phases.{GetIncludes, WriteOutputAnnotations} -class WriteOutputAnnotationsSpec extends FlatSpec with Matchers with firrtlTests.Utils { +class WriteOutputAnnotationsSpec extends FlatSpec with Matchers with firrtl.testutils.Utils { val dir = "test_run_dir/WriteOutputAnnotationSpec" -- cgit v1.2.3