@@ -33,56 +33,56 @@ class BootstrappedOnlyCompilationTests extends ParallelTesting {
3333
3434 @ Test def posWithCompiler : Unit = {
3535 implicit val testGroup : TestGroup = TestGroup (" compilePosWithCompiler" )
36- compileFilesInDir(" tests/pos-with-compiler" , defaultOptions ) +
37- compileDir(" compiler/src/dotty/tools/dotc/ast" , defaultOptions ) +
38- compileDir(" compiler/src/dotty/tools/dotc/config" , defaultOptions ) +
39- compileDir(" compiler/src/dotty/tools/dotc/core" , defaultOptions ) +
40- compileDir(" compiler/src/dotty/tools/dotc/transform" , defaultOptions ) +
41- compileDir(" compiler/src/dotty/tools/dotc/parsing" , defaultOptions ) +
42- compileDir(" compiler/src/dotty/tools/dotc/printing" , defaultOptions ) +
43- compileDir(" compiler/src/dotty/tools/dotc/reporting" , defaultOptions ) +
44- compileDir(" compiler/src/dotty/tools/dotc/typer" , defaultOptions ) +
45- compileDir(" compiler/src/dotty/tools/dotc/util" , defaultOptions ) +
46- compileDir(" compiler/src/dotty/tools/io" , defaultOptions ) +
47- compileDir(" compiler/src/dotty/tools/dotc/core" , TestFlags (classPath, noCheckOptions) )
36+ compileFilesInDir(" tests/pos-with-compiler" , withCompilerOptions ) +
37+ compileDir(" compiler/src/dotty/tools/dotc/ast" , withCompilerOptions ) +
38+ compileDir(" compiler/src/dotty/tools/dotc/config" , withCompilerOptions ) +
39+ compileDir(" compiler/src/dotty/tools/dotc/core" , withCompilerOptions ) +
40+ compileDir(" compiler/src/dotty/tools/dotc/transform" , withCompilerOptions ) +
41+ compileDir(" compiler/src/dotty/tools/dotc/parsing" , withCompilerOptions ) +
42+ compileDir(" compiler/src/dotty/tools/dotc/printing" , withCompilerOptions ) +
43+ compileDir(" compiler/src/dotty/tools/dotc/reporting" , withCompilerOptions ) +
44+ compileDir(" compiler/src/dotty/tools/dotc/typer" , withCompilerOptions ) +
45+ compileDir(" compiler/src/dotty/tools/dotc/util" , withCompilerOptions ) +
46+ compileDir(" compiler/src/dotty/tools/io" , withCompilerOptions ) +
47+ compileDir(" compiler/src/dotty/tools/dotc/core" , withCompilerOptions )
4848 }.checkCompile()
4949
5050 @ Test def posTwiceWithCompiler : Unit = {
5151 implicit val testGroup : TestGroup = TestGroup (" posTwiceWithCompiler" )
52- compileFile(" tests/pos-with-compiler/Labels.scala" , defaultOptions ) +
53- compileFile(" tests/pos-with-compiler/Patterns.scala" , defaultOptions ) +
52+ compileFile(" tests/pos-with-compiler/Labels.scala" , withCompilerOptions ) +
53+ compileFile(" tests/pos-with-compiler/Patterns.scala" , withCompilerOptions ) +
5454 compileList(
5555 " testNonCyclic" ,
5656 List (
5757 " compiler/src/dotty/tools/dotc/CompilationUnit.scala" ,
5858 " compiler/src/dotty/tools/dotc/core/Types.scala" ,
5959 " compiler/src/dotty/tools/dotc/ast/Trees.scala"
6060 ),
61- defaultOptions.and( " -Xprompt " )
61+ withCompilerOptions
6262 ) +
6363 compileList(
6464 " testIssue34" ,
6565 List (
6666 " compiler/src/dotty/tools/dotc/config/Properties.scala" ,
6767 " compiler/src/dotty/tools/dotc/config/PathResolver.scala"
6868 ),
69- defaultOptions.and( " -Xprompt " )
69+ withCompilerOptions
7070 )
7171 }.times(2 ).checkCompile()
7272
7373 // Negative tests ------------------------------------------------------------
7474
7575 @ Test def negAll : Unit = {
7676 implicit val testGroup : TestGroup = TestGroup (" compileNegWithCompiler" )
77- compileFilesInDir(" tests/neg-with-compiler" , defaultOptions )
77+ compileFilesInDir(" tests/neg-with-compiler" , withCompilerOptions )
7878 }.checkExpectedErrors()
7979
8080 // Run tests -----------------------------------------------------------------
8181
8282 @ Test def runWithCompiler : Unit = {
8383 implicit val testGroup : TestGroup = TestGroup (" runWithCompiler" )
84- compileFilesInDir(" tests/run-with-compiler" , defaultRunWithCompilerOptions ) +
85- compileFile(" tests/run-with-compiler-custom-args/staged-streams_1.scala" , defaultRunWithCompilerOptions without " -Yno-deep-subtypes" )
84+ compileFilesInDir(" tests/run-with-compiler" , withCompilerOptions ) +
85+ compileFile(" tests/run-with-compiler-custom-args/staged-streams_1.scala" , withCompilerOptions without " -Yno-deep-subtypes" )
8686 }.checkRuns()
8787
8888 // Pickling Tests ------------------------------------------------------------
@@ -92,24 +92,24 @@ class BootstrappedOnlyCompilationTests extends ParallelTesting {
9292
9393 @ Test def picklingWithCompiler : Unit = {
9494 implicit val testGroup : TestGroup = TestGroup (" testPicklingWithCompiler" )
95- compileDir(" compiler/src/dotty/tools" , picklingOptions , recursive = false ) +
96- compileDir(" compiler/src/dotty/tools/dotc" , picklingOptions , recursive = false ) +
97- compileDir(" library/src/dotty/runtime" , picklingOptions ) +
98- compileDir(" compiler/src/dotty/tools/backend/jvm" , picklingOptions ) +
99- compileDir(" compiler/src/dotty/tools/dotc/ast" , picklingOptions ) +
100- compileDir(" compiler/src/dotty/tools/dotc/core" , picklingOptions , recursive = false ) +
101- compileDir(" compiler/src/dotty/tools/dotc/config" , picklingOptions ) +
102- compileDir(" compiler/src/dotty/tools/dotc/parsing" , picklingOptions ) +
103- compileDir(" compiler/src/dotty/tools/dotc/printing" , picklingOptions ) +
104- compileDir(" compiler/src/dotty/tools/repl" , picklingOptions ) +
105- compileDir(" compiler/src/dotty/tools/dotc/rewrite" , picklingOptions ) +
106- compileDir(" compiler/src/dotty/tools/dotc/transform" , picklingOptions ) +
107- compileDir(" compiler/src/dotty/tools/dotc/typer" , picklingOptions ) +
108- compileDir(" compiler/src/dotty/tools/dotc/util" , picklingOptions ) +
109- compileDir(" compiler/src/dotty/tools/io" , picklingOptions ) +
110- compileFile(" tests/pos/pickleinf.scala" , picklingOptions ) +
111- compileDir(" compiler/src/dotty/tools/dotc/core/classfile" , picklingOptions ) +
112- compileDir(" compiler/src/dotty/tools/dotc/core/tasty" , picklingOptions ) +
113- compileDir(" compiler/src/dotty/tools/dotc/core/unpickleScala2" , picklingOptions )
95+ compileDir(" compiler/src/dotty/tools" , picklingWithCompilerOptions , recursive = false ) +
96+ compileDir(" compiler/src/dotty/tools/dotc" , picklingWithCompilerOptions , recursive = false ) +
97+ compileDir(" library/src/dotty/runtime" , picklingWithCompilerOptions ) +
98+ compileDir(" compiler/src/dotty/tools/backend/jvm" , picklingWithCompilerOptions ) +
99+ compileDir(" compiler/src/dotty/tools/dotc/ast" , picklingWithCompilerOptions ) +
100+ compileDir(" compiler/src/dotty/tools/dotc/core" , picklingWithCompilerOptions , recursive = false ) +
101+ compileDir(" compiler/src/dotty/tools/dotc/config" , picklingWithCompilerOptions ) +
102+ compileDir(" compiler/src/dotty/tools/dotc/parsing" , picklingWithCompilerOptions ) +
103+ compileDir(" compiler/src/dotty/tools/dotc/printing" , picklingWithCompilerOptions ) +
104+ compileDir(" compiler/src/dotty/tools/repl" , picklingWithCompilerOptions ) +
105+ compileDir(" compiler/src/dotty/tools/dotc/rewrite" , picklingWithCompilerOptions ) +
106+ compileDir(" compiler/src/dotty/tools/dotc/transform" , picklingWithCompilerOptions ) +
107+ compileDir(" compiler/src/dotty/tools/dotc/typer" , picklingWithCompilerOptions ) +
108+ compileDir(" compiler/src/dotty/tools/dotc/util" , picklingWithCompilerOptions ) +
109+ compileDir(" compiler/src/dotty/tools/io" , picklingWithCompilerOptions ) +
110+ compileFile(" tests/pos/pickleinf.scala" , picklingWithCompilerOptions ) +
111+ compileDir(" compiler/src/dotty/tools/dotc/core/classfile" , picklingWithCompilerOptions ) +
112+ compileDir(" compiler/src/dotty/tools/dotc/core/tasty" , picklingWithCompilerOptions ) +
113+ compileDir(" compiler/src/dotty/tools/dotc/core/unpickleScala2" , picklingWithCompilerOptions )
114114 }.limitThreads(4 ).checkCompile()
115115}
0 commit comments