@@ -33,56 +33,56 @@ class BootstrappedOnlyCompilationTests extends ParallelTesting {
33
33
34
34
@ Test def posWithCompiler : Unit = {
35
35
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 )
48
48
}.checkCompile()
49
49
50
50
@ Test def posTwiceWithCompiler : Unit = {
51
51
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 ) +
54
54
compileList(
55
55
" testNonCyclic" ,
56
56
List (
57
57
" compiler/src/dotty/tools/dotc/CompilationUnit.scala" ,
58
58
" compiler/src/dotty/tools/dotc/core/Types.scala" ,
59
59
" compiler/src/dotty/tools/dotc/ast/Trees.scala"
60
60
),
61
- defaultOptions.and( " -Xprompt " )
61
+ withCompilerOptions
62
62
) +
63
63
compileList(
64
64
" testIssue34" ,
65
65
List (
66
66
" compiler/src/dotty/tools/dotc/config/Properties.scala" ,
67
67
" compiler/src/dotty/tools/dotc/config/PathResolver.scala"
68
68
),
69
- defaultOptions.and( " -Xprompt " )
69
+ withCompilerOptions
70
70
)
71
71
}.times(2 ).checkCompile()
72
72
73
73
// Negative tests ------------------------------------------------------------
74
74
75
75
@ Test def negAll : Unit = {
76
76
implicit val testGroup : TestGroup = TestGroup (" compileNegWithCompiler" )
77
- compileFilesInDir(" tests/neg-with-compiler" , defaultOptions )
77
+ compileFilesInDir(" tests/neg-with-compiler" , withCompilerOptions )
78
78
}.checkExpectedErrors()
79
79
80
80
// Run tests -----------------------------------------------------------------
81
81
82
82
@ Test def runWithCompiler : Unit = {
83
83
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" )
86
86
}.checkRuns()
87
87
88
88
// Pickling Tests ------------------------------------------------------------
@@ -92,24 +92,24 @@ class BootstrappedOnlyCompilationTests extends ParallelTesting {
92
92
93
93
@ Test def picklingWithCompiler : Unit = {
94
94
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 )
114
114
}.limitThreads(4 ).checkCompile()
115
115
}
0 commit comments