aboutsummaryrefslogtreecommitdiff
path: root/test/test.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-06-19 18:49:20 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-06-19 20:57:54 -0400
commit621192d9ba231ab9b849f3f19073bc0e0acd9220 (patch)
tree9ac80baf2ecf410568c7fc8dbdef7cb55ab8af89 /test/test.scala
parent47cc41ecaa2eaf5677fcb1794db7bbba6533b559 (diff)
downloadcbt-621192d9ba231ab9b849f3f19073bc0e0acd9220.tar.gz
cbt-621192d9ba231ab9b849f3f19073bc0e0acd9220.tar.bz2
cbt-621192d9ba231ab9b849f3f19073bc0e0acd9220.zip
add scalajs example to tests
Diffstat (limited to 'test/test.scala')
-rw-r--r--test/test.scala11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/test.scala b/test/test.scala
index 8c609dd..050be1f 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -64,9 +64,10 @@ object Main{
assert(res.out == "", debugToken ++ res.toString)
assert(res.err contains usageString, debugToken ++ res.toString)
}
- def compile(path: String)(implicit logger: Logger) = {
- val res = runCbt(path, Seq("compile"))
- val debugToken = "compile " ++ path ++ " "
+ def compile(path: String)(implicit logger: Logger) = task("compile", path)
+ def task(name: String, path: String)(implicit logger: Logger) = {
+ val res = runCbt(path, Seq(name))
+ val debugToken = name ++ " " ++ path ++ " "
assertSuccess(res,debugToken)
// assert(res.err == "", res.err) // FIXME: enable this
}
@@ -160,6 +161,10 @@ object Main{
compile("../plugins/scalajs")
compile("../plugins/scalatest")
compile("../examples/scalatest-example")
+ compile("../examples/scalajs-react-example/js")
+ compile("../examples/scalajs-react-example/jvm")
+ task("fastOptJS","../examples/scalajs-react-example/js")
+ task("fullOptJS","../examples/scalajs-react-example/js")
System.err.println(" DONE!")
System.err.println( successes.toString ++ " succeeded, "++ failures.toString ++ " failed" )