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
Added test suite, make check and openblas support #54
Conversation
Also added 'make check' command in Makefile and documented in INSTALL.md
This looks great @pjotrp. I'd like to make sure the tests work on my end before merging the pull request. Is there anything else I need to do besides running |
You need to download shunit2 using the link in run_tests.sh into the source tree. Then it should just pick it up. |
@pjotrp Sounds good, I will take a look at your tests on Thursday, after my workshop. |
@pjotrp Should all the tests pass? This is the output I got from running
I don't see a log file. Is there a way to record the output of the tests? How can I find out which of the tests failed? |
I have committed some instructions. run_tests.sh and make check do:
I.e. stdout get put in test.log, errors get shown on stderr. My sample errors are:
so the test name is there and the assertion. Send output to me, so we can fix it. |
@pjotrp In the log, don't you want to save both standard output and standard error? i.e., do something like Note that I am seeing |
Sure, make it work for you. As long as the tests run and can be fixed ;) Easier than trying to go back and forth here. I suspect the failing test is the same as #55 |
@pjotrp Sure, I can do that. Before I do that, can you please add steps in each of the tests to clean up the output files? This should resolve the problem you observed earlier, and should make the tests less error-prone. In other words, gemma should be outputting to an empty directory each time. |
This is a simple testsuite which is easy to install. We can always change to something else later.
Added OpenBLAS support in makefile, though it does not make a difference in performance on my laptop.