mbox series

[RFC,0/1] selinux-testsuite: Reduce sctp test runtime

Message ID 20201104164913.11536-1-richard_c_haines@btinternet.com (mailing list archive)
Headers show
Series selinux-testsuite: Reduce sctp test runtime | expand

Message

Richard Haines Nov. 4, 2020, 4:49 p.m. UTC
This patch uses the audit system to detect AVC events and if detected exit
the test with the specified exit code.

This speeds up the sctp tests as the clients do not have to hang around for
the socket call to timeout.

There are some notes in sctp_common.c on the process.
Using './test -v' will show the audit entries captured and any triggers.

Without this patch sctp tests take ~2.6 min, with patch ~4 secs.

If acceptable I could do the same with the inet_socket tests.

Richard Haines (1):
  selinux-testsuite: Reduce sctp test runtime

 README.md                              |  5 +-
 policy/test_sctp.te                    |  1 +
 tests/sctp/Makefile                    |  2 +-
 tests/sctp/sctp_asconf_params_client.c | 51 ++++++++++++-
 tests/sctp/sctp_client.c               | 52 ++++++++++++--
 tests/sctp/sctp_common.c               | 99 ++++++++++++++++++++++++++
 tests/sctp/sctp_common.h               | 11 +++
 tests/sctp/test                        | 50 ++++++-------
 travis-ci/run-testsuite.sh             |  1 +
 9 files changed, 237 insertions(+), 35 deletions(-)