-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Check stdout/stderr of run-pass run portion #63751
Comments
I've assigned to @tmandry for now because I believe they might be interested in landing this more quickly than perhaps mentoring will be able to but let us know if you're interested! |
This would be great; we could use this to simplify the hacks in testing |
I would like to get it soon, but I probably won't be getting to this until next week at least :) |
Thanks for providing the mentoring instructions, by the way! |
I'm interested in working on this (or rather, I've done some work on this based on the mentoring instructions) if that's okay. Based on what I've done so far, I think I'll be ready to submit a PR within the next day or so. |
To test the functionality, I updated the test for the |
Not at all! That seems like a reasonable change to make in the same PR, though it would be good to split it out into a separate commit for easier reviewing. Thanks! |
Updates the dbg-macro-expected behavior test to remove the workaround and use the `check-run-result` flag/feature in compiletest. This serves to test the feature on a real use-case (as mentioned in rust-lang#63751)
…k-Simulacrum Allow checking of run-pass execution output in compiletest Closes rust-lang#63751 Adds a `check-run-results` flag to compiletest headers, which if enabled checks the output of the execution of a run-pass test's binary against expected output.
…k-Simulacrum Allow checking of run-pass execution output in compiletest Closes rust-lang#63751 Adds a `check-run-results` flag to compiletest headers, which if enabled checks the output of the execution of a run-pass test's binary against expected output.
Allow checking of run-pass execution output in compiletest Closes #63751 Adds a `check-run-results` flag to compiletest headers, which if enabled checks the output of the execution of a run-pass test's binary against expected output.
We currently check the compiler's output, but it's sometimes useful to check that the run-pass test itself is outputting the same as before. In particular, @tmandry expressed a desire to test libtest in this fashion.
Taking a look at the code, we probably want to add another header flag (
check-run-results
) around here in this file; and then when running the generated executable here we should replicate this expected loading code down. If possible, it'd be great to extract some sort of function that would load results and compare them, but I'm not sure how feasible that is in a clean manner.The text was updated successfully, but these errors were encountered: