]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools: Create a cgset library for testing purposes
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 31 Mar 2021 16:44:11 +0000 (16:44 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 2 Apr 2021 19:02:52 +0000 (13:02 -0600)
commite5084052d0386f8de36918857fc59fd3aa683a1d
tree27a1272e4cfbfd529b6ab1a89b9393bb7132945e
parentab8215a220b10dfb4b972ab2ab5a41b0a894a514
tools: Create a cgset library for testing purposes

Create libcgset.la so that functions within cgset can be
unit tested.

A functional test would be preferable in this case, but I'm
looking to test a very specific scenario - where there's an
'=' sign in the value of a setting's name/value pair.  To the
best of my knowledge, only the rdma (v1) and io (v2)
controllers have settings that utilize an '=' in such a fashion.
I can't think of an easy way to test rdma across our test fleet,
and our automated systems don't support the v2 io controller
yet.  Thus a unit test for now.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/Makefile.am
src/tools/tools-common.h