libvirt/tests/vircgroupdata
Pavel Hrdina 8b62008d2b vircgrouptest: call virCgroupNewSelf instead virCgroupDetectMounts
This will be required once cgroup v2 is introduced.  The cgroup
detection is not simple and we will have multiple backends so we
should not just jump into the middle of the detection code.

In order to use virCgroupNewSelf we need to create all the remaining
data files:

    - {name}.cgroups represents /proc/cgroups, it is a list of cgroup
      controllers compiled into kernel

    - {name}.self.cgroup represents /proc/self/cgroup, it describes
      cgroups to which the process belongs

For "no-cgroups" we need to modify the expected behavior because
virCgroupNewSelf() will fail if there are no controllers available.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2018-09-25 09:59:23 +02:00
..
all-in-one.cgroups
all-in-one.mounts
all-in-one.parsed
all-in-one.self.cgroup
cgroups1.cgroups
cgroups1.mounts
cgroups1.parsed
cgroups1.self.cgroup
cgroups2.cgroups
cgroups2.mounts
cgroups2.parsed
cgroups2.self.cgroup
cgroups3.cgroups
cgroups3.mounts
cgroups3.parsed
cgroups3.self.cgroup
fedora-18.cgroups
fedora-18.mounts
fedora-18.parsed
fedora-18.self.cgroup
fedora-21.cgroups
fedora-21.mounts
fedora-21.parsed
fedora-21.self.cgroup
kubevirt.cgroups
kubevirt.mounts
kubevirt.parsed
kubevirt.self.cgroup
logind.cgroups
logind.mounts
logind.self.cgroup
no-cgroups.cgroups
no-cgroups.mounts
no-cgroups.self.cgroup
ovirt-node-6.6.cgroups
ovirt-node-6.6.mounts
ovirt-node-6.6.parsed
ovirt-node-6.6.self.cgroup
ovirt-node-7.1.cgroups
ovirt-node-7.1.mounts
ovirt-node-7.1.parsed
ovirt-node-7.1.self.cgroup
rhel-7.1.cgroups
rhel-7.1.mounts
rhel-7.1.parsed
rhel-7.1.self.cgroup
systemd.cgroups
systemd.mounts
systemd.self.cgroup