libseccomp
libseccomp copied to clipboard
RFE: add tests for Rust bindings
Add the regression tests (1-60) for the libseccomp crate that is Rust language bindings for the libseccomp library.
You can run the tests as follows:
$ sed -i "/^AC_INIT/ s/0.0.0/9.9.9/" configure.ac
$ ./autogen.sh
$ ./configure --prefix=$(pwd)/src/.libs --enable-rust
$ make && make install
$ make check-build
$ cd tests && ./regression -m rust
Based on: #323
@pcmoore @drakenclimber All tests passed successfully. But we need to discuss how we control the CI tests with the separate Rust bindings repository as mentioned in #323.
coverage: 89.474%. remained the same when pulling 86f5b73dda5b20a51af32ab5f951e5472edb40b8 on ManaSugi:add-rust-tests into 47ca6441d62e41ba845ad8036c15f1154bd56b24 on seccomp:main.
@pcmoore @drakenclimber Updated the year of copyright and rebased. I'd appreciate if you could review this when you have time.
Thank you @ManaSugi for your continued efforts here. I wanted to review things with you and @drakenclimber in the main issue tracker: https://github.com/seccomp/libseccomp/issues/323#issuecomment-1955204485