Skip to content

Run tests in python/ with "make test"

Nicolas Iooss selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Travis-CI: download refpolicy and install headers.travis.yml+8 -60 replies
2/5python/audit2allow: make the tests useful againpython/audit2allow/.gitignore python/audit2allow/Makefile python/audit2allow/test_audit2allow.py +1 more+93 -70 replies
3/5python/audit2allow: use local sepolgen-ifgen-attr-helper for testspython/audit2allow/sepolgen-ifgen python/audit2allow/test_audit2allow.py+9 -40 replies
4/5python/sepolgen: refpolicy installs its Makefile in include/Makefilepython/sepolgen/src/sepolgen/defaults.py+4 -10 replies
5/5python: run all the tests with "make test"python/Makefile python/chcat/Makefile+3 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Run tests in python/ with "make test"

This patchset follows 4 patches that I sent in December,
https://lore.kernel.org/selinux/[email protected]/T/
and makes changes to python/audit2allow/ testsuite in order to make "make test" work for a non-root user on a non-SELinux system in all directories. The main addition from this patchset is a dummy SELinux policy that has been written in order to be able to run audit2allow on python/audit2allow/test.log.

Each patch describes what it modifies. The full patch series in available on
https://github.com/SELinuxProject/selinux/pull/126

Nicolas Iooss (5):
Travis-CI: download refpolicy and install headers python/audit2allow: make the tests useful again python/audit2allow: use local sepolgen-ifgen-attr-helper for tests python/sepolgen: refpolicy installs its Makefile in include/Makefile
python: run all the tests with "make test"

 .travis.yml                              | 14 +++--
 python/Makefile                          |  4 +-
 python/audit2allow/.gitignore            |  1 +
 python/audit2allow/Makefile              |  8 ++-
 python/audit2allow/sepolgen-ifgen        |  8 ++-
 python/audit2allow/test_audit2allow.py   | 19 ++++--
 python/audit2allow/test_dummy_policy.cil | 75 ++++++++++++++++++++++++
 python/chcat/Makefile                    |  2 +
 python/sepolgen/src/sepolgen/defaults.py |  5 +-
 9 files changed, 116 insertions(+), 20 deletions(-)
 create mode 100644 python/audit2allow/test_dummy_policy.cil
Signature · 1 line
2.20.1