-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update Python bindings and test them in CI #2086
Update Python bindings and test them in CI #2086
Conversation
There used to be tests comparing the output of the C test_* programs with the equivalent test in the binding language. Update the tests to match the Python bindings.
@peace-maker thank you! Despite plans to unify tests, testing bindings separately is also required, so it's not a duplicate work anyway: #2043 |
I think it would be a perfect fit for the bug fix release if it happens: #2081 |
looks nice, but do you mind splitting this PR into a few independent PRs, instead of mixing all of them into one? |
Resulting PRs:
Should be imported also to the |
I'll wait with the testing part until the other PRs are merged since it depends on them. |
There is a test setup for the python bindings in the
bindings/Makefile
, which compare the output of the/tests/test_<arch>
programs with the equivalentbindings/python/test_<arch>.py
scripts. They weren't run in CI and the tests were heavily out of sync.I've fixed all issues with the Python bindings that popped up while fixing the tests. This resulted in new bindings for the wasm and sh targets. 🎉
I'm aware of the plans to unify the tests using cstest, but figured any tests for the bindings at all are better than nothing in the meantime. The Java bindings are heavily outdated, so I've disabled tests for them until they're taken care of.