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
test: Rename TEST_OUTPUT to COMPILE_OUTPUT #1579
test: Rename TEST_OUTPUT to COMPILE_OUTPUT #1579
Conversation
The real meaning for TEST_OUTPUT is to provide the correct output from the compiler, not the whole test. This is specially confusing for runnable tests where someone could think this test parameter is used to check against the program output. For this reason the test parameter is renamed to COMPILE_OUTPUT (which is the same internal name d_do_test.d use). Also the documentation in test/Makefile is updated to describe the previously missing test parameter.
A whole lot of changes for little benefit. Also notice there's over 100 pull requests opened - all the test-cases which depend on |
@leandro-lucarella-sociomantic , As @AndrejMitrovic already says, changing the poor name Could you stop just only the renaming? |
Or, support "TEST_OUTPUT" and "COMPILE_OUTPUT" at the same time. If it is possible, we will not break opened pull requests. |
On Fri, Feb 01, 2013 at 11:01:41PM -0800, Hara Kenji wrote:
I understand, but this triggers another problem I see with the current It would be nice to have at least a warning to be printed (although I If we did this, any outdated test will just fail if they have the old I'll take a look to see how doable is this...
Yeah, sure, meanwhile I will just post a pull request with the |
On Fri, Feb 01, 2013 at 11:15:19PM -0800, Hara Kenji wrote:
What do you think about rejecting COMPILE_OUTPUT (or any other unknown |
See #1613 |
On Mon, Feb 04, 2013 at 05:26:07PM +0100, Leandro Lucarella wrote:
This seems to be quite impossible with the current implmementation of Here is a pull request (#1615) as a proof of concecpt, if you think this |
The real meaning for TEST_OUTPUT is to provide the correct output from the
compiler, not the whole test. This is specially confusing for runnable
tests where someone could think this test parameter is used to check
against the program output. For this reason the test parameter is renamed
to COMPILE_OUTPUT (which is the same internal name d_do_test.d use).
Also the documentation in test/Makefile is updated to describe the
previously missing test parameter.