@@ -37,20 +37,9 @@ class CompilationTests extends ParallelTesting {
3737 compileList(" compileStdLib" , TestSources .stdLibWhitelisted, scala2Mode.and(" -migration" , " -Yno-inline" , " -Ydetailed-stats" ))
3838 }.checkCompile()
3939
40- @ Test def compilePos : Unit = {
40+ @ Test def pos : Unit = {
4141 implicit val testGroup : TestGroup = TestGroup (" compilePos" )
4242 compileList(" compileStdLib" , TestSources .stdLibWhitelisted, 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)) +
5443 compileFile(" tests/pos/nullarify.scala" , defaultOptions.and(" -Ycheck:nullarify" )) +
5544 compileFile(" tests/pos-scala2/rewrites.scala" , scala2Mode.and(" -rewrite" )).copyToTarget() +
5645 compileFile(" tests/pos-special/utf8encoded.scala" , explicitUTF8) +
@@ -111,7 +100,6 @@ class CompilationTests extends ParallelTesting {
111100
112101 @ Test def posTwice : Unit = {
113102 implicit val testGroup : TestGroup = TestGroup (" posTwice" )
114- compileFile(" tests/pos/Labels.scala" , defaultOptions) +
115103 compileFilesInDir(" tests/pos-java-interop" , defaultOptions) +
116104 compileFilesInDir(" tests/pos-java-interop-separate" , defaultOptions) +
117105 compileFile(" tests/pos/t2168.scala" , defaultOptions) +
@@ -122,7 +110,6 @@ class CompilationTests extends ParallelTesting {
122110 compileFile(" tests/pos/functions1.scala" , defaultOptions) +
123111 compileFile(" tests/pos/implicits1.scala" , defaultOptions) +
124112 compileFile(" tests/pos/inferred.scala" , defaultOptions) +
125- compileFile(" tests/pos/Patterns.scala" , defaultOptions) +
126113 compileFile(" tests/pos/selftypes.scala" , defaultOptions) +
127114 compileFile(" tests/pos/varargs.scala" , defaultOptions) +
128115 compileFile(" tests/pos/vararg-pattern.scala" , defaultOptions) +
@@ -147,29 +134,12 @@ class CompilationTests extends ParallelTesting {
147134 compileFile(" tests/pos/i0239.scala" , defaultOptions) +
148135 compileFile(" tests/pos/anonClassSubtyping.scala" , defaultOptions) +
149136 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)
168138 }.times(2 ).checkCompile()
169139
170140 // Negative tests ------------------------------------------------------------
171141
172- @ Test def compileNeg : Unit = {
142+ @ Test def negAll : Unit = {
173143 implicit val testGroup : TestGroup = TestGroup (" compileNeg" )
174144 compileFilesInDir(" tests/neg" , defaultOptions) +
175145 compileFilesInDir(" tests/neg-tailcall" , defaultOptions) +
@@ -195,9 +165,7 @@ class CompilationTests extends ParallelTesting {
195165
196166 @ Test def runAll : Unit = {
197167 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)
201169 }.checkRuns()
202170
203171 // Generic java signatures tests ---------------------------------------------
@@ -208,34 +176,12 @@ class CompilationTests extends ParallelTesting {
208176 }.checkRuns()
209177
210178 // 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
214179
215- @ Test def testPickling : Unit = {
180+ @ Test def pickling : Unit = {
216181 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 ) +
219182 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()
239185
240186 /** The purpose of this test is two-fold, being able to compile dotty
241187 * bootstrapped, and making sure that TASTY can link against a compiled
0 commit comments