Skip to content

Commit 3bdfc00

Browse files
Isolate bug
1 parent 98f01f5 commit 3bdfc00

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

.drone.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,34 @@ pipeline:
1414

1515
# TESTS:
1616
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
17-
test_legacy:
18-
group: test
19-
image: lampepfl/dotty:2018-01-17
20-
commands:
21-
- cp -R . /tmp/0/ && cd /tmp/0/
22-
- ./project/scripts/sbt legacyTests
17+
# test_legacy:
18+
# group: test
19+
# image: lampepfl/dotty:2018-01-17
20+
# commands:
21+
# - cp -R . /tmp/0/ && cd /tmp/0/
22+
# - ./project/scripts/sbt legacyTests
2323

2424
test:
2525
group: test
2626
image: lampepfl/dotty:2018-01-17
2727
commands:
2828
- cp -R . /tmp/1/ && cd /tmp/1/
29-
- ./project/scripts/sbt ";compile ;test"
29+
- ./project/scripts/sbt ";compile ;testOnly dotty.tools.dotc.CompilationTests dotty.tools.ShowClassTests"
3030
- ./project/scripts/cmdTests
3131

3232
test_bootstrapped:
3333
group: test
3434
image: lampepfl/dotty:2018-01-17
3535
commands:
3636
- cp -R . /tmp/2/ && cd /tmp/2/
37-
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
37+
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/testOnly dotty.tools.dotc.CompilationTests dotty.tools.ShowClassTests"
3838

3939
test_optimised:
4040
group: test
4141
image: lampepfl/dotty:2018-01-17
4242
commands:
4343
- cp -R . /tmp/3/ && cd /tmp/3/
44-
- ./project/scripts/sbt dotty-optimised/test
44+
- ./project/scripts/sbt dotty-optimised/testOnly dotty.tools.dotc.CompilationTests dotty.tools.ShowClassTests
4545

4646
test_sbt:
4747
group: test

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CompilationTests extends ParallelTesting {
3737
compileList("compileStdLib", StdLibSources.whitelisted, scala2Mode.and("-migration", "-Yno-inline", "-Ydetailed-stats"))
3838
}.checkCompile()
3939

40-
@Test def compilePos: Unit = {
40+
/*@Test*/ def compilePos: Unit = {
4141
implicit val testGroup: TestGroup = TestGroup("compilePos")
4242
compileList("compileStdLib", StdLibSources.whitelisted, scala2Mode.and("-migration", "-Yno-inline")) +
4343
compileDir("../compiler/src/dotty/tools/dotc/ast", defaultOptions) +
@@ -110,7 +110,7 @@ class CompilationTests extends ParallelTesting {
110110
)
111111
}.checkCompile()
112112

113-
@Test def posTwice: Unit = {
113+
/*@Test*/ def posTwice: Unit = {
114114
implicit val testGroup: TestGroup = TestGroup("posTwice")
115115
compileFile("../tests/pos/Labels.scala", defaultOptions) +
116116
compileFilesInDir("../tests/pos-java-interop", defaultOptions) +
@@ -170,7 +170,7 @@ class CompilationTests extends ParallelTesting {
170170

171171
// Negative tests ------------------------------------------------------------
172172

173-
@Test def compileNeg: Unit = {
173+
/*@Test*/ def compileNeg: Unit = {
174174
implicit val testGroup: TestGroup = TestGroup("compileNeg")
175175
compileFilesInDir("../tests/neg", defaultOptions) +
176176
compileFilesInDir("../tests/neg-tailcall", defaultOptions) +
@@ -199,7 +199,7 @@ class CompilationTests extends ParallelTesting {
199199

200200
// Run tests -----------------------------------------------------------------
201201

202-
@Test def runAll: Unit = {
202+
/*@Test*/ def runAll: Unit = {
203203
implicit val testGroup: TestGroup = TestGroup("runAll")
204204
compileFilesInDir("../tests/run", defaultOptions) +
205205
compileFilesInDir("../tests/run-no-optimise", defaultOptions) +
@@ -208,7 +208,7 @@ class CompilationTests extends ParallelTesting {
208208

209209
// Generic java signatures tests ---------------------------------------------
210210

211-
@Test def genericJavaSignatures: Unit = {
211+
/*@Test*/ def genericJavaSignatures: Unit = {
212212
implicit val testGroup: TestGroup = TestGroup("genericJavaSignatures")
213213
compileFilesInDir("../tests/generic-java-signatures", defaultOptions)
214214
}.checkRuns()
@@ -218,7 +218,7 @@ class CompilationTests extends ParallelTesting {
218218
// Pickling tests are very memory intensive and as such need to be run with a
219219
// lower level of concurrency as to not kill their running VMs
220220

221-
@Test def testPickling: Unit = {
221+
/*@Test*/ def testPickling: Unit = {
222222
implicit val testGroup: TestGroup = TestGroup("testPickling")
223223
compileDir("../compiler/src/dotty/tools", picklingOptions, recursive = false) +
224224
compileDir("../compiler/src/dotty/tools/dotc", picklingOptions, recursive = false) +
@@ -247,7 +247,7 @@ class CompilationTests extends ParallelTesting {
247247
* bootstrapped, and making sure that TASTY can link against a compiled
248248
* version of Dotty
249249
*/
250-
@Test def tastyBootstrap: Unit = {
250+
/*@Test*/ def tastyBootstrap: Unit = {
251251
implicit val testGroup: TestGroup = TestGroup("tastyBootstrap/tests")
252252
val dotty1Group = TestGroup("tastyBootstrap/dotty1")
253253
val dotty2Group = TestGroup("tastyBootstrap/dotty2")
@@ -314,7 +314,7 @@ class CompilationTests extends ParallelTesting {
314314
}
315315

316316
@Category(Array(classOf[SlowTests]))
317-
@Test def testOptimised: Unit = {
317+
/*@Test*/ def testOptimised: Unit = {
318318
implicit val testGroup: TestGroup = TestGroup("optimised/testOptimised")
319319
compileFilesInDir("../tests/pos", defaultOptimised).checkCompile()
320320
compileFilesInDir("../tests/run", defaultOptimised).checkRuns()
@@ -341,6 +341,11 @@ class CompilationTests extends ParallelTesting {
341341

342342
(compilerSources0, backendSources0, backendJvmSources0)
343343
}
344+
345+
@Test def i3187: Unit = {
346+
implicit val testGroup: TestGroup = TestGroup("i3187")
347+
compileFile("../tests/neg/i3187.scala", defaultOptions).checkExpectedErrors()
348+
}
344349
}
345350

346351
object CompilationTests {

0 commit comments

Comments
 (0)