Skip to content

Infrastructure for per-phase tests, with inline source as a string. #31

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 1 commit into from
Mar 2, 2014

Conversation

DarkDimius
Copy link
Contributor

And a sample test.

@DarkDimius
Copy link
Contributor Author

@odersky @sjrd please review.

@sjrd
Copy link
Member

sjrd commented Mar 1, 2014

LGTM.

It is a bit unfortunate that we have to write the source to a file. We should have a follow up enabling the compiler to compile a compilation unit from a string directly.

DarkDimius added a commit that referenced this pull request Mar 2, 2014
Infrastructure for per-phase tests, with inline source as a string.
@DarkDimius DarkDimius merged commit 5143f66 into scala:master Mar 2, 2014
DarkDimius added a commit to DarkDimius/dotty that referenced this pull request Mar 2, 2014
Infrastructure for per-phase tests, with inline source as a string.
DarkDimius added a commit to DarkDimius/dotty that referenced this pull request Mar 2, 2014
Infrastructure for per-phase tests, with inline source as a string.
@adriaanm
Copy link
Contributor

adriaanm commented Mar 3, 2014

VirtualFile allows this, I think @xeno-by has done this before. As is, this is likely to break on Jenkins/Travis.

@DarkDimius
Copy link
Contributor Author

AFAIK both jenkins and travis allow to use OS specific ways to create temporary files, as otherwise most tools will just stop working.
I'll have a look on making it use virtual files.

@adriaanm
Copy link
Contributor

adriaanm commented Mar 3, 2014

You're probably right, but interacting with the filesystem has the weirdest gotchas. In the long run, it's worth avoiding IMO.

noti0na1 pushed a commit to noti0na1/dotty that referenced this pull request Oct 22, 2019
szymon-rd pushed a commit that referenced this pull request Dec 9, 2022
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.

3 participants