Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compiler/test/dotty/tools/dotc/CompilationTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class CompilationTests extends ParallelTesting {
compileFilesInDir("../tests/new", defaultOptions) +
compileFilesInDir("../tests/pos-scala2", scala2Mode) +
compileFilesInDir("../tests/pos", defaultOptions) +
compileFilesInDir("../tests/pos", defaultOptimised) +
compileFilesInDir("../tests/pos-deep-subtype", allowDeepSubtypes) +
compileFile(
// succeeds despite -Xfatal-warnings because of -nowarn
Expand Down Expand Up @@ -159,6 +160,8 @@ class CompilationTests extends ParallelTesting {

@Test def compileNeg: Unit = {
compileShallowFilesInDir("../tests/neg", defaultOptions) +
compileShallowFilesInDir("../tests/neg/no-optimise", defaultOptions) +
compileShallowFilesInDir("../tests/neg", defaultOptimised) +
compileFile("../tests/neg/customArgs/typers.scala", allowDoubleBindings) +
compileFile("../tests/neg/customArgs/overrideClass.scala", scala2Mode) +
compileFile("../tests/neg/customArgs/autoTuplingTest.scala", defaultOptions.and("-language:noAutoTupling")) +
Expand Down Expand Up @@ -186,6 +189,7 @@ class CompilationTests extends ParallelTesting {

@Test def runAll: Unit = {
compileFilesInDir("../tests/run", defaultOptions) +
compileFilesInDir("../tests/run", defaultOptimised) +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you run everything in tests/run with defaultOptimised, aren't the lines below redundant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will remove them. Thanks

compileFile("../tests/run/i3018.scala", defaultOptimised) +
compileFile("../tests/run/blame_eye_triple_eee-double.scala", defaultOptimised) +
compileFile("../tests/run/blame_eye_triple_eee-float.scala", defaultOptimised) +
Expand Down
File renamed without changes.