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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patchset follows 4 patches that I sent in December,
https://lore.kernel.org/selinux/20181221204333.27445-1-nicolas.iooss@xxxxxxx/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

-- 
2.20.1




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux