2007-11-30 22:51:54 +00:00
|
|
|
|
2008-01-29 18:15:54 +00:00
|
|
|
#include <config.h>
|
2007-11-26 12:03:34 +00:00
|
|
|
|
2006-08-24 15:05:19 +00:00
|
|
|
#include <stdio.h>
|
2007-11-30 22:51:54 +00:00
|
|
|
#include <stdlib.h>
|
Wed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* python/libvir.c, python/libvirt_wrap.h, qemud/qemud.c,
qemud/remote.c, src/internal.h, src/openvz_conf.c,
src/openvz_driver.c, src/proxy_internal.h, src/qemu_conf.c,
src/qemu_driver.c, src/remote_internal.h, src/test.h, src/util.c,
src/xen_unified.c, src/xen_unified.h, tests/nodeinfotest.c,
tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c, tests/reconnect.c,
tests/sexpr2xmltest.c, tests/virshtest.c, tests/xencapstest.c,
tests/xmconfigtest.c, tests/xml2sexprtest.c:
Change #include <> to #include "" for local includes.
Removed many includes from src/internal.h and put them in
the C files which actually use them.
Removed <ansidecl.h> - unused.
Added a comment around __func__.
Removed a clashing redefinition of VERSION symbol.
All limits (PATH_MAX etc) now done in src/internal.h, so we
don't need to include those headers in other files.
2007-12-05 13:56:22 +00:00
|
|
|
#include <string.h>
|
2007-04-11 16:06:30 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
2007-11-30 22:51:54 +00:00
|
|
|
#if WITH_XEN
|
|
|
|
|
Wed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* python/libvir.c, python/libvirt_wrap.h, qemud/qemud.c,
qemud/remote.c, src/internal.h, src/openvz_conf.c,
src/openvz_driver.c, src/proxy_internal.h, src/qemu_conf.c,
src/qemu_driver.c, src/remote_internal.h, src/test.h, src/util.c,
src/xen_unified.c, src/xen_unified.h, tests/nodeinfotest.c,
tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c, tests/reconnect.c,
tests/sexpr2xmltest.c, tests/virshtest.c, tests/xencapstest.c,
tests/xmconfigtest.c, tests/xml2sexprtest.c:
Change #include <> to #include "" for local includes.
Removed many includes from src/internal.h and put them in
the C files which actually use them.
Removed <ansidecl.h> - unused.
Added a comment around __func__.
Removed a clashing redefinition of VERSION symbol.
All limits (PATH_MAX etc) now done in src/internal.h, so we
don't need to include those headers in other files.
2007-12-05 13:56:22 +00:00
|
|
|
#include "internal.h"
|
2006-08-24 15:05:19 +00:00
|
|
|
#include "xml.h"
|
|
|
|
#include "testutils.h"
|
|
|
|
|
|
|
|
static char *progname;
|
2007-11-14 10:35:58 +00:00
|
|
|
static char *abs_top_srcdir;
|
2006-08-24 15:05:19 +00:00
|
|
|
|
|
|
|
#define MAX_FILE 4096
|
|
|
|
|
2007-11-14 10:35:58 +00:00
|
|
|
static int testCompareFiles(const char *xml_rel, const char *sexpr_rel,
|
|
|
|
const char *name, int xendConfigVersion) {
|
2006-08-24 15:05:19 +00:00
|
|
|
char xmlData[MAX_FILE];
|
|
|
|
char sexprData[MAX_FILE];
|
|
|
|
char *gotname = NULL;
|
|
|
|
char *gotsexpr = NULL;
|
|
|
|
char *xmlPtr = &(xmlData[0]);
|
|
|
|
char *sexprPtr = &(sexprData[0]);
|
2006-10-06 15:32:48 +00:00
|
|
|
int ret = -1;
|
2007-11-14 10:35:58 +00:00
|
|
|
char xml[PATH_MAX];
|
|
|
|
char sexpr[PATH_MAX];
|
|
|
|
|
|
|
|
snprintf(xml, sizeof xml - 1, "%s/tests/%s", abs_top_srcdir, xml_rel);
|
|
|
|
snprintf(sexpr, sizeof sexpr - 1, "%s/tests/%s", abs_top_srcdir, sexpr_rel);
|
2006-08-24 15:05:19 +00:00
|
|
|
|
|
|
|
if (virtTestLoadFile(xml, &xmlPtr, MAX_FILE) < 0)
|
2006-10-06 15:32:48 +00:00
|
|
|
goto fail;
|
2006-08-24 15:05:19 +00:00
|
|
|
|
|
|
|
if (virtTestLoadFile(sexpr, &sexprPtr, MAX_FILE) < 0)
|
2006-10-06 15:32:48 +00:00
|
|
|
goto fail;
|
2006-08-24 15:05:19 +00:00
|
|
|
|
2007-02-14 16:16:13 +00:00
|
|
|
if (!(gotsexpr = virDomainParseXMLDesc(NULL, xmlData, &gotname, xendConfigVersion)))
|
2006-10-06 15:32:48 +00:00
|
|
|
goto fail;
|
2006-08-24 15:05:19 +00:00
|
|
|
|
2007-04-11 16:06:30 +00:00
|
|
|
if (strcmp(sexprData, gotsexpr)) {
|
2007-07-18 21:08:22 +00:00
|
|
|
if (getenv("DEBUG_TESTS")) {
|
|
|
|
printf("Expect %d '%s'\n", (int)strlen(sexprData), sexprData);
|
|
|
|
printf("Actual %d '%s'\n", (int)strlen(gotsexpr), gotsexpr);
|
|
|
|
}
|
2007-04-11 16:06:30 +00:00
|
|
|
goto fail;
|
|
|
|
}
|
2006-08-24 15:05:19 +00:00
|
|
|
|
2007-04-11 16:06:30 +00:00
|
|
|
if (strcmp(name, gotname)) {
|
|
|
|
printf("Got wrong name: expected %s, got %s\n", name, gotname);
|
|
|
|
goto fail;
|
|
|
|
}
|
2006-08-24 15:05:19 +00:00
|
|
|
|
2006-10-06 15:32:48 +00:00
|
|
|
ret = 0;
|
|
|
|
|
|
|
|
fail:
|
|
|
|
|
|
|
|
free(gotname);
|
|
|
|
free(gotsexpr);
|
|
|
|
|
|
|
|
return ret;
|
2006-08-24 15:05:19 +00:00
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testComparePVversion1(const void *data ATTRIBUTE_UNUSED) {
|
2006-09-12 01:16:22 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-pv.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-pv.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
1);
|
2006-08-24 15:05:19 +00:00
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareFVversion1(const void *data ATTRIBUTE_UNUSED) {
|
2006-09-12 01:16:22 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-fv.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testComparePVversion2(const void *data ATTRIBUTE_UNUSED) {
|
2006-09-12 01:16:22 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-pv.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-pv.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareFVversion2(const void *data ATTRIBUTE_UNUSED) {
|
2006-09-12 01:16:22 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-fv-v2.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
2);
|
2006-08-24 15:05:19 +00:00
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareFVversion2VNC(const void *data ATTRIBUTE_UNUSED) {
|
2006-09-12 01:34:26 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv-vncunused.xml",
|
2006-10-09 14:32:07 +00:00
|
|
|
"xml2sexprdata/xml2sexpr-fv-vncunused.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testComparePVOrigVFB(const void *data ATTRIBUTE_UNUSED) {
|
2006-12-13 14:08:51 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-pv-vfb-orig.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-pv-vfb-orig.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testComparePVNewVFB(const void *data ATTRIBUTE_UNUSED) {
|
2006-12-13 14:08:51 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-pv-vfb-new.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-pv-vfb-new.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
3);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testComparePVBootloader(const void *data ATTRIBUTE_UNUSED) {
|
2007-06-07 13:50:18 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-pv-bootloader.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-pv-bootloader.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareDiskFile(const void *data ATTRIBUTE_UNUSED) {
|
2006-10-09 14:32:07 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-file.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-file.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareDiskBlock(const void *data ATTRIBUTE_UNUSED) {
|
2006-10-09 14:32:07 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-block.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-block.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-11-20 10:05:45 +00:00
|
|
|
static int testCompareDiskShareable(const void *data ATTRIBUTE_UNUSED) {
|
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-block-shareable.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareDiskDrvLoop(const void *data ATTRIBUTE_UNUSED) {
|
2006-10-09 14:32:07 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-loop.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-drv-loop.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareDiskDrvBlkback(const void *data ATTRIBUTE_UNUSED) {
|
2006-10-09 14:32:07 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blkback.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-drv-blkback.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareDiskDrvBlktap(const void *data ATTRIBUTE_UNUSED) {
|
2006-10-09 14:32:07 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blktap.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-drv-blktap.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareDiskDrvBlktapQcow(const void *data ATTRIBUTE_UNUSED) {
|
2006-10-09 14:32:07 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blktap-qcow.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-drv-blktap-qcow.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareDiskDrvBlktapRaw(const void *data ATTRIBUTE_UNUSED) {
|
2006-10-09 14:32:07 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blktap-raw.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-disk-drv-blktap-raw.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
2006-09-12 01:34:26 +00:00
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareMemoryResize(const void *data ATTRIBUTE_UNUSED) {
|
2006-11-10 11:13:01 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-curmem.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-curmem.sexpr",
|
|
|
|
"rhel5",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareNetRouted(const void *data ATTRIBUTE_UNUSED) {
|
2006-11-15 00:38:13 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-net-routed.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-net-routed.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareNetBridged(const void *data ATTRIBUTE_UNUSED) {
|
2006-11-15 00:38:13 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-net-bridged.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-net-bridged.sexpr",
|
|
|
|
"pvtest",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareNoSourceCDRom(const void *data ATTRIBUTE_UNUSED) {
|
2007-04-11 16:06:30 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-no-source-cdrom.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-no-source-cdrom.sexpr",
|
|
|
|
"test",
|
|
|
|
2);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareFVclockUTC(const void *data ATTRIBUTE_UNUSED) {
|
2007-07-16 21:30:30 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv-utc.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-fv-utc.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareFVclockLocaltime(const void *data ATTRIBUTE_UNUSED) {
|
2007-07-16 21:30:30 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv-localtime.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-fv-localtime.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2006-11-15 00:38:13 +00:00
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareFVInputUSBMouse(const void *data ATTRIBUTE_UNUSED) {
|
2007-07-18 21:08:22 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv-usbmouse.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-fv-usbmouse.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:13:26 +00:00
|
|
|
static int testCompareFVInputUSBTablet(const void *data ATTRIBUTE_UNUSED) {
|
2007-07-18 21:08:22 +00:00
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv-usbtablet.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-fv-usbtablet.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2008-02-05 16:21:25 +00:00
|
|
|
static int testCompareFVKernel(const void *data ATTRIBUTE_UNUSED) {
|
|
|
|
return testCompareFiles("xml2sexprdata/xml2sexpr-fv-kernel.xml",
|
|
|
|
"xml2sexprdata/xml2sexpr-fv-kernel.sexpr",
|
|
|
|
"fvtest",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2007-07-18 21:08:22 +00:00
|
|
|
|
|
|
|
|
2006-08-24 15:05:19 +00:00
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
2006-10-09 14:32:07 +00:00
|
|
|
|
2006-08-24 15:05:19 +00:00
|
|
|
progname = argv[0];
|
2006-10-09 14:32:07 +00:00
|
|
|
|
2007-11-14 10:35:58 +00:00
|
|
|
abs_top_srcdir = getenv("abs_top_srcdir");
|
2007-11-20 10:05:45 +00:00
|
|
|
if (!abs_top_srcdir) {
|
|
|
|
fprintf(stderr, "missing enviroment variable abs_top_srcdir\n");
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|
2008-02-05 19:27:37 +00:00
|
|
|
|
2007-11-14 10:35:58 +00:00
|
|
|
|
2006-08-24 15:05:19 +00:00
|
|
|
if (argc > 1) {
|
2006-10-09 14:32:07 +00:00
|
|
|
fprintf(stderr, "Usage: %s\n", progname);
|
|
|
|
exit(EXIT_FAILURE);
|
2006-08-24 15:05:19 +00:00
|
|
|
}
|
2006-10-09 14:32:07 +00:00
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR PV config (format 1)",
|
2006-09-12 01:16:22 +00:00
|
|
|
1, testComparePVversion1, NULL) != 0)
|
2006-10-09 14:32:07 +00:00
|
|
|
ret = -1;
|
2006-09-12 01:16:22 +00:00
|
|
|
|
2006-10-09 14:32:07 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR FV config (format 1)",
|
2006-09-12 01:16:22 +00:00
|
|
|
1, testCompareFVversion1, NULL) != 0)
|
2006-10-09 14:32:07 +00:00
|
|
|
ret = -1;
|
2006-09-12 01:16:22 +00:00
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR PV config (format 2)",
|
|
|
|
1, testComparePVversion2, NULL) != 0)
|
2006-10-09 14:32:07 +00:00
|
|
|
ret = -1;
|
2006-08-24 15:05:19 +00:00
|
|
|
|
2006-10-09 14:32:07 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR FV config (format 2)",
|
2006-09-12 01:16:22 +00:00
|
|
|
1, testCompareFVversion2, NULL) != 0)
|
2006-10-09 14:32:07 +00:00
|
|
|
ret = -1;
|
2006-08-24 15:05:19 +00:00
|
|
|
|
2006-09-12 01:34:26 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR FV config (format 2, VNC unused)",
|
2006-10-09 14:32:07 +00:00
|
|
|
1, testCompareFVversion2VNC, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2006-12-13 14:08:51 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR PV config (Orig VFB)",
|
|
|
|
1, testComparePVOrigVFB, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR PV config (New VFB)",
|
|
|
|
1, testComparePVNewVFB, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2007-06-07 13:50:18 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR PV config with bootloader",
|
|
|
|
1, testComparePVBootloader, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2006-10-09 14:32:07 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR Disk File",
|
|
|
|
1, testCompareDiskFile, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR Disk Block",
|
|
|
|
1, testCompareDiskBlock, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2007-11-20 10:05:45 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR Disk Shareable",
|
|
|
|
1, testCompareDiskShareable, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2006-10-09 14:32:07 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR Disk Drv Loop",
|
|
|
|
1, testCompareDiskDrvLoop, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR Disk Drv Blkback",
|
|
|
|
1, testCompareDiskDrvBlkback, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR Disk Drv Blktap",
|
|
|
|
1, testCompareDiskDrvBlktap, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR Disk Drv Blktap QCow",
|
|
|
|
1, testCompareDiskDrvBlktapQcow, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR Disk Drv Blktap Raw",
|
|
|
|
1, testCompareDiskDrvBlktapRaw, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2006-11-10 11:13:01 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR Memory Resize",
|
|
|
|
1, testCompareMemoryResize, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2006-11-15 00:38:13 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR Net Routed",
|
|
|
|
1, testCompareNetRouted, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR Net Bridged",
|
|
|
|
1, testCompareNetBridged, NULL) != 0)
|
|
|
|
ret = -1;
|
2006-09-12 01:34:26 +00:00
|
|
|
|
2007-04-11 16:06:30 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR No Source CDRom",
|
|
|
|
1, testCompareNoSourceCDRom, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2007-07-18 21:08:22 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR FV usb mouse)",
|
|
|
|
1, testCompareFVInputUSBMouse, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
if (virtTestRun("XML-2-SEXPR FV usb tablet)",
|
|
|
|
1, testCompareFVInputUSBTablet, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2007-07-16 21:30:30 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR clock UTC",
|
|
|
|
1, testCompareFVclockUTC, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
|
|
|
if (virtTestRun("XML-2-SEXPR clock Localtime",
|
|
|
|
1, testCompareFVclockLocaltime, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2008-02-05 16:21:25 +00:00
|
|
|
if (virtTestRun("XML-2-SEXPR FV kernel",
|
|
|
|
1, testCompareFVKernel, NULL) != 0)
|
|
|
|
ret = -1;
|
|
|
|
|
2006-08-24 15:05:19 +00:00
|
|
|
exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
|
|
|
}
|
2007-11-30 22:51:54 +00:00
|
|
|
|
|
|
|
#else /* WITH_XEN */
|
|
|
|
|
|
|
|
int main (void) { exit (77); /* means 'test skipped' for automake */ }
|
|
|
|
|
|
|
|
#endif /* ! WITH_XEN */
|