aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorDavid Biancolin2020-03-17 13:26:40 -0700
committerGitHub2020-03-17 13:26:40 -0700
commitba1f24345ac5ab20c669c73b871920001ac3a8ed (patch)
treea6a55fafd5f68c35e574a34842930165af5631ad /build.sbt
parentd0500b33167cad060a9325d68b939d41279f6c9c (diff)
[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 <albert.magyar@gmail.com>
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt15
1 files changed, 15 insertions, 0 deletions
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)