selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] libsemanage: add tests
@ 2019-06-12  8:03 Jan Zarsky
  2019-06-12  8:03 ` [PATCH 01/11] libsemanage: add helper functions to tests Jan Zarsky
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Jan Zarsky @ 2019-06-12  8:03 UTC (permalink / raw)
  To: selinux

This series adds new test suites for libsemanage. In the first patch, common
helper functions are added. The other patches are independent and each adds a
new test suite.

The test suites are testing only the public API and aim for line coverage. They
test only correct usage of the functions. Together with valgrind, the test
suites can be used for detecting memory leaks.

The tests run fine in Travis CI and do not require an SELinux-enabled system.

I welcome any suggestions.

Jan Zarsky (11):
  libsemanage: add helper functions to tests
  libsemanage: test semanage_handle_* functions
  libsemanage: test semanage_bool_* functions
  libsemanage: test semanage_fcontext functions
  libsemanage: test semanage_iface_* functions
  libsemanage: test semanage_ibendport_* functions
  libsemanage: test semanage_node_* functions
  libsemanage: test semanage_port_* functions
  libsemanage: test semanage_user_* functions
  libsemanage: test semanage_context_* functions
  libsemanage: test semanage_msg_default_handler

 libsemanage/tests/.gitignore            |    1 +
 libsemanage/tests/Makefile              |   11 +-
 libsemanage/tests/libsemanage-tests.c   |   18 +
 libsemanage/tests/test_bool.c           |  932 +++++++++++++++++++++++++++
 libsemanage/tests/test_bool.cil         |   24 +
 libsemanage/tests/test_bool.h           |   31 +
 libsemanage/tests/test_fcontext.c       | 1045 +++++++++++++++++++++++++++++++
 libsemanage/tests/test_fcontext.cil     |   25 +
 libsemanage/tests/test_fcontext.h       |   30 +
 libsemanage/tests/test_handle.c         |  329 ++++++++++
 libsemanage/tests/test_handle.cil       |   21 +
 libsemanage/tests/test_handle.h         |   30 +
 libsemanage/tests/test_ibendport.c      |  525 ++++++++++++++++
 libsemanage/tests/test_ibendport.cil    |   28 +
 libsemanage/tests/test_ibendport.h      |   30 +
 libsemanage/tests/test_iface.c          |  666 ++++++++++++++++++++
 libsemanage/tests/test_iface.cil        |   28 +
 libsemanage/tests/test_iface.h          |   30 +
 libsemanage/tests/test_node.c           |  807 ++++++++++++++++++++++++
 libsemanage/tests/test_node.cil         |   28 +
 libsemanage/tests/test_node.h           |   30 +
 libsemanage/tests/test_other.c          |  120 ++++
 libsemanage/tests/test_other.h          |   30 +
 libsemanage/tests/test_port.c           |  909 +++++++++++++++++++++++++++
 libsemanage/tests/test_port.cil         |   27 +
 libsemanage/tests/test_port.h           |   30 +
 libsemanage/tests/test_semanage_store.c |    2 +-
 libsemanage/tests/test_user.c           |  690 ++++++++++++++++++++
 libsemanage/tests/test_user.cil         |   27 +
 libsemanage/tests/test_user.h           |   30 +
 libsemanage/tests/utilities.c           |  254 +++++++-
 libsemanage/tests/utilities.h           |   53 +-
 32 files changed, 6831 insertions(+), 10 deletions(-)



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-06-19 16:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-12  8:03 [PATCH 00/11] libsemanage: add tests Jan Zarsky
2019-06-12  8:03 ` [PATCH 01/11] libsemanage: add helper functions to tests Jan Zarsky
2019-06-12  8:03 ` [PATCH 02/11] libsemanage: test semanage_handle_* functions Jan Zarsky
2019-06-12  8:03 ` [PATCH 03/11] libsemanage: test semanage_bool_* functions Jan Zarsky
2019-06-12  8:03 ` [PATCH 04/11] libsemanage: test semanage_fcontext functions Jan Zarsky
2019-06-12  8:03 ` [PATCH 05/11] libsemanage: test semanage_iface_* functions Jan Zarsky
2019-06-12  8:03 ` [PATCH 06/11] libsemanage: test semanage_ibendport_* functions Jan Zarsky
2019-06-12  8:04 ` [PATCH 07/11] libsemanage: test semanage_node_* functions Jan Zarsky
2019-06-12  8:04 ` [PATCH 08/11] libsemanage: test semanage_port_* functions Jan Zarsky
2019-06-12  8:04 ` [PATCH 09/11] libsemanage: test semanage_user_* functions Jan Zarsky
2019-06-12  8:04 ` [PATCH 10/11] libsemanage: test semanage_context_* functions Jan Zarsky
2019-06-12  8:04 ` [PATCH 11/11] libsemanage: test semanage_msg_default_handler Jan Zarsky
2019-06-12 19:57 ` [PATCH 00/11] libsemanage: add tests William Roberts
2019-06-19 16:04   ` William Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).