Skip to content

Conversation

meator
Copy link
Contributor

@meator meator commented Mar 16, 2025

I have discussed this change in #5.

Utilities which create files determine their location by either having the user explicitly specify the filenames (using command-line arguments for example) or by at least specifying the output directory to which the files should be saved.

Current test generators always put hardcoded filenames into the current working directory. This is inflexible. This behavior is understandable, because test programs shouldn't be held to the same standard as user-facing CLI utilities, however, this issue happens to negatively affect Meson integration.

This isn't a bug fix, the old behavior is fully functional.

I have done extensive testing of this system on Windows. I can confirm that localisation of error messages and filesystem paths containing unicode characters work as expected.

I have also verified that this change fixes the issues I've had with Meson integration (briefly touched upon at #5).

Utilities which create files determine their location by either having
the user explicitly specify the filenames (using command-line arguments
for example) or by at least specifying the output directory to which
the files should be saved.

Current test generators always put hardcoded filenames into the current
working directory. This is inflexible. This behavior is understandable,
because test programs shouldn't be held to the same standard as
user-facing CLI utilities, however, this issue happens to negatively
affect Meson integration.

This isn't a bug fix, the old behavior is fully functional.
@meator meator changed the title Add opt output directory argument to generators Add optional output directory argument to generators Mar 16, 2025
@rm5248 rm5248 merged commit 900ad9e into rm5248:master Mar 16, 2025
1 check failed
@rm5248
Copy link
Owner

rm5248 commented Mar 16, 2025

looks good, thank you.

@meator meator deleted the add-dir-argument-to-testsuite-generators branch March 16, 2025 16:23
@meator meator mentioned this pull request Mar 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants