-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
rdmd_test: simplify flag for specifying default compiler #340
base: master
Are you sure you want to change the base?
Conversation
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 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 referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
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.
213d4fd
to
e7ba852
Compare
@@ -55,7 +55,7 @@ int main(string[] args) | |||
string testCompilerList; // e.g. "ldmd2,gdmd" (comma-separated list of compiler names) | |||
|
|||
auto helpInfo = getopt(args, | |||
"rdmd-default-compiler", "[REQUIRED] default D compiler used by rdmd executable", &defaultCompiler, | |||
"D|default-compiler", "[REQUIRED] default D compiler used by rdmd executable", &defaultCompiler, |
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.
Seems to the only capital option ... maybe consider choosing a lower-case letter ?
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.
I'm happy to take suggestions. Although it did seem rather appropriate that it be D
;-)
Sorry about earlier test failure: I forgot to tweak |
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... :-\ ) |
|
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 :-) |
Yes, we plan to do this, e.g. dlang/dlang-bot#109 or dlang/dlang-bot#190, but there's only so much one can do in one "day". |
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:The
posix.mak
andwin32.mak
makefiles have been updated accordingly.