This patchset updates the libcgroup automated functional tests to also run and pass on a full cgroup v2 system.
In a separate patchset, I will be sending out an update to the libcgroup Github Actions script. This change updates the CI to run the test suite on a cgroup v1 system, a cgroup v1/v2 system, and a full cgroup v2 unified hierarchy system. (Since Github Actions doesn't provide an image with cgroup v2 enabled, the full v2 system is self hosted on the Oracle Cloud.) Previously we could only test on v1 and a cobbled-together v1/v2. Updating the tests to run on a native cgroup v2 system is essential as we continue to improve the interfaces and begin adding the higher-level abstraction layers. Libcgroup code changes are available here: https://github.com/drakenclimber/libcgroup/tree/issues/cgv2-tests Test code is available here: https://github.com/drakenclimber/libcgroup-tests/tree/issues/cgv2-tests Automated tests are passing on the v1, v1/v2, and the full v2 system: https://github.com/drakenclimber/libcgroup/runs/2738640883 Code coverage increased slightly from 51.02% to 51.15% https://coveralls.io/jobs/81358830 Tom Hromatka (13): run.py: Ignore LXD cgroup v2 warning ftests: Modify functional test 005 to support cgroup v2 ftests: Modify functional test 008 to support cgroup v2 ftests: Modify functional test 009 to support cgroup v2 ftests: Modify functional test 010 to support cgroup v2 ftests: Modify functional test 011 to support cgroup v2 ftests: Modify functional test 012 to support cgroup v2 ftests: Modify functional test 013 to support cgroup v2 cgroup.py: Fix bug in delete with multiple controllers ftests: Modify functional test 014 to support cgroup v2 ftests: Modify functional test 030 to support cgroup v2 ftests: Skip test 031 due to Github Issue #50 ftests: Skip test 032 due to Github Issue #50 ftests/005-cgsnapshot-basic_snapshot_v2.py | 3 +- ftests/008-cgget-multiple_r_flags.py | 35 ++++++++---- ftests/009-cgget-g_flag_controller_only.py | 31 +++++++++- .../010-cgget-g_flag_controller_and_cgroup.py | 36 +++++++++++- ftests/011-cgget-r_flag_two_cgroups.py | 38 ++++++++++--- ftests/012-cgget-multiple_r_flags2.py | 32 ++++++++--- ftests/013-cgget-multiple_g_flags.py | 56 ++++++++++++++++--- ftests/014-cgget-a_flag.py | 26 +++++++-- ftests/030-lssubsys-lssubsys_all.py | 4 ++ ftests/031-lscgroup-g_flag.py | 15 +++++ ftests/032-lscgroup-multiple_g_flags.py | 15 +++++ ftests/cgroup.py | 2 +- ftests/run.py | 9 ++- 13 files changed, 256 insertions(+), 46 deletions(-) -- 2.26.3 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel