aboutsummaryrefslogtreecommitdiff
path: root/test/test.scala
diff options
context:
space:
mode:
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