Skip to content

Revert "Revert "Add regression tests on optimise"" #3164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 26, 2017

Conversation

nicolasstucki
Copy link
Contributor

This reverts commit 1943f4e.

@@ -298,6 +294,13 @@ class CompilationTests extends ParallelTesting {
tests.foreach(_.delete())
}

@Test def testOptimised: Unit = {
val outputDir = defaultOutputDir + "optimised/"
Copy link
Contributor

Choose a reason for hiding this comment

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

outputDir is never used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

supposed to be used in the tree lines bellow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@nicolasstucki nicolasstucki force-pushed the enable-tests-on-optimise-3 branch from b8c4b11 to 2caa7ba Compare September 25, 2017 15:09
val outputDir = defaultOutputDir + "optimised/"
compileFilesInDir("../tests/pos", defaultOptimised, outputDir).checkCompile()
compileFilesInDir("../tests/run", defaultOptimised, outputDir).checkRuns()
compileShallowFilesInDir("../tests/neg", defaultOptimised, outputDir).checkExpectedErrors()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move each test in its corresponding test group (i.e. compilePos, compileNeg, runAll) to run them in parallel or should we keep them together for clarity?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would prefer to keep the separated for now because I going to start modifying stuff in the local optimizations. It will be clearer to see where the failures occurred if they happen. There are enough tests in each one to take advantage of parallelism, we can improve it later.

Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

Small nitpicks. Otherwise LGTM

@nicolasstucki nicolasstucki merged commit 3e95734 into scala:master Sep 26, 2017
@allanrenucci allanrenucci deleted the enable-tests-on-optimise-3 branch December 14, 2017 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants