Update QEMU test cases for new file locations & API renames

* qemuargv2xmltest.c, qemuhelptest.c,
  qemuxml2argvtest.c, testutilsqemu.c: Update includes and
  cope with API renames
This commit is contained in:
Daniel P. Berrange 2010-12-17 16:41:51 +00:00
parent acabd9d0ff
commit 1d16f05674
4 changed files with 11 additions and 12 deletions

View File

@ -13,7 +13,7 @@
# include "internal.h" # include "internal.h"
# include "testutils.h" # include "testutils.h"
# include "qemu/qemu_conf.h" # include "qemu/qemu_command.h"
# include "testutilsqemu.h" # include "testutilsqemu.h"

View File

@ -6,7 +6,7 @@
# include <stdlib.h> # include <stdlib.h>
# include "testutils.h" # include "testutils.h"
# include "qemu/qemu_conf.h" # include "qemu/qemu_capabilities.h"
# define MAX_HELP_OUTPUT_SIZE 1024*64 # define MAX_HELP_OUTPUT_SIZE 1024*64
@ -50,7 +50,7 @@ static int testHelpStrParsing(const void *data)
if (virtTestLoadFile(path, &help, MAX_HELP_OUTPUT_SIZE) < 0) if (virtTestLoadFile(path, &help, MAX_HELP_OUTPUT_SIZE) < 0)
return -1; return -1;
if (qemudParseHelpStr("QEMU", help, &flags, if (qemuCapsParseHelpStr("QEMU", help, &flags,
&version, &is_kvm, &kvm_version) == -1) &version, &is_kvm, &kvm_version) == -1)
return -1; return -1;

View File

@ -13,7 +13,8 @@
# include "internal.h" # include "internal.h"
# include "testutils.h" # include "testutils.h"
# include "qemu/qemu_conf.h" # include "qemu/qemu_capabilities.h"
# include "qemu/qemu_command.h"
# include "datatypes.h" # include "datatypes.h"
# include "cpu/cpu_map.h" # include "cpu/cpu_map.h"
@ -110,7 +111,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
free(virtTestLogContentAndReset()); free(virtTestLogContentAndReset());
virResetLastError(); virResetLastError();
if (!(cmd = qemudBuildCommandLine(conn, &driver, if (!(cmd = qemuBuildCommandLine(conn, &driver,
vmdef, &monitor_chr, false, flags, vmdef, &monitor_chr, false, flags,
migrateFrom, NULL, VIR_VM_OP_CREATE))) migrateFrom, NULL, VIR_VM_OP_CREATE)))
goto fail; goto fail;

View File

@ -8,6 +8,7 @@
# include "memory.h" # include "memory.h"
# include "cpu_conf.h" # include "cpu_conf.h"
# include "qemu/qemu_driver.h" # include "qemu/qemu_driver.h"
# include "qemu/qemu_domain.h"
static virCapsGuestMachinePtr *testQemuAllocMachines(int *nmachines) static virCapsGuestMachinePtr *testQemuAllocMachines(int *nmachines)
{ {
@ -102,10 +103,7 @@ virCapsPtr testQemuCapsInit(void) {
(machines = testQemuAllocMachines(&nmachines)) == NULL) (machines = testQemuAllocMachines(&nmachines)) == NULL)
goto cleanup; goto cleanup;
caps->ns.parse = qemuDomainDefNamespaceParse; qemuDomainSetNamespaceHooks(caps);
caps->ns.free = qemuDomainDefNamespaceFree;
caps->ns.format = qemuDomainDefNamespaceFormatXML;
caps->ns.href = qemuDomainDefNamespaceHref;
if ((guest = virCapabilitiesAddGuest(caps, "hvm", "i686", 32, if ((guest = virCapabilitiesAddGuest(caps, "hvm", "i686", 32,
"/usr/bin/qemu", NULL, "/usr/bin/qemu", NULL,