tests/sctp: add client peeloff tests
PATCH v2 1/1 tests/sctp: add client peeloff tests
Currently the testsuite only verifies that SCTP peeloff works on the server side. However, it can just as well be used on the client side as well, which isn't being tested (and actually is buggy at the time of writing).
To correct this, add a simple SCTP peeloff client and a couple tests that verify that the client-side peeloff works well with SELinux.
Signed-off-by Ondrej Mosnacek <[email protected]>
---
v2: rebased and resolved a conflict
tests/sctp/.gitignore | 1 + tests/sctp/Makefile | 3 +- tests/sctp/sctp_peeloff_client.c | 253 +++++++++++++++++++++++++++++++ tests/sctp/test | 132 +++++++++++++++- 4 files changed, 382 insertions(+), 7 deletions(-) create mode 100644 tests/sctp/sctp_peeloff_client.c
tests/sctp/.gitignore +1 -0
@@ -4,5 +4,6 @@ sctp_bind sctp_bindx sctp_client sctp_connectx +sctp_peeloff_client sctp_peeloff_server sctp_server
tests/sctp/Makefile +2 -1
@@ -1,5 +1,6 @@ TARGETS = sctp_client sctp_server sctp_bind sctp_bindx sctp_connectx \ - sctp_asconf_params_client sctp_asconf_params_server sctp_peeloff_server + sctp_asconf_params_client sctp_asconf_params_server \ + sctp_peeloff_client sctp_peeloff_server DEPS = sctp_common.c sctp_common.h CFLAGS ?= -Wall
tests/sctp/sctp_peeloff_client.c new file +253 -0
253 lines not on this page · raw message
tests/sctp/test +126 -6
212 lines not on this page · raw message
Signature · 1 line
2.34.1