tools icon indicating copy to clipboard operation
tools copied to clipboard

rdmd_test: simplify flag for specifying default compiler

Open WebDrake opened this issue 7 years ago • 6 comments

Since it seems there are some use-cases where it is unavoidable to run rdmd_test directly, it's nice if we can reduce the amount of typing required to do so.

Besides the rdmd executable itself, the only other obligatory argument to the test suite is the default compiler expected to be used by rdmd. This patch shortens the long option to --default-compiler and allows an equivalent single-character -D option, so that usage can now be of the form:

rdmd_test -D <default-compiler> <path-to-rdmd-executable>

The posix.mak and win32.mak makefiles have been updated accordingly.

WebDrake avatar Mar 22 '18 21:03 WebDrake

Thanks for your pull request and interest in making D better, @WebDrake! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the annotated coverage diff directly on GitHub with CodeCov's browser extension
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

dlang-bot avatar Mar 22 '18 21:03 dlang-bot

Sorry about earlier test failure: I forgot to tweak win32.mak ;-) Fixed now.

WebDrake avatar Mar 22 '18 21:03 WebDrake

This time the test failure looks unrelated to the code. Is there some way to auto-trigger a fresh test from the PR? (I forget... :-\ )

WebDrake avatar Mar 22 '18 21:03 WebDrake

git commit --amend or being a member of the dlang GH organization. With the latter your can directly restart the builds at Travis. I don't know why they don't allow it for the other (maybe to avoid over-using the quota of an organization?) - it's a bit silly because you could do this manually too. Anyhow, I restarted the failing build for you.

wilzbach avatar Mar 22 '18 22:03 wilzbach

Some CI setups have hooks that allow PR authors (or maintainers) to trigger fresh builds via a comment "Test this please" or similar. Could be convenient?

Anyway, thanks :-)

WebDrake avatar Mar 22 '18 22:03 WebDrake

Yes, we plan to do this, e.g. https://github.com/dlang-bots/dlang-bot/pull/109 or https://github.com/dlang-bots/dlang-bot/issues/190, but there's only so much one can do in one "day". (especially if some part of it is taken up by low-impact discussions ;-)).

wilzbach avatar Mar 22 '18 22:03 wilzbach