In anticipation of adding cgroup v1/v2 abstraction layer support
to cgset, this patchset adds several extensive tests of cgset and
its wide variety of options.

As part of this work, I also identified a shortcoming with the
behavior of cgroup_set_values_recursive().  This is fixed in the
a separate patch for libcgroup proper and its accompanying unit
test is fixed in patch 1 of this set.

The change to libcgroup is available here:
https://github.com/drakenclimber/libcgroup/tree/issues/cgset-tests

These tests are available here:
https://github.com/drakenclimber/libcgroup-tests/tree/issues/cgset-tests2

The automated tests are passing and are available here:
https://github.com/drakenclimber/libcgroup/runs/2168772844

Overall code coverage increased from 46% to 50.2%.  Coverage
on cgset.c is now at 73.6%:
https://coveralls.io/builds/38148449

Tom Hromatka (10):
  gunit: Update test 009 to match cgroup_set_values_recursive()
  cgroup.py: Add support for cgset --copy-from flag
  cgroup.py: Allow for multiple cgroup names to be passed to cgset
  cgroup.py: Add -h support to Cgroup.set()
  ftests: Add multiple -r flag cgset test
  ftests: Add cgset --copy-from test
  ftests: Add multiple cgroup cgset set
  ftests: Add a cgset test with multiple '-r' flags and cgroups
  ftests: Add cgset invalid options test
  ftests: Add pydoc documentation to Cgroup.set()

 ftests/022-cgset-multiple_r_flag.py           |  87 +++++++++
 ftests/023-cgset-copy_from.py                 |  91 ++++++++++
 ftests/025-cgset-multiple_cgroups.py          |  94 ++++++++++
 .../026-cgset-multiple_r_multiple_cgroup.py   |  91 ++++++++++
 ftests/027-cgset-invalid_options.py           | 167 ++++++++++++++++++
 ftests/cgroup.py                              |  59 +++++--
 gunit/009-cgroup_set_values_recursive.cpp     |   2 +-
 7 files changed, 577 insertions(+), 14 deletions(-)
 create mode 100755 ftests/022-cgset-multiple_r_flag.py
 create mode 100755 ftests/023-cgset-copy_from.py
 create mode 100755 ftests/025-cgset-multiple_cgroups.py
 create mode 100755 ftests/026-cgset-multiple_r_multiple_cgroup.py
 create mode 100755 ftests/027-cgset-invalid_options.py

-- 
2.26.2



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

Reply via email to