@@ -37,20 +37,9 @@ class CompilationTests extends ParallelTesting {
37
37
compileList(" compileStdLib" , StdLibSources .whitelisted, scala2Mode.and(" -migration" , " -Yno-inline" , " -Ydetailed-stats" ))
38
38
}.checkCompile()
39
39
40
- @ Test def compilePos : Unit = {
40
+ @ Test def pos : Unit = {
41
41
implicit val testGroup : TestGroup = TestGroup (" compilePos" )
42
42
compileList(" compileStdLib" , StdLibSources .whitelisted, scala2Mode.and(" -migration" , " -Yno-inline" )) +
43
- compileDir(" compiler/src/dotty/tools/dotc/ast" , defaultOptions) +
44
- compileDir(" compiler/src/dotty/tools/dotc/config" , defaultOptions) +
45
- compileDir(" compiler/src/dotty/tools/dotc/core" , defaultOptions) +
46
- compileDir(" compiler/src/dotty/tools/dotc/transform" , defaultOptions) +
47
- compileDir(" compiler/src/dotty/tools/dotc/parsing" , defaultOptions) +
48
- compileDir(" compiler/src/dotty/tools/dotc/printing" , defaultOptions) +
49
- compileDir(" compiler/src/dotty/tools/dotc/reporting" , defaultOptions) +
50
- compileDir(" compiler/src/dotty/tools/dotc/typer" , defaultOptions) +
51
- compileDir(" compiler/src/dotty/tools/dotc/util" , defaultOptions) +
52
- compileDir(" compiler/src/dotty/tools/io" , defaultOptions) +
53
- compileDir(" compiler/src/dotty/tools/dotc/core" , TestFlags (classPath, noCheckOptions)) +
54
43
compileFile(" tests/pos/nullarify.scala" , defaultOptions.and(" -Ycheck:nullarify" )) +
55
44
compileFile(" tests/pos-scala2/rewrites.scala" , scala2Mode.and(" -rewrite" )).copyToTarget() +
56
45
compileFile(" tests/pos-special/utf8encoded.scala" , explicitUTF8) +
@@ -111,7 +100,6 @@ class CompilationTests extends ParallelTesting {
111
100
112
101
@ Test def posTwice : Unit = {
113
102
implicit val testGroup : TestGroup = TestGroup (" posTwice" )
114
- compileFile(" tests/pos/Labels.scala" , defaultOptions) +
115
103
compileFilesInDir(" tests/pos-java-interop" , defaultOptions) +
116
104
compileFilesInDir(" tests/pos-java-interop-separate" , defaultOptions) +
117
105
compileFile(" tests/pos/t2168.scala" , defaultOptions) +
@@ -122,7 +110,6 @@ class CompilationTests extends ParallelTesting {
122
110
compileFile(" tests/pos/functions1.scala" , defaultOptions) +
123
111
compileFile(" tests/pos/implicits1.scala" , defaultOptions) +
124
112
compileFile(" tests/pos/inferred.scala" , defaultOptions) +
125
- compileFile(" tests/pos/Patterns.scala" , defaultOptions) +
126
113
compileFile(" tests/pos/selftypes.scala" , defaultOptions) +
127
114
compileFile(" tests/pos/varargs.scala" , defaultOptions) +
128
115
compileFile(" tests/pos/vararg-pattern.scala" , defaultOptions) +
@@ -147,29 +134,12 @@ class CompilationTests extends ParallelTesting {
147
134
compileFile(" tests/pos/i0239.scala" , defaultOptions) +
148
135
compileFile(" tests/pos/anonClassSubtyping.scala" , defaultOptions) +
149
136
compileFile(" tests/pos/extmethods.scala" , defaultOptions) +
150
- compileFile(" tests/pos/companions.scala" , defaultOptions) +
151
- compileList(
152
- " testNonCyclic" ,
153
- List (
154
- " compiler/src/dotty/tools/dotc/CompilationUnit.scala" ,
155
- " compiler/src/dotty/tools/dotc/core/Types.scala" ,
156
- " compiler/src/dotty/tools/dotc/ast/Trees.scala"
157
- ),
158
- defaultOptions.and(" -Xprompt" )
159
- ) +
160
- compileList(
161
- " testIssue34" ,
162
- List (
163
- " compiler/src/dotty/tools/dotc/config/Properties.scala" ,
164
- " compiler/src/dotty/tools/dotc/config/PathResolver.scala"
165
- ),
166
- defaultOptions.and(" -Xprompt" )
167
- )
137
+ compileFile(" tests/pos/companions.scala" , defaultOptions)
168
138
}.times(2 ).checkCompile()
169
139
170
140
// Negative tests ------------------------------------------------------------
171
141
172
- @ Test def compileNeg : Unit = {
142
+ @ Test def negAll : Unit = {
173
143
implicit val testGroup : TestGroup = TestGroup (" compileNeg" )
174
144
compileFilesInDir(" tests/neg" , defaultOptions) +
175
145
compileFilesInDir(" tests/neg-tailcall" , defaultOptions) +
@@ -195,9 +165,7 @@ class CompilationTests extends ParallelTesting {
195
165
196
166
@ Test def runAll : Unit = {
197
167
implicit val testGroup : TestGroup = TestGroup (" runAll" )
198
- compileFilesInDir(" tests/run" , defaultOptions) +
199
- compileFilesInDir(" tests/run-with-compiler" , defaultRunWithCompilerOptions) +
200
- compileFile(" tests/run-with-compiler-custom-args/staged-streams_1.scala" , defaultRunWithCompilerOptions without " -Yno-deep-subtypes" )
168
+ compileFilesInDir(" tests/run" , defaultOptions)
201
169
}.checkRuns()
202
170
203
171
// Generic java signatures tests ---------------------------------------------
@@ -208,34 +176,12 @@ class CompilationTests extends ParallelTesting {
208
176
}.checkRuns()
209
177
210
178
// Pickling Tests ------------------------------------------------------------
211
- //
212
- // Pickling tests are very memory intensive and as such need to be run with a
213
- // lower level of concurrency as to not kill their running VMs
214
179
215
- @ Test def testPickling : Unit = {
180
+ @ Test def pickling : Unit = {
216
181
implicit val testGroup : TestGroup = TestGroup (" testPickling" )
217
- compileDir(" compiler/src/dotty/tools" , picklingOptions, recursive = false ) +
218
- compileDir(" compiler/src/dotty/tools/dotc" , picklingOptions, recursive = false ) +
219
182
compileFilesInDir(" tests/new" , picklingOptions) +
220
- compileFilesInDir(" tests/pickling" , picklingOptions) +
221
- compileDir(" library/src/dotty/runtime" , picklingOptions) +
222
- compileDir(" compiler/src/dotty/tools/backend/jvm" , picklingOptions) +
223
- compileDir(" compiler/src/dotty/tools/dotc/ast" , picklingOptions) +
224
- compileDir(" compiler/src/dotty/tools/dotc/core" , picklingOptions, recursive = false ) +
225
- compileDir(" compiler/src/dotty/tools/dotc/config" , picklingOptions) +
226
- compileDir(" compiler/src/dotty/tools/dotc/parsing" , picklingOptions) +
227
- compileDir(" compiler/src/dotty/tools/dotc/printing" , picklingOptions) +
228
- compileDir(" compiler/src/dotty/tools/repl" , picklingOptions) +
229
- compileDir(" compiler/src/dotty/tools/dotc/rewrite" , picklingOptions) +
230
- compileDir(" compiler/src/dotty/tools/dotc/transform" , picklingOptions) +
231
- compileDir(" compiler/src/dotty/tools/dotc/typer" , picklingOptions) +
232
- compileDir(" compiler/src/dotty/tools/dotc/util" , picklingOptions) +
233
- compileDir(" compiler/src/dotty/tools/io" , picklingOptions) +
234
- compileFile(" tests/pos/pickleinf.scala" , picklingOptions) +
235
- compileDir(" compiler/src/dotty/tools/dotc/core/classfile" , picklingOptions) +
236
- compileDir(" compiler/src/dotty/tools/dotc/core/tasty" , picklingOptions) +
237
- compileDir(" compiler/src/dotty/tools/dotc/core/unpickleScala2" , picklingOptions)
238
- }.limitThreads(4 ).checkCompile()
183
+ compileFilesInDir(" tests/pickling" , picklingOptions)
184
+ }.checkCompile()
239
185
240
186
/** The purpose of this test is two-fold, being able to compile dotty
241
187
* bootstrapped, and making sure that TASTY can link against a compiled
0 commit comments