aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-06-19 16:12:56 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-06-19 16:12:56 -0400
commit1531ea1c1383368f8a8048a079397f08e25ecd11 (patch)
treef3953f6484de648401f25b953f99060af9b8068d /stage2/Lib.scala
parentcacf65000cb1a8aa49b29a7be3f11de60a9b7afe (diff)
downloadcbt-1531ea1c1383368f8a8048a079397f08e25ecd11.tar.gz
cbt-1531ea1c1383368f8a8048a079397f08e25ecd11.tar.bz2
cbt-1531ea1c1383368f8a8048a079397f08e25ecd11.zip
simplify logic that delegates to test build and runs it
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r--stage2/Lib.scala20
1 files changed, 0 insertions, 20 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index 2430c1d..1cbff9a 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -107,26 +107,6 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
}
}
- def test( context: Context ): Option[ExitCode] = {
- if((context.projectDirectory ++ "/test").exists){
- val loggers = logger.enabledLoggers.mkString(",")
- // FIXME: this is a hack to pass logger args on to the tests.
- // should probably have a more structured way
- val loggerArg = if(loggers != "") Some("-Dlog="++loggers) else None
-
- logger.lib(s"invoke testDefault( $context )")
- val exitCode: ExitCode =
- new ReflectBuild(
- loadDynamic(
- context.copy( projectDirectory = context.projectDirectory ++ "/test", args = loggerArg.toVector ++ context.args ),
- new BasicBuild(_) with mixins.Test
- )
- ).callNullary( Some("run") )
- logger.lib(s"return testDefault( $context )")
- Some(exitCode)
- } else None
- }
-
// task reflection helpers
def tasks(cls:Class[_]): Map[String, Method] =
Stream