diff options
| author | David Biancolin | 2020-03-17 13:26:40 -0700 |
|---|---|---|
| committer | GitHub | 2020-03-17 13:26:40 -0700 |
| commit | ba1f24345ac5ab20c669c73b871920001ac3a8ed (patch) | |
| tree | a6a55fafd5f68c35e574a34842930165af5631ad /build.sbt | |
| parent | d0500b33167cad060a9325d68b939d41279f6c9c (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.sbt | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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) |
