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 --- build.sbt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index 749a90aa..a383471c 100644 --- a/build.sbt +++ b/build.sbt @@ -91,6 +91,21 @@ test in assembly := {} // Should there be tests? assemblyOutputPath in assembly := file("./utils/bin/firrtl.jar") +Project.inConfig(Test)(baseAssemblySettings) + +test in (Test, assembly) := {} // Ditto above + +assemblyMergeStrategy in (Test, assembly) := { + case PathList("firrtlTests", xs @ _*) => MergeStrategy.discard + case x => + val oldStrategy = (assemblyMergeStrategy in (Test, assembly)).value + oldStrategy(x) +} + +assemblyJarName in (Test, assembly) := s"firrtl-test.jar" + +assemblyOutputPath in (Test, assembly) := file("./utils/bin/" + (Test / assembly / assemblyJarName).value) + // ANTLRv4 enablePlugins(Antlr4Plugin) -- cgit v1.2.3