This patchset adds cgroup v2 support to the functional tests. Note that Travis CI doesn't provide a VM image with cgroup v2 on by default (e.g. Fedora), and Travis doesn't allow modifying the kernel boot parameters.
So to get this initial round of cgroup v2 functional test support working, I unmount the cgroup v1 cpuset controller, wait a bit, then add it to the cgroup v2 subtree control file. These gory details are hidden in the .travis.yml file though, so if/when a real v2 test system is available, the functional tests should remain largely unchanged. The Travis CI changes associated with this patchset are available here: https://github.com/drakenclimber/libcgroup/tree/issues/ftests_cgv2 The test code is available here: https://github.com/drakenclimber/libcgroup-tests/tree/issues/ftests_cgv2 Automated test results passed and are available here: https://github.com/drakenclimber/libcgroup/runs/1322579948 Code coverage increased by 2.9% to 25.2%: https://coveralls.io/builds/34536720 Tom Hromatka (2): travis: Exclude lex.l and parse.y from code coverage travis: Add test job on cgroup v2 Ubuntu 20.04 .travis.yml | 46 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 7 deletions(-) -- 2.25.4 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel