seccomp / libseccomp

The main libseccomp repository
GNU Lesser General Public License v2.1
791 stars 170 forks source link

RFE: add tests for Rust bindings #411

Open ManaSugi opened 1 year ago

ManaSugi commented 1 year ago

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

ManaSugi commented 11 months ago

@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.

coveralls commented 6 months ago

Coverage Status

coverage: 89.474%. remained the same when pulling 86f5b73dda5b20a51af32ab5f951e5472edb40b8 on ManaSugi:add-rust-tests into 47ca6441d62e41ba845ad8036c15f1154bd56b24 on seccomp:main.

ManaSugi commented 6 months ago

@pcmoore @drakenclimber Updated the year of copyright and rebased. I'd appreciate if you could review this when you have time.

pcmoore commented 6 months ago

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