-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Many tests cases erroneously reported as FAILED #67
Comments
Thanks for reporting. As these tests are all the write tests, does it fail in the writing check or in the subsequent reading check? |
They fail in last step; the Matlab portion of the read test. The 'echo >>$"at_stdout"; ' seems unnecessary since there is already a "\n" in the final fprintf that reports the results in each of the Matlab test scripts. So the test driver ends up comparing "PASSED\n\n" to "PASSED\n" and reports a failure. My simple sed hack was really the wrong approach. I added a '-n' to the echo. It would have made more sense to just remove the echo all together. I didn't see anything in the call to AC_CHECK (e.g. test/mat5_compressed_write.at:299) that would result in the extra echo, but I've never really used that package before.
|
Do you also see the error when you use the Ubuntu generatd testsuite from the latest matio-1.5.10.tar.gz? |
I am aware of the MATLAB part of the write tests success from #31 (comment) when @papadop reorganized the test suite. |
I just spot checked a few tests using |
The commit in the above comment works around the problem by adding a newline to the expected output (i.e. [PASSED]) in the Matlab read portion of each of the write tests. There is a subsequent commit that removes a stray newline that was introduced in that commit. It seems like there has to be a better way to do this though. |
Thanks. I'll consider it later. |
Thanks. Fix applied.
You can do have git commit --ammend and the git push --force to your branch, |
@jfilo I'd like to mention you in the README.md and README files acknowledgements section for you valuable contribution. Is is alright for you? Thanky you again! |
no problem
…On 10/15/2017 3:16 PM, tbeu wrote:
@jfilo <https://github.com/jfilo> I'd like to mention you in the
README.md and README files acknowledgements section for you valuable
contribution. Is is alright for you? Thanky you again!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AXX5sEwWU1B10EX7O_pSDcmzjs8G6KEEks5ssmgLgaJpZM4ODI9E>.
|
The following tests are reported as failed even though they really pass:
It looks like the generated 'testsuite' script is adding an extra newline to the Matlab output,
causing the script to think the test failed.
Editing the generated testsuite with the following sed script fixes the problem and all the above tests pass.
sed -i '/^echo >>"\$at_stdout"; \$as_echo "PASSED"/s/^echo/echo -n/' testsuite
Maybe there is an issue with my version of autoconf (version 2.69 on a RHEL 7 system)?
The text was updated successfully, but these errors were encountered: