From 09b2f39731386cd5b3688d5c3badf75d956d4f6d Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 31 May 2016 15:23:04 +0200 Subject: Make the dotty-bridge sbt project a subproject of dotty Note that the dotty-bridge tests will not be run automatically by `test` which is short for `dotty/test`, to run the dotty-bridge tests, do in sbt: > dotty-bridge/test > dotty-bridge/scripted Original history: https://github.com/smarter/dotty-bridge/commits/master --- bridge/src/sbt-test/source-dependencies/ext/build.sbt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bridge/src/sbt-test/source-dependencies/ext/build.sbt (limited to 'bridge/src/sbt-test/source-dependencies/ext/build.sbt') diff --git a/bridge/src/sbt-test/source-dependencies/ext/build.sbt b/bridge/src/sbt-test/source-dependencies/ext/build.sbt new file mode 100644 index 000000000..8aaec76ec --- /dev/null +++ b/bridge/src/sbt-test/source-dependencies/ext/build.sbt @@ -0,0 +1,9 @@ +import complete.DefaultParsers._ + +val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.") + +checkIterations := { + val expected: Int = (Space ~> NatBasic).parsed + val actual: Int = (compile in Compile).value.compilations.allCompilations.size + assert(expected == actual, s"Expected $expected compilations, got $actual") +} \ No newline at end of file -- cgit v1.2.3