~matttbe/mptcpd/master

Viewing all changes in revision 142.

  • Committer: GitHub
  • Author(s): Ossama Othman
  • Date: 2022-04-14 23:21:48 UTC
  • Revision ID: git-v1:e31ba5f5cb0aef44ea680b6a9f70993120396ff4
Expand mptcpd plugin framework code coverage (#224)

* tests: Force plugin name-to-ops lookup failure.

Force plugin name-to-ops lookup to fail in the test-plugin unit test
to excercise additional error paths.

* tests: Verify NULL plugin directory handling.

* tests: Add test case for plugin with NULL name.

* tests: Add test for plugin missing needed symbol.

* tests: Add test case for failed plugin init.

Verify that mptcpd gracefully handles case where the plugin "init"
function fails, i.e. returns a non-zero value.

* tests: Verify network monitoring NULL plugin args.

* tests: Add noop network monitoring functions.

Add network monitoring related callbacks to the noop test plugin.

* tests: Reduce test plugin argument clutter.

The number of arguments passed when running plugin operation dispatch
tests is large and a bit sloppy.  Move the arguments used in the
plugin operation dispatch tests to the new "plugin_call_args" struct
to reduce clutter and make the code more manageable.

* tests: Run network monitor plugin op dispatch.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: