Improve testing by translating the Matlab C API examples to Rust using matlab-sys #1
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Improve testing
Currently only a small subset of the whole Matlab C API gets tested using the subset of examples translated to Rust which can be found in
./mex-examples
. While this already validates the linking directives needed to link against libraries provided by Matlab it would be better if a bigger surface of the exposed C API could be tested to make sure the bindings work correctly and nothing is missing.Workflow
matlabroot/extern/examples/
that is missingcdylib
library crate in./mex-examples
with the name of the example (words should be separated by '-' for consistency) and matlab-sys as a path dependencyTEST_EXAMPLES
in file./xtask/src/test.rs
./xtask/src/test.m
. Follow the examples provided by the other tests or the documentation from Matlab.cargo xtask test
) to make sure everything works. If the new test fails validate your translation of the C-example and the test case you added totest.m
. If both are correct open an issue describing the problem.The text was updated successfully, but these errors were encountered: