This patchset adds logic to enable the functional tests
to be run outside of a container.  (Note that they still
run inside of an LXC container.)

make check (which is invoked by Github Actions) has been
updated to run the functional tests both inside and
outside of a container.

These changes are in preparation for adding tests for
cgrulesengd.  It currently does not run within a
container.

Code is available here:
https://github.com/drakenclimber/libcgroup/tree/issues/nocontainer

Tests are available here:
https://github.com/drakenclimber/libcgroup-tests/tree/issues/nocontainer

Code coverage remained the same at 31.5%:
https://coveralls.io/builds/36846105

Test results are available here:
https://github.com/drakenclimber/libcgroup/runs/1826371745

Tom Hromatka (7):
  ftests: Add --container and --no-container flags
  ftests: Test 004 must be run within a container
  ftests: Use sudo for many cgroup commands when not in a container
  ftests: Ensure the deny list file exists
  ftests: Make the Process() class instantiable
  ftests: Add permissions support to cgsnapshot parsing
  ftests: Add a script to run the non-containerized tests

 ftests/002-cgdelete-recursive_delete.py    |  4 +-
 ftests/004-cgsnapshot-basic_snapshot_v1.py |  8 +-
 ftests/Makefile.am                         |  6 +-
 ftests/cgroup.py                           | 91 ++++++++++++++--------
 ftests/config.py                           | 28 ++++---
 ftests/container.py                        |  6 +-
 ftests/ftests-nocontainer.sh               |  2 +
 ftests/ftests.py                           | 68 +++++++++-------
 ftests/process.py                          | 75 ++++++++++++------
 9 files changed, 187 insertions(+), 101 deletions(-)
 create mode 100755 ftests/ftests-nocontainer.sh

-- 
2.26.2



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to