@@ -68,7 +68,6 @@ class CompilationTests extends ParallelTesting {
68
68
compileFilesInDir(" ../tests/pos-special/strawman-collections" , defaultOptions) +
69
69
compileFile(" ../scala2-library/src/library/scala/collection/immutable/IndexedSeq.scala" , defaultOptions) +
70
70
compileFile(" ../scala2-library/src/library/scala/collection/parallel/mutable/ParSetLike.scala" , defaultOptions) +
71
- compileFile(" ../tests/pos/t2171.scala" , defaultOptimised) +
72
71
compileList(
73
72
" parSetSubset" ,
74
73
List (
@@ -91,7 +90,6 @@ class CompilationTests extends ParallelTesting {
91
90
compileFilesInDir(" ../tests/new" , defaultOptions) +
92
91
compileFilesInDir(" ../tests/pos-scala2" , scala2Mode) +
93
92
compileFilesInDir(" ../tests/pos" , defaultOptions) +
94
- compileFilesInDir(" ../tests/pos" , defaultOptimised) +
95
93
compileFilesInDir(" ../tests/pos-deep-subtype" , allowDeepSubtypes) +
96
94
compileFile(
97
95
// succeeds despite -Xfatal-warnings because of -nowarn
@@ -161,7 +159,6 @@ class CompilationTests extends ParallelTesting {
161
159
@ Test def compileNeg : Unit = {
162
160
compileShallowFilesInDir(" ../tests/neg" , defaultOptions) +
163
161
compileShallowFilesInDir(" ../tests/neg/no-optimise" , defaultOptions) +
164
- compileShallowFilesInDir(" ../tests/neg" , defaultOptimised) +
165
162
compileFile(" ../tests/neg/customArgs/typers.scala" , allowDoubleBindings) +
166
163
compileFile(" ../tests/neg/customArgs/overrideClass.scala" , scala2Mode) +
167
164
compileFile(" ../tests/neg/customArgs/autoTuplingTest.scala" , defaultOptions.and(" -language:noAutoTupling" )) +
@@ -189,13 +186,7 @@ class CompilationTests extends ParallelTesting {
189
186
190
187
@ Test def runAll : Unit = {
191
188
compileFilesInDir(" ../tests/run" , defaultOptions) +
192
- compileFilesInDir(" ../tests/run" , defaultOptimised) +
193
- compileFile(" ../tests/run/i3018.scala" , defaultOptimised) +
194
- compileFile(" ../tests/run/blame_eye_triple_eee-double.scala" , defaultOptimised) +
195
- compileFile(" ../tests/run/blame_eye_triple_eee-float.scala" , defaultOptimised) +
196
- compileFile(" ../tests/run/run-bug4840.scala" , defaultOptimised) +
197
- compileFile(" ../tests/run/optimizer-array-load.scala" , defaultOptimised) +
198
- compileFile(" ../tests/run/constant-optimization.scala" , defaultOptimised)
189
+ compileFilesInDir(" ../tests/run-no-optimise" , defaultOptions)
199
190
}.checkRuns()
200
191
201
192
// Pickling Tests ------------------------------------------------------------
@@ -302,6 +293,13 @@ class CompilationTests extends ParallelTesting {
302
293
tests.foreach(_.delete())
303
294
}
304
295
296
+ @ Test def testOptimised : Unit = {
297
+ def outputDirOptimised : OutDirectory = new OutDirectory (implicitly[OutDirectory ] + " optimised/" )
298
+ compileFilesInDir(" ../tests/pos" , defaultOptimised)(outputDirOptimised).checkCompile()
299
+ compileFilesInDir(" ../tests/run" , defaultOptimised)(outputDirOptimised).checkRuns()
300
+ compileShallowFilesInDir(" ../tests/neg" , defaultOptimised)(outputDirOptimised).checkExpectedErrors()
301
+ }
302
+
305
303
private val (compilerSources, backendSources, backendJvmSources) = {
306
304
val compilerDir = Paths .get(" ../compiler/src" )
307
305
val compilerSources0 = sources(Files .walk(compilerDir))
0 commit comments