4 # include "testutilslxc.h"
5 # include "testutils.h"
7 # include "domain_conf.h"
10 virCapsPtr
testLXCCapsInit(void)
13 virCapsGuestPtr guest
;
15 if ((caps
= virCapabilitiesNew(VIR_ARCH_X86_64
,
16 false, false)) == NULL
)
19 if ((guest
= virCapabilitiesAddGuest(caps
, VIR_DOMAIN_OSTYPE_EXE
,
21 "/usr/libexec/libvirt_lxc", NULL
,
25 if (!virCapabilitiesAddGuestDomain(guest
, VIR_DOMAIN_VIRT_LXC
, NULL
, NULL
, 0, NULL
))
29 if ((guest
= virCapabilitiesAddGuest(caps
, VIR_DOMAIN_OSTYPE_EXE
,
31 "/usr/libexec/libvirt_lxc", NULL
,
35 if (!virCapabilitiesAddGuestDomain(guest
, VIR_DOMAIN_VIRT_LXC
, NULL
, NULL
, 0, NULL
))
39 if (virTestGetDebug()) {
42 caps_str
= virCapabilitiesFormatXML(caps
);
46 VIR_TEST_DEBUG("LXC driver capabilities:\n%s", caps_str
);