-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
make check output isn't clear if the test was OK #4245
Comments
There are many tests, and some of them are error scenarios. Therefore the test log can contain error messages. But it's not necessarily a "problem", it actually proves that the tested binary has detected the error condition as it's supposed to. The purpose of these test scripts is to be employed in automated test environments. It seems your demand is that, on top of the return code, you would like to see a final human readable statement, so that a human possibly unaware of posix conventions can more easily understand if the test suite was successful or not. |
If you take a look at the log, it doesn't seem to be all OK. For example line 1959:
Perhaps, that huge unreadable output resulted in some issues being unnoticed (if the issue above is actually an issue). |
If any test fails, anywhere in the list,
which then can be confirmed with :
If you haven't seen that, and can confirm I've looked at your provided The reported error
The test script is designed to be run this way (or similar) : Once again, the log only matters for investigation, once it's established (with the final error code) that there is a problem. |
zlib-ng also uses similar style tests (dir of tests where each compiles to standalone executable). I think zlib-ng uses something that comes with cmake and, as a result, on each platform output is consistent and clean:
|
Perhaps, that's not a common scenario, but I tried to run
make check
. I got tons of output, some of which looked like errors, and the biggest issue is that it's not even clear if the test failed or not.Looks like I have tons of errors running
make check
(I run it with msys2 on win11), that's themake check
output I get: make-check.txtIs it so broken and full of errors because of windows, or it's expected to be this way? It does look like very useless idea to even try to run make check or make test if the output is the same useless on other OSes.
The text was updated successfully, but these errors were encountered: