-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Environmentally friendly tests #1739
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
Environmentally friendly tests #1739
Conversation
sbt adds the correct jars to classpath and the tests depend on `packageAll` which creates these. When using something else however, these together with `sbt-interfaces` do not get propagated from the build. To remedy this and make the testing a bit more flexible, we now take these from `sys.props` instead, see `tests/dotty/Jars.scala`. If the props aren't defined we fall back to the ones default to sbt.
-verbose output was suppressed like all other non-error output in the tests. Now we don't filter output if -verbose is set.
val f = new JFile(getClass.getProtectionDomain.getCodeSource.getLocation.getPath) | ||
println(f) | ||
println(System.getProperty("java.class.path")) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: get rid of this addition
|separated list of jars. | ||
| | ||
|When compiling with eclipse, you need the sbt-interfaces jar, but | ||
|it in extras.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*put
Fengyun's original solution was the right one. We cannot NOT enter a package class into its parent scope, because reloading the denotation with .member will fail. So we need to enter it and compensate by adding a clause to `qualifies` in `typedIdent`. Weirdly, this was noted only when running tasty_bootstrap from a custom classpath in the new build setup. So it was pretty tricky to diagnose.
781fb87
to
6d4a98c
Compare
@smarter - would you mind reviewing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise lgtm
| - DOTTY_INTERFACES | ||
| - DOTTY_EXTRAS | ||
| | ||
|Where these all contain locations, except extras which is a comma |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
colon separated now
6d4a98c
to
2f1a794
Compare
No description provided.