aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-07-20 16:10:35 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-07-20 17:30:50 +0200
commit8d266198c5ef3fd82511a6c6882d94bf5d7e50e4 (patch)
tree20250b27e713550a7d367c812a889110615a42d4 /test/dotc/tests.scala
parentfa3265e37a1e480861cc09102ec0dc94dd4a7557 (diff)
downloaddotty-8d266198c5ef3fd82511a6c6882d94bf5d7e50e4.tar.gz
dotty-8d266198c5ef3fd82511a6c6882d94bf5d7e50e4.tar.bz2
dotty-8d266198c5ef3fd82511a6c6882d94bf5d7e50e4.zip
Enable -Ycheck:all in Jenkins.
Done by setting an environment variable and checking it in runtime. This enables Ycheck:all for all kinds of tests, including partest.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 7aa43c13e..6fefbf664 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -8,6 +8,8 @@ import org.junit.experimental.categories._
class tests extends CompilerTest {
+ def isRunByJenkins: Boolean = sys.props.isDefinedAt("dotty.jenkins.build")
+
val noCheckOptions = List(
// "-verbose",
// "-Ylog:frontend",
@@ -20,9 +22,12 @@ class tests extends CompilerTest {
implicit val defaultOptions = noCheckOptions ++ List(
"-Yno-deep-subtypes", "-Yno-double-bindings",
- "-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef",
- "-d", defaultOutputDir
- )
+ "-d", defaultOutputDir) ++ {
+ if (isRunByJenkins) List("-Ycheck:all")
+ else List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef")
+ }
+
+
val testPickling = List("-Xprint-types", "-Ytest-pickler", "-Ystop-after:pickler")
val twice = List("#runs", "2")