This patchset adds two cgrulesengd functional tests and the underlying framework required to run them. Note that this branch is built upon the recent patchset I sent out to add support for running the functional tests outside of a container [1].
Because of the netlink socket used by cgrules, these tests must be run outside of a container and may be destructive to the host system. Thus, it's highly recommended to run these tests in a throwaway virtual machine. Test code is available here: https://github.com/drakenclimber/libcgroup/tree/issues/cgrules4 Code coverage increased 11.8% and is now at 43.3%: https://coveralls.io/builds/36957334 Automated test results are available here: https://github.com/drakenclimber/libcgroup/runs/1857035811 [1] https://sourceforge.net/p/libcg/mailman/message/37212244/ Tom Hromatka (5): ftests: Add cgrulesengd support to the Cgroup class ftests: Add support for getting a process' cgroups ftests: Clean up a few exceptions ftests: Add cgroup v1 cgrules test ftests: Add cgroup v2 cgrules test ftests/006-cgrules-basic_cgrules_v1.py | 101 ++++++++++++++++++++++++ ftests/007-cgrules-basic_cgrules_v2.py | 99 +++++++++++++++++++++++ ftests/cgroup.py | 104 ++++++++++++++++++++++++- ftests/consts.py | 4 +- ftests/ftests.py | 2 +- ftests/process.py | 81 ++++++++++++++++++- 6 files changed, 387 insertions(+), 4 deletions(-) create mode 100755 ftests/006-cgrules-basic_cgrules_v1.py create mode 100755 ftests/007-cgrules-basic_cgrules_v2.py -- 2.26.2 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel