aboutsummaryrefslogtreecommitdiff
path: root/test/test.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2017-07-19 11:33:38 -0600
committerGitHub <noreply@github.com>2017-07-19 11:33:38 -0600
commit3c666efaeecbc35e75f273f5078477f6714c84d4 (patch)
treea24079631cab91481b7271edf85e3608eaa04187 /test/test.scala
parentc339af9ad9b2799a1c3c7aa7815e1f16a8afb41f (diff)
parente098ec58f6191b4934276dc5a3d65279f79cbbcc (diff)
downloadcbt-3c666efaeecbc35e75f273f5078477f6714c84d4.tar.gz
cbt-3c666efaeecbc35e75f273f5078477f6714c84d4.tar.bz2
cbt-3c666efaeecbc35e75f273f5078477f6714c84d4.zip
Merge pull request #549 from darthorimar/build-info
Build info #4
Diffstat (limited to 'test/test.scala')
-rw-r--r--test/test.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index 9cb7fd9..adb4d8a 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -506,6 +506,17 @@ object Main{
assert(res.exit0)
}
+ if (slow) {
+ import scala.xml._
+ val expected =
+ (cbtHome / "examples" / "export-build-information" / "expected.xml").readAsString.replaceAll("CBT_HOME", cbtHome.getPath)
+ val expectedXml = Utility.trim(XML.loadString(expected))
+ val res = runCbt("../examples/export-build-information", Seq("buildInfoXml"))
+ assert(res.exit0)
+ val resultXml = Utility.trim(XML.loadString(res.out))
+ assert(resultXml == expectedXml)
+ }
+
/*
// currently fails with
// java.lang.UnsupportedOperationException: scalafix.rewrite.ScalafixMirror.fromMirror $anon#typeSignature requires the semantic api