Add functional tests for both cgroup versions of cgsnapshot. As part of this patchset, the Cgroup class has been enhanced to closely mirror struct cgroup in the libcgroup library.
The changes to libcgroup proper have been sent out in a separate patchset. Code is available here: https://github.com/drakenclimber/libcgroup/tree/issues/cgsnapshot2 Tests are available here: https://github.com/drakenclimber/libcgroup-tests/tree/issues/cgsnapshot2 Automated test results (via Github Actions) are available here: https://github.com/drakenclimber/libcgroup/actions/runs/429162509 Code coverage increased by 2.9% and now stands at 31.5% https://coveralls.io/github/drakenclimber/libcgroup?branch=issues/cgsnapshot2 Tom Hromatka (7): ftests: Move cgroup version enums to their own class ftests: Add a utilities file and an indent() function ftests: Add a cgroup controller class ftests: Make the Cgroup class instantiable ftests: Add support for cgsnapshot ftests: Add cgroup v1 cgsnapshot test ftests: Add cgroup v2 cgsnapshot test ftests/001-cgget-basic_cgget_v1.py | 5 +- ftests/002-cgdelete-recursive_delete.py | 6 +- ftests/003-cgget-basic_cgget_v2.py | 4 +- ftests/004-cgsnapshot-basic_snapshot_v1.py | 101 +++++++++++++ ftests/005-cgsnapshot-basic_snapshot_v2.py | 83 +++++++++++ ftests/cgroup.py | 165 ++++++++++++++++++--- ftests/controller.py | 69 +++++++++ ftests/utils.py | 25 ++++ 8 files changed, 430 insertions(+), 28 deletions(-) create mode 100755 ftests/004-cgsnapshot-basic_snapshot_v1.py create mode 100755 ftests/005-cgsnapshot-basic_snapshot_v2.py create mode 100644 ftests/controller.py create mode 100644 ftests/utils.py -- 2.25.4 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel