Re: PATCH 4/4: Xen test suite support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch updates the Xen test suite to cover the new serial and paralle
device syntax extensions

 sexpr2xmldata/sexpr2xml-curmem.xml                 |    3 
 sexpr2xmldata/sexpr2xml-disk-block-shareable.xml   |    3 
 sexpr2xmldata/sexpr2xml-disk-block.xml             |    3 
 sexpr2xmldata/sexpr2xml-disk-drv-blktap-qcow.xml   |    3 
 sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.xml    |    3 
 sexpr2xmldata/sexpr2xml-disk-file.xml              |    3 
 sexpr2xmldata/sexpr2xml-fv-kernel.xml              |    6 
 sexpr2xmldata/sexpr2xml-fv-parallel-tcp.sexpr      |    1 
 sexpr2xmldata/sexpr2xml-fv-parallel-tcp.xml        |   44 ++
 sexpr2xmldata/sexpr2xml-fv-serial-file.sexpr       |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-file.xml         |   48 ++
 sexpr2xmldata/sexpr2xml-fv-serial-null.sexpr       |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-null.xml         |   46 ++
 sexpr2xmldata/sexpr2xml-fv-serial-pipe.sexpr       |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-pipe.xml         |   48 ++
 sexpr2xmldata/sexpr2xml-fv-serial-pty.sexpr        |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-pty.xml          |   46 ++
 sexpr2xmldata/sexpr2xml-fv-serial-stdio.sexpr      |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-stdio.xml        |   46 ++
 sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.sexpr |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.xml   |   48 ++
 sexpr2xmldata/sexpr2xml-fv-serial-tcp.sexpr        |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-tcp.xml          |   48 ++
 sexpr2xmldata/sexpr2xml-fv-serial-udp.sexpr        |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-udp.xml          |   50 ++
 sexpr2xmldata/sexpr2xml-fv-serial-unix.sexpr       |    1 
 sexpr2xmldata/sexpr2xml-fv-serial-unix.xml         |   48 ++
 sexpr2xmldata/sexpr2xml-net-bridged.xml            |    3 
 sexpr2xmldata/sexpr2xml-net-routed.xml             |    3 
 sexpr2xmldata/sexpr2xml-no-source-cdrom.xml        |    6 
 sexpr2xmldata/sexpr2xml-pv-bootloader.xml          |    3 
 sexpr2xmldata/sexpr2xml-pv-vfb-new.xml             |    3 
 sexpr2xmldata/sexpr2xml-pv-vfb-orig.xml            |    3 
 sexpr2xmldata/sexpr2xml-pv.xml                     |    3 
 sexpr2xmltest.c                                    |  319 ++++--------------
 xmconfigdata/test-fullvirt-localtime.cfg           |    2 
 xmconfigdata/test-fullvirt-new-cdrom.cfg           |    2 
 xmconfigdata/test-fullvirt-old-cdrom.cfg           |    2 
 xmconfigdata/test-fullvirt-parallel-tcp.cfg        |   25 +
 xmconfigdata/test-fullvirt-parallel-tcp.xml        |   45 ++
 xmconfigdata/test-fullvirt-serial-file.cfg         |   25 +
 xmconfigdata/test-fullvirt-serial-file.xml         |   49 ++
 xmconfigdata/test-fullvirt-serial-null.cfg         |   25 +
 xmconfigdata/test-fullvirt-serial-null.xml         |   47 ++
 xmconfigdata/test-fullvirt-serial-pipe.cfg         |   25 +
 xmconfigdata/test-fullvirt-serial-pipe.xml         |   49 ++
 xmconfigdata/test-fullvirt-serial-pty.cfg          |   25 +
 xmconfigdata/test-fullvirt-serial-pty.xml          |   47 ++
 xmconfigdata/test-fullvirt-serial-stdio.cfg        |   25 +
 xmconfigdata/test-fullvirt-serial-stdio.xml        |   47 ++
 xmconfigdata/test-fullvirt-serial-tcp-telnet.cfg   |   25 +
 xmconfigdata/test-fullvirt-serial-tcp-telnet.xml   |   49 ++
 xmconfigdata/test-fullvirt-serial-tcp.cfg          |   25 +
 xmconfigdata/test-fullvirt-serial-tcp.xml          |   49 ++
 xmconfigdata/test-fullvirt-serial-udp.cfg          |   25 +
 xmconfigdata/test-fullvirt-serial-udp.xml          |   51 ++
 xmconfigdata/test-fullvirt-serial-unix.cfg         |   25 +
 xmconfigdata/test-fullvirt-serial-unix.xml         |   49 ++
 xmconfigdata/test-fullvirt-usbmouse.cfg            |    2 
 xmconfigdata/test-fullvirt-usbtablet.cfg           |    2 
 xmconfigdata/test-fullvirt-utc.cfg                 |    2 
 xmconfigdata/test-paravirt-new-pvfb.xml            |    4 
 xmconfigdata/test-paravirt-old-pvfb.xml            |    4 
 xmconfigtest.c                                     |   18 -
 xml2sexprdata/xml2sexpr-fv-kernel.sexpr            |    2 
 xml2sexprdata/xml2sexpr-fv-localtime.sexpr         |    2 
 xml2sexprdata/xml2sexpr-fv-parallel-tcp.sexpr      |    1 
 xml2sexprdata/xml2sexpr-fv-parallel-tcp.xml        |   40 ++
 xml2sexprdata/xml2sexpr-fv-serial-file.sexpr       |    1 
 xml2sexprdata/xml2sexpr-fv-serial-file.xml         |   40 ++
 xml2sexprdata/xml2sexpr-fv-serial-null.sexpr       |    1 
 xml2sexprdata/xml2sexpr-fv-serial-null.xml         |   39 ++
 xml2sexprdata/xml2sexpr-fv-serial-pipe.sexpr       |    1 
 xml2sexprdata/xml2sexpr-fv-serial-pipe.xml         |   40 ++
 xml2sexprdata/xml2sexpr-fv-serial-pty.sexpr        |    1 
 xml2sexprdata/xml2sexpr-fv-serial-pty.xml          |   39 ++
 xml2sexprdata/xml2sexpr-fv-serial-stdio.sexpr      |    1 
 xml2sexprdata/xml2sexpr-fv-serial-stdio.xml        |   39 ++
 xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.sexpr |    1 
 xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.xml   |   40 ++
 xml2sexprdata/xml2sexpr-fv-serial-tcp.sexpr        |    1 
 xml2sexprdata/xml2sexpr-fv-serial-tcp.xml          |   40 ++
 xml2sexprdata/xml2sexpr-fv-serial-udp.sexpr        |    1 
 xml2sexprdata/xml2sexpr-fv-serial-udp.xml          |   41 ++
 xml2sexprdata/xml2sexpr-fv-serial-unix.sexpr       |    1 
 xml2sexprdata/xml2sexpr-fv-serial-unix.xml         |   40 ++
 xml2sexprdata/xml2sexpr-fv-usbmouse.sexpr          |    2 
 xml2sexprdata/xml2sexpr-fv-usbtablet.sexpr         |    2 
 xml2sexprdata/xml2sexpr-fv-utc.sexpr               |    2 
 xml2sexprdata/xml2sexpr-fv-v2.sexpr                |    2 
 xml2sexprdata/xml2sexpr-fv-vncunused.sexpr         |    2 
 xml2sexprdata/xml2sexpr-fv.sexpr                   |    2 
 xml2sexprdata/xml2sexpr-no-source-cdrom.sexpr      |    2 
 xml2sexprtest.c                                    |  364 ++++-----------------
 94 files changed, 1861 insertions(+), 548 deletions(-)

Dan.

Index: tests/sexpr2xmltest.c
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmltest.c,v
retrieving revision 1.25
diff -u -p -r1.25 sexpr2xmltest.c
--- tests/sexpr2xmltest.c	10 Apr 2008 16:54:54 -0000	1.25
+++ tests/sexpr2xmltest.c	18 Apr 2008 20:01:37 -0000
@@ -2,6 +2,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <unistd.h>
 
 #ifdef WITH_XEN
 
@@ -11,11 +12,11 @@
 #include "testutils.h"
 
 static char *progname;
-static char *abs_top_srcdir;
+static char *abs_srcdir;
 
 #define MAX_FILE 4096
 
-static int testCompareFiles(const char *xml_rel, const char *sexpr_rel,
+static int testCompareFiles(const char *xml, const char *sexpr,
                             int xendConfigVersion) {
   char xmlData[MAX_FILE];
   char sexprData[MAX_FILE];
@@ -23,28 +24,23 @@ static int testCompareFiles(const char *
   char *xmlPtr = &(xmlData[0]);
   char *sexprPtr = &(sexprData[0]);
   int ret = -1;
-  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);
-
-  if (virtTestLoadFile(xml, &xmlPtr, MAX_FILE) < 0)
-    goto fail;
+  if (virtTestLoadFile(xml, &xmlPtr, MAX_FILE) < 0) {
+      printf("Missing %s\n", xml);
+      goto fail;
+  }
 
-  if (virtTestLoadFile(sexpr, &sexprPtr, MAX_FILE) < 0)
-    goto fail;
+  if (virtTestLoadFile(sexpr, &sexprPtr, MAX_FILE) < 0) {
+      printf("Missing %s\n", sexpr);
+      goto fail;
+  }
 
   if (!(gotxml = xend_parse_domain_sexp(NULL, sexprData, xendConfigVersion)))
     goto fail;
 
-  if (strcmp(xmlData, gotxml)) {
-    if (getenv("DEBUG_TESTS")) {
-        printf("In test file %s -> %s:\n", sexpr, xml);
-        printf("Expect %d '%s'\n", (int)strlen(xmlData), xmlData);
-        printf("Actual %d '%s'\n", (int)strlen(gotxml), gotxml);
-    }
-    goto fail;
+  if (STRNEQ(xmlData, gotxml)) {
+      virtTestDifference(stderr, xmlData, gotxml);
+      goto fail;
   }
 
   ret = 0;
@@ -55,139 +51,21 @@ static int testCompareFiles(const char *
   return ret;
 }
 
-static int testComparePVversion1(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-pv.xml",
-                          "sexpr2xmldata/sexpr2xml-pv.sexpr",
-                          1);
-}
-
-static int testCompareFVversion1(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv.xml",
-                          "sexpr2xmldata/sexpr2xml-fv.sexpr",
-                          1);
-}
-
-static int testComparePVversion2(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-pv.xml",
-                          "sexpr2xmldata/sexpr2xml-pv.sexpr",
-                          2);
-}
-
-static int testComparePVOrigVFB(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-pv-vfb-orig.xml",
-                          "sexpr2xmldata/sexpr2xml-pv-vfb-orig.sexpr",
-                          2);
-}
-
-
-static int testComparePVNewVFB(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-pv-vfb-new.xml",
-                          "sexpr2xmldata/sexpr2xml-pv-vfb-new.sexpr",
-                          3);
-}
-
-
-static int testCompareFVversion2(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv-v2.xml",
-                          "sexpr2xmldata/sexpr2xml-fv-v2.sexpr",
-                          2);
-}
-
-static int testComparePVBootloader(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-pv-bootloader.xml",
-                          "sexpr2xmldata/sexpr2xml-pv-bootloader.sexpr",
-                          2);
-}
-
-static int testCompareDiskFile(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-disk-file.xml",
-                          "sexpr2xmldata/sexpr2xml-disk-file.sexpr",
-                          1);
-}
-
-static int testCompareDiskBlock(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-disk-block.xml",
-                          "sexpr2xmldata/sexpr2xml-disk-block.sexpr",
-                          1);
-}
-
-static int testCompareDiskShareable(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-disk-block-shareable.xml",
-                          "sexpr2xmldata/sexpr2xml-disk-block-shareable.sexpr",
-                          1);
-}
-
-static int testCompareDiskDrvBlktapQcow(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-disk-drv-blktap-qcow.xml",
-                          "sexpr2xmldata/sexpr2xml-disk-drv-blktap-qcow.sexpr",
-                          1);
-}
-
-static int testCompareDiskDrvBlktapRaw(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.xml",
-                          "sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.sexpr",
-                          1);
-}
-
-static int testCompareResizedMemory(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-curmem.xml",
-                          "sexpr2xmldata/sexpr2xml-curmem.sexpr",
-                          1);
-}
-
-
-static int testCompareNetRouted(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-net-routed.xml",
-                          "sexpr2xmldata/sexpr2xml-net-routed.sexpr",
-                          1);
-}
-
-static int testCompareNetBridged(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-net-bridged.xml",
-                          "sexpr2xmldata/sexpr2xml-net-bridged.sexpr",
-                          1);
-}
-
-static int testCompareNoSourceCDRom(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-no-source-cdrom.xml",
-                          "sexpr2xmldata/sexpr2xml-no-source-cdrom.sexpr",
-                          1);
-}
-
-static int testCompareFVInputUSBMouse(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv-usbmouse.xml",
-                          "sexpr2xmldata/sexpr2xml-fv-usbmouse.sexpr",
-                          1);
-}
-
-static int testCompareFVInputUSBTablet(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv-usbtablet.xml",
-                          "sexpr2xmldata/sexpr2xml-fv-usbtablet.sexpr",
-                          1);
-}
-
-static int testCompareFVclockUTC(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv-utc.xml",
-                          "sexpr2xmldata/sexpr2xml-fv-utc.sexpr",
-                          1);
-}
-
-static int testCompareFVclockLocaltime(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv-localtime.xml",
-                          "sexpr2xmldata/sexpr2xml-fv-localtime.sexpr",
-                          1);
-}
-
-static int testCompareFVKernel(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv-kernel.xml",
-                          "sexpr2xmldata/sexpr2xml-fv-kernel.sexpr",
-                          1);
-}
-
-static int testCompareFVLegacyVFB(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("sexpr2xmldata/sexpr2xml-fv-legacy-vfb.xml",
-                          "sexpr2xmldata/sexpr2xml-fv-legacy-vfb.sexpr",
-                          4);
+struct testInfo {
+    const char *input;
+    const char *output;
+    int version;
+};
+
+static int testCompareHelper(const void *data) {
+    const struct testInfo *info = data;
+    char xml[PATH_MAX];
+    char args[PATH_MAX];
+    snprintf(xml, PATH_MAX, "%s/sexpr2xmldata/sexpr2xml-%s.xml",
+             abs_srcdir, info->input);
+    snprintf(args, PATH_MAX, "%s/sexpr2xmldata/sexpr2xml-%s.sexpr",
+             abs_srcdir, info->output);
+    return testCompareFiles(xml, args, info->version);
 }
 
 
@@ -195,6 +73,7 @@ int
 main(int argc, char **argv)
 {
     int ret = 0;
+    char cwd[PATH_MAX];
 
     progname = argv[0];
 
@@ -203,98 +82,58 @@ main(int argc, char **argv)
         exit(EXIT_FAILURE);
     }
 
-    abs_top_srcdir = getenv("abs_top_srcdir");
-    if (!abs_top_srcdir) {
-        fprintf(stderr, "missing enviroment variable abs_top_srcdir\n");
+    abs_srcdir = getenv("abs_srcdir");
+    if (!abs_srcdir)
+        abs_srcdir = getcwd(cwd, sizeof(cwd));
+
+    if (argc > 1) {
+        fprintf(stderr, "Usage: %s\n", progname);
         exit(EXIT_FAILURE);
     }
 
-    if (virtTestRun("SEXPR-2-XML PV config (version 1)",
-                    1, testComparePVversion1, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML FV config (version 1)",
-                    1, testCompareFVversion1, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML PV config (version 2)",
-                    1, testComparePVversion2, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML PV config (Orig VFB)",
-                    1, testComparePVOrigVFB, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML PV config (New VFB)",
-                    1, testComparePVNewVFB, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML FV config (version 2)",
-                    1, testCompareFVversion2, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML PV config bootloader",
-                    1, testComparePVBootloader, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML Disk File config",
-                    1, testCompareDiskFile, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML Disk Block config",
-                    1, testCompareDiskBlock, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML Disk Block shareable",
-                    1, testCompareDiskShareable, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML Disk Driver blktap qcow config",
-                    1, testCompareDiskDrvBlktapQcow, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML Disk Driver blktap raw config",
-                    1, testCompareDiskDrvBlktapRaw, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML Resized memory config",
-                    1, testCompareResizedMemory, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML net routed",
-                    1, testCompareNetRouted, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML net bridged",
-                    1, testCompareNetBridged, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML no source CDRom",
-                    1, testCompareNoSourceCDRom, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML USB Mouse",
-                    1, testCompareFVInputUSBMouse, NULL) != 0)
-        ret = -1;
-    if (virtTestRun("SEXPR-2-XML USB Tablet",
-                    1, testCompareFVInputUSBTablet, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML clock UTC",
-                    1, testCompareFVclockUTC, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML clock Localtime",
-                    1, testCompareFVclockLocaltime, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML FV kernel",
-                    1, testCompareFVKernel, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("SEXPR-2-XML FV legacy VFB",
-                    1, testCompareFVLegacyVFB, NULL) != 0)
-        ret = -1;
+#define DO_TEST(in, out, version)                                      \
+    do {                                                               \
+        struct testInfo info = { in, out, version };                   \
+        if (virtTestRun("Xen SEXPR-2-XML " in " -> " out,              \
+                        1, testCompareHelper, &info) < 0)              \
+            ret = -1;                                                  \
+    } while (0)
+
+    DO_TEST("pv", "pv", 1);
+    DO_TEST("fv", "fv", 1);
+    DO_TEST("pv", "pv", 2);
+    DO_TEST("fv-v2", "fv-v2", 2);
+    DO_TEST("pv-vfb-orig", "pv-vfb-orig", 2);
+    DO_TEST("pv-vfb-new", "pv-vfb-new", 3);
+    DO_TEST("pv-bootloader", "pv-bootloader", 1);
+
+    DO_TEST("disk-file", "disk-file", 2);
+    DO_TEST("disk-block", "disk-block", 2);
+    DO_TEST("disk-block-shareable", "disk-block-shareable", 2);
+    DO_TEST("disk-drv-blktap-raw", "disk-drv-blktap-raw", 2);
+    DO_TEST("disk-drv-blktap-qcow", "disk-drv-blktap-qcow", 2);
+
+    DO_TEST("curmem", "curmem", 1);
+    DO_TEST("net-routed", "net-routed", 2);
+    DO_TEST("net-bridged", "net-bridged", 2);
+    DO_TEST("no-source-cdrom", "no-source-cdrom", 1);
+
+    DO_TEST("fv-utc", "fv-utc", 1);
+    DO_TEST("fv-localtime", "fv-localtime", 1);
+    DO_TEST("fv-usbmouse", "fv-usbmouse", 1);
+    DO_TEST("fv-usbmouse", "fv-usbmouse", 1);
+    DO_TEST("fv-kernel", "fv-kernel", 1);
+
+    DO_TEST("fv-serial-null", "fv-serial-null", 1);
+    DO_TEST("fv-serial-file", "fv-serial-file", 1);
+    DO_TEST("fv-serial-stdio", "fv-serial-stdio", 1);
+    DO_TEST("fv-serial-pty", "fv-serial-pty", 1);
+    DO_TEST("fv-serial-pipe", "fv-serial-pipe", 1);
+    DO_TEST("fv-serial-tcp", "fv-serial-tcp", 1);
+    DO_TEST("fv-serial-udp", "fv-serial-udp", 1);
+    DO_TEST("fv-serial-tcp-telnet", "fv-serial-tcp-telnet", 1);
+    DO_TEST("fv-serial-unix", "fv-serial-unix", 1);
+    DO_TEST("fv-parallel-tcp", "fv-parallel-tcp", 1);
 
     exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
 }
Index: tests/xmconfigtest.c
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigtest.c,v
retrieving revision 1.14
diff -u -p -r1.14 xmconfigtest.c
--- tests/xmconfigtest.c	18 Apr 2008 15:28:33 -0000	1.14
+++ tests/xmconfigtest.c	18 Apr 2008 20:01:37 -0000
@@ -128,11 +128,8 @@ static int testCompareFormatXML(const ch
     if (!(gotxml = xenXMDomainFormatXML(conn, conf)))
         goto fail;
 
-    if (strcmp(xmlData, gotxml)) {
-        if (getenv("DEBUG_TESTS")) {
-            printf("Expect %d '%s'\n", (int)strlen(xmlData), xmlData);
-            printf("Actual %d '%s'\n", (int)strlen(gotxml), gotxml);
-        }
+    if (STRNEQ(xmlData, gotxml)) {
+        virtTestDifference(stderr, xmlData, gotxml);
         goto fail;
     }
 
@@ -211,6 +208,17 @@ main(int argc, char **argv)
     DO_TEST("fullvirt-localtime", 2);
     DO_TEST("fullvirt-usbtablet", 2);
     DO_TEST("fullvirt-usbmouse", 2);
+    DO_TEST("fullvirt-serial-file", 2);
+    DO_TEST("fullvirt-serial-null", 2);
+    DO_TEST("fullvirt-serial-pipe", 2);
+    DO_TEST("fullvirt-serial-pty", 2);
+    DO_TEST("fullvirt-serial-stdio", 2);
+    DO_TEST("fullvirt-serial-tcp", 2);
+    DO_TEST("fullvirt-serial-tcp-telnet", 2);
+    DO_TEST("fullvirt-serial-udp", 2);
+    DO_TEST("fullvirt-serial-unix", 2);
+
+    DO_TEST("fullvirt-parallel-tcp", 2);
 
     exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
 }
Index: tests/xml2sexprtest.c
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprtest.c,v
retrieving revision 1.24
diff -u -p -r1.24 xml2sexprtest.c
--- tests/xml2sexprtest.c	10 Apr 2008 16:54:54 -0000	1.24
+++ tests/xml2sexprtest.c	18 Apr 2008 20:01:37 -0000
@@ -6,6 +6,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #if WITH_XEN
 
@@ -14,11 +15,11 @@
 #include "testutils.h"
 
 static char *progname;
-static char *abs_top_srcdir;
+static char *abs_srcdir;
 
 #define MAX_FILE 4096
 
-static int testCompareFiles(const char *xml_rel, const char *sexpr_rel,
+static int testCompareFiles(const char *xml, const char *sexpr,
                             const char *name, int xendConfigVersion) {
   char xmlData[MAX_FILE];
   char sexprData[MAX_FILE];
@@ -27,11 +28,6 @@ static int testCompareFiles(const char *
   char *xmlPtr = &(xmlData[0]);
   char *sexprPtr = &(sexprData[0]);
   int ret = -1;
-  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);
 
   if (virtTestLoadFile(xml, &xmlPtr, MAX_FILE) < 0)
     goto fail;
@@ -42,11 +38,8 @@ static int testCompareFiles(const char *
   if (!(gotsexpr = virDomainParseXMLDesc(NULL, xmlData, &gotname, xendConfigVersion)))
     goto fail;
 
-  if (strcmp(sexprData, gotsexpr)) {
-      if (getenv("DEBUG_TESTS")) {
-        printf("Expect %d '%s'\n", (int)strlen(sexprData), sexprData);
-        printf("Actual %d '%s'\n", (int)strlen(gotsexpr), gotsexpr);
-      }
+  if (STRNEQ(sexprData, gotsexpr)) {
+      virtTestDifference(stderr, sexprData, gotsexpr);
       goto fail;
   }
 
@@ -65,302 +58,89 @@ static int testCompareFiles(const char *
   return ret;
 }
 
-static int testComparePVversion1(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-pv.xml",
-                          "xml2sexprdata/xml2sexpr-pv.sexpr",
-                          "pvtest",
-                          1);
-}
-
-static int testCompareFVversion1(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv.xml",
-                          "xml2sexprdata/xml2sexpr-fv.sexpr",
-                          "fvtest",
-                          1);
-}
-
-static int testComparePVversion2(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-pv.xml",
-                          "xml2sexprdata/xml2sexpr-pv.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareFVversion2(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv.xml",
-                          "xml2sexprdata/xml2sexpr-fv-v2.sexpr",
-                          "fvtest",
-                          2);
-}
-
-static int testCompareFVversion2VNC(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv-vncunused.xml",
-                          "xml2sexprdata/xml2sexpr-fv-vncunused.sexpr",
-                          "fvtest",
-                          2);
-}
-
-static int testComparePVOrigVFB(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-pv-vfb-orig.xml",
-                          "xml2sexprdata/xml2sexpr-pv-vfb-orig.sexpr",
-                          "pvtest",
-                          2);
-}
-
-
-static int testComparePVNewVFB(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-pv-vfb-new.xml",
-                          "xml2sexprdata/xml2sexpr-pv-vfb-new.sexpr",
-                          "pvtest",
-                          3);
-}
-
-static int testComparePVBootloader(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-pv-bootloader.xml",
-                          "xml2sexprdata/xml2sexpr-pv-bootloader.sexpr",
-                          "pvtest",
-                          1);
-}
-
-static int testCompareDiskFile(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-file.xml",
-                          "xml2sexprdata/xml2sexpr-disk-file.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareDiskBlock(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-block.xml",
-                          "xml2sexprdata/xml2sexpr-disk-block.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareDiskShareable(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-block-shareable.xml",
-                          "xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareDiskDrvLoop(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-loop.xml",
-                          "xml2sexprdata/xml2sexpr-disk-drv-loop.sexpr",
-                          "pvtest",
-                          2);
+struct testInfo {
+    const char *input;
+    const char *output;
+    const char *name;
+    int version;
+};
+
+static int testCompareHelper(const void *data) {
+    const struct testInfo *info = data;
+    char xml[PATH_MAX];
+    char args[PATH_MAX];
+    snprintf(xml, PATH_MAX, "%s/xml2sexprdata/xml2sexpr-%s.xml",
+             abs_srcdir, info->input);
+    snprintf(args, PATH_MAX, "%s/xml2sexprdata/xml2sexpr-%s.sexpr",
+             abs_srcdir, info->output);
+    return testCompareFiles(xml, args, info->name, info->version);
 }
 
-static int testCompareDiskDrvBlkback(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blkback.xml",
-                          "xml2sexprdata/xml2sexpr-disk-drv-blkback.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareDiskDrvBlktap(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blktap.xml",
-                          "xml2sexprdata/xml2sexpr-disk-drv-blktap.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareDiskDrvBlktapQcow(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blktap-qcow.xml",
-                          "xml2sexprdata/xml2sexpr-disk-drv-blktap-qcow.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareDiskDrvBlktapRaw(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-disk-drv-blktap-raw.xml",
-                          "xml2sexprdata/xml2sexpr-disk-drv-blktap-raw.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareMemoryResize(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-curmem.xml",
-                          "xml2sexprdata/xml2sexpr-curmem.sexpr",
-                          "rhel5",
-                          2);
-}
-
-static int testCompareNetRouted(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-net-routed.xml",
-                          "xml2sexprdata/xml2sexpr-net-routed.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareNetBridged(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-net-bridged.xml",
-                          "xml2sexprdata/xml2sexpr-net-bridged.sexpr",
-                          "pvtest",
-                          2);
-}
-
-static int testCompareNoSourceCDRom(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-no-source-cdrom.xml",
-                          "xml2sexprdata/xml2sexpr-no-source-cdrom.sexpr",
-                          "test",
-                          2);
-}
-
-static int testCompareFVclockUTC(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv-utc.xml",
-                          "xml2sexprdata/xml2sexpr-fv-utc.sexpr",
-                          "fvtest",
-                          1);
-}
-
-static int testCompareFVclockLocaltime(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv-localtime.xml",
-                          "xml2sexprdata/xml2sexpr-fv-localtime.sexpr",
-                          "fvtest",
-                          1);
-}
-
-
-static int testCompareFVInputUSBMouse(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv-usbmouse.xml",
-                          "xml2sexprdata/xml2sexpr-fv-usbmouse.sexpr",
-                          "fvtest",
-                          1);
-}
-
-static int testCompareFVInputUSBTablet(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv-usbtablet.xml",
-                          "xml2sexprdata/xml2sexpr-fv-usbtablet.sexpr",
-                          "fvtest",
-                          1);
-}
-
-static int testCompareFVKernel(const void *data ATTRIBUTE_UNUSED) {
-  return testCompareFiles("xml2sexprdata/xml2sexpr-fv-kernel.xml",
-                          "xml2sexprdata/xml2sexpr-fv-kernel.sexpr",
-                          "fvtest",
-                          1);
-}
-
-
 
 int
 main(int argc, char **argv)
 {
     int ret = 0;
+    char cwd[PATH_MAX];
 
     progname = argv[0];
 
-    abs_top_srcdir = getenv("abs_top_srcdir");
-    if (!abs_top_srcdir) {
-        fprintf(stderr, "missing enviroment variable abs_top_srcdir\n");
-        exit(EXIT_FAILURE);
-    }
-
+    abs_srcdir = getenv("abs_srcdir");
+    if (!abs_srcdir)
+        abs_srcdir = getcwd(cwd, sizeof(cwd));
 
     if (argc > 1) {
         fprintf(stderr, "Usage: %s\n", progname);
         exit(EXIT_FAILURE);
     }
 
-    if (virtTestRun("XML-2-SEXPR PV config (format 1)",
-                    1, testComparePVversion1, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("XML-2-SEXPR FV config (format 1)",
-                    1, testCompareFVversion1, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("XML-2-SEXPR PV config (format 2)",
-                    1, testComparePVversion2, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("XML-2-SEXPR FV config (format 2)",
-                    1, testCompareFVversion2, NULL) != 0)
-        ret = -1;
-
-    if (virtTestRun("XML-2-SEXPR FV config (format 2, VNC unused)",
-                    1, testCompareFVversion2VNC, NULL) != 0)
-        ret = -1;
-
-    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;
-
-    if (virtTestRun("XML-2-SEXPR PV config with bootloader",
-                    1, testComparePVBootloader, NULL) != 0)
-        ret = -1;
-
-    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;
-
-    if (virtTestRun("XML-2-SEXPR Disk Shareable",
-                    1, testCompareDiskShareable, NULL) != 0)
-        ret = -1;
-
-    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;
-
-    if (virtTestRun("XML-2-SEXPR Memory Resize",
-                    1, testCompareMemoryResize, NULL) != 0)
-        ret = -1;
-
-    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;
-
-    if (virtTestRun("XML-2-SEXPR No Source CDRom",
-                    1, testCompareNoSourceCDRom, NULL) != 0)
-        ret = -1;
-
-    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;
-
-    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;
-
-    if (virtTestRun("XML-2-SEXPR FV kernel",
-                    1, testCompareFVKernel, NULL) != 0)
-        ret = -1;
+#define DO_TEST(in, out, name, version)                                \
+    do {                                                               \
+        struct testInfo info = { in, out, name, version };             \
+        if (virtTestRun("Xen XML-2-SEXPR " in " -> " out,              \
+                        1, testCompareHelper, &info) < 0)     \
+            ret = -1;                                                  \
+    } while (0)
+
+    DO_TEST("pv", "pv", "pvtest", 1);
+    DO_TEST("fv", "fv", "fvtest", 1);
+    DO_TEST("pv", "pv", "pvtest", 2);
+    DO_TEST("fv", "fv-v2", "fvtest", 2);
+    DO_TEST("fv-vncunused", "fv-vncunused", "fvtest", 2);
+    DO_TEST("pv-vfb-orig", "pv-vfb-orig", "pvtest", 2);
+    DO_TEST("pv-vfb-new", "pv-vfb-new", "pvtest", 3);
+    DO_TEST("pv-bootloader", "pv-bootloader", "pvtest", 1);
+
+    DO_TEST("disk-file", "disk-file", "pvtest", 2);
+    DO_TEST("disk-block", "disk-block", "pvtest", 2);
+    DO_TEST("disk-block-shareable", "disk-block-shareable", "pvtest", 2);
+    DO_TEST("disk-drv-loop", "disk-drv-loop", "pvtest", 2);
+    DO_TEST("disk-drv-blkback", "disk-drv-blkback", "pvtest", 2);
+    DO_TEST("disk-drv-blktap", "disk-drv-blktap", "pvtest", 2);
+    DO_TEST("disk-drv-blktap-raw", "disk-drv-blktap-raw", "pvtest", 2);
+    DO_TEST("disk-drv-blktap-qcow", "disk-drv-blktap-qcow", "pvtest", 2);
+
+    DO_TEST("curmem", "curmem", "rhel5", 2);
+    DO_TEST("net-routed", "net-routed", "pvtest", 2);
+    DO_TEST("net-bridged", "net-bridged", "pvtest", 2);
+    DO_TEST("no-source-cdrom", "no-source-cdrom", "test", 2);
+
+    DO_TEST("fv-utc", "fv-utc", "fvtest", 1);
+    DO_TEST("fv-localtime", "fv-localtime", "fvtest", 1);
+    DO_TEST("fv-usbmouse", "fv-usbmouse", "fvtest", 1);
+    DO_TEST("fv-usbmouse", "fv-usbmouse", "fvtest", 1);
+    DO_TEST("fv-kernel", "fv-kernel", "fvtest", 1);
+
+    DO_TEST("fv-serial-null", "fv-serial-null", "fvtest", 1);
+    DO_TEST("fv-serial-file", "fv-serial-file", "fvtest", 1);
+    DO_TEST("fv-serial-stdio", "fv-serial-stdio", "fvtest", 1);
+    DO_TEST("fv-serial-pty", "fv-serial-pty", "fvtest", 1);
+    DO_TEST("fv-serial-pipe", "fv-serial-pipe", "fvtest", 1);
+    DO_TEST("fv-serial-tcp", "fv-serial-tcp", "fvtest", 1);
+    DO_TEST("fv-serial-udp", "fv-serial-udp", "fvtest", 1);
+    DO_TEST("fv-serial-tcp-telnet", "fv-serial-tcp-telnet", "fvtest", 1);
+    DO_TEST("fv-serial-unix", "fv-serial-unix", "fvtest", 1);
+    DO_TEST("fv-parallel-tcp", "fv-parallel-tcp", "fvtest", 1);
 
     exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
 }
Index: tests/sexpr2xmldata/sexpr2xml-curmem.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-curmem.xml,v
retrieving revision 1.4
diff -u -p -r1.4 sexpr2xml-curmem.xml
--- tests/sexpr2xmldata/sexpr2xml-curmem.xml	21 Aug 2007 08:54:07 -0000	1.4
+++ tests/sexpr2xmldata/sexpr2xml-curmem.xml	18 Apr 2008 20:01:37 -0000
@@ -28,5 +28,8 @@
     </disk>
     <input type='mouse' bus='xen'/>
     <graphics type='vnc' port='5905'/>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml,v
retrieving revision 1.1
diff -u -p -r1.1 sexpr2xml-disk-block-shareable.xml
--- tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml	20 Nov 2007 10:05:45 -0000	1.1
+++ tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml	18 Apr 2008 20:01:37 -0000
@@ -21,5 +21,8 @@
       <mac address='00:16:3e:23:9e:eb'/>
       <script path='vif-bridge'/>
     </interface>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-disk-block.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-disk-block.xml,v
retrieving revision 1.2
diff -u -p -r1.2 sexpr2xml-disk-block.xml
--- tests/sexpr2xmldata/sexpr2xml-disk-block.xml	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/sexpr2xmldata/sexpr2xml-disk-block.xml	18 Apr 2008 20:01:37 -0000
@@ -18,5 +18,8 @@
       <source dev='/dev/MainVG/GuestVG'/>
       <target dev='xvda'/>
     </disk>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-qcow.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-qcow.xml,v
retrieving revision 1.2
diff -u -p -r1.2 sexpr2xml-disk-drv-blktap-qcow.xml
--- tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-qcow.xml	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-qcow.xml	18 Apr 2008 20:01:37 -0000
@@ -18,5 +18,8 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.xml,v
retrieving revision 1.2
diff -u -p -r1.2 sexpr2xml-disk-drv-blktap-raw.xml
--- tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.xml	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/sexpr2xmldata/sexpr2xml-disk-drv-blktap-raw.xml	18 Apr 2008 20:01:37 -0000
@@ -18,5 +18,8 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-disk-file.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-disk-file.xml,v
retrieving revision 1.2
diff -u -p -r1.2 sexpr2xml-disk-file.xml
--- tests/sexpr2xmldata/sexpr2xml-disk-file.xml	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/sexpr2xmldata/sexpr2xml-disk-file.xml	18 Apr 2008 20:01:37 -0000
@@ -18,5 +18,8 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-kernel.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-fv-kernel.xml,v
retrieving revision 1.1
diff -u -p -r1.1 sexpr2xml-fv-kernel.xml
--- tests/sexpr2xmldata/sexpr2xml-fv-kernel.xml	5 Feb 2008 16:21:25 -0000	1.1
+++ tests/sexpr2xmldata/sexpr2xml-fv-kernel.xml	18 Apr 2008 20:01:37 -0000
@@ -22,5 +22,11 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel tcp:localhost:9999)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-parallel-tcp.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,44 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <parallel type='tcp'>
+      <source mode='connect' host='localhost' service='9999' wiremode='raw'/>
+      <target port='0'/>
+    </parallel>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-file.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-file.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-file.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-file.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial file:/tmp/serial.log)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-file.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-file.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-file.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-file.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,48 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='file'>
+      <source path='/tmp/serial.log'/>
+      <target port='0'/>
+    </serial>
+    <console type='file'>
+      <source path='/tmp/serial.log'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-null.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-null.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-null.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-null.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial null)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-null.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-null.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-null.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-null.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,46 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='null'>
+      <target port='0'/>
+    </serial>
+    <console type='null'>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial pipe:/tmp/serial.pipe)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-pipe.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,48 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='pipe'>
+      <source path='/tmp/serial.pipe'/>
+      <target port='0'/>
+    </serial>
+    <console type='pipe'>
+      <source path='/tmp/serial.pipe'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial pty)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-pty.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,46 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial stdio)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-stdio.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,46 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='stdio'>
+      <target port='0'/>
+    </serial>
+    <console type='stdio'>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial telnet:localhost:9999,listen)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp-telnet.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,48 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='tcp'>
+      <source mode='bind' host='localhost' service='9999' wiremode='telnet'/>
+      <target port='0'/>
+    </serial>
+    <console type='tcp'>
+      <source mode='bind' host='localhost' service='9999' wiremode='telnet'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial tcp:localhost:9999,listen)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-tcp.xml	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1,48 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='tcp'>
+      <source mode='bind' host='localhost' service='9999' wiremode='raw'/>
+      <target port='0'/>
+    </serial>
+    <console type='tcp'>
+      <source mode='bind' host='localhost' service='9999' wiremode='raw'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.sexpr	18 Apr 2008 20:01:37 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial udp:localhost:9998@localhost:9999)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-udp.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,50 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='udp'>
+      <source mode='connect' host='localhost' service='9998'/>
+      <source mode='bind' host='localhost' service='9999'/>
+      <target port='0'/>
+    </serial>
+    <console type='udp'>
+      <source mode='connect' host='localhost' service='9998'/>
+      <source mode='bind' host='localhost' service='9999'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.sexpr
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.sexpr
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(domain (domid 1)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial unix:/tmp/serial.sock,listen)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.xml
===================================================================
RCS file: tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.xml
diff -N tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/sexpr2xmldata/sexpr2xml-fv-serial-unix.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,48 @@
+<domain type='xen' id='1'>
+  <name>fvtest</name>
+  <uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='file'/>
+      <source file='/root/foo.img'/>
+      <target dev='hda'/>
+    </disk>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <target dev='vif1.0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='5901'/>
+    <serial type='unix'>
+      <source mode='bind' path='/tmp/serial.sock'/>
+      <target port='0'/>
+    </serial>
+    <console type='unix'>
+      <source mode='bind' path='/tmp/serial.sock'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/sexpr2xmldata/sexpr2xml-net-bridged.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-net-bridged.xml,v
retrieving revision 1.3
diff -u -p -r1.3 sexpr2xml-net-bridged.xml
--- tests/sexpr2xmldata/sexpr2xml-net-bridged.xml	21 Aug 2007 08:54:07 -0000	1.3
+++ tests/sexpr2xmldata/sexpr2xml-net-bridged.xml	18 Apr 2008 20:01:38 -0000
@@ -24,5 +24,8 @@
       <mac address='00:11:22:33:44:55'/>
       <script path='vif-bridge'/>
     </interface>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-net-routed.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-net-routed.xml,v
retrieving revision 1.3
diff -u -p -r1.3 sexpr2xml-net-routed.xml
--- tests/sexpr2xmldata/sexpr2xml-net-routed.xml	21 Aug 2007 08:54:07 -0000	1.3
+++ tests/sexpr2xmldata/sexpr2xml-net-routed.xml	18 Apr 2008 20:01:38 -0000
@@ -24,5 +24,8 @@
       <ip address='172.14.5.6'/>
       <script path='vif-routed'/>
     </interface>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml,v
retrieving revision 1.8
diff -u -p -r1.8 sexpr2xml-no-source-cdrom.xml
--- tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml	30 Sep 2007 15:36:47 -0000	1.8
+++ tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml	18 Apr 2008 20:01:38 -0000
@@ -36,5 +36,11 @@
     </disk>
     <input type='mouse' bus='ps2'/>
     <graphics type='vnc' port='5906'/>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-pv-bootloader.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-pv-bootloader.xml,v
retrieving revision 1.2
diff -u -p -r1.2 sexpr2xml-pv-bootloader.xml
--- tests/sexpr2xmldata/sexpr2xml-pv-bootloader.xml	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/sexpr2xmldata/sexpr2xml-pv-bootloader.xml	18 Apr 2008 20:01:38 -0000
@@ -14,5 +14,8 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-pv-vfb-new.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-pv-vfb-new.xml,v
retrieving revision 1.5
diff -u -p -r1.5 sexpr2xml-pv-vfb-new.xml
--- tests/sexpr2xmldata/sexpr2xml-pv-vfb-new.xml	9 Aug 2007 20:19:12 -0000	1.5
+++ tests/sexpr2xmldata/sexpr2xml-pv-vfb-new.xml	18 Apr 2008 20:01:38 -0000
@@ -20,5 +20,8 @@
     </disk>
     <input type='mouse' bus='xen'/>
     <graphics type='vnc' port='-1' listen='0.0.0.0' keymap='ja'/>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-pv-vfb-orig.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-pv-vfb-orig.xml,v
retrieving revision 1.5
diff -u -p -r1.5 sexpr2xml-pv-vfb-orig.xml
--- tests/sexpr2xmldata/sexpr2xml-pv-vfb-orig.xml	9 Aug 2007 20:19:12 -0000	1.5
+++ tests/sexpr2xmldata/sexpr2xml-pv-vfb-orig.xml	18 Apr 2008 20:01:38 -0000
@@ -20,5 +20,8 @@
     </disk>
     <input type='mouse' bus='xen'/>
     <graphics type='vnc' port='-1' listen='0.0.0.0' keymap='ja'/>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/sexpr2xmldata/sexpr2xml-pv.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/sexpr2xmldata/sexpr2xml-pv.xml,v
retrieving revision 1.3
diff -u -p -r1.3 sexpr2xml-pv.xml
--- tests/sexpr2xmldata/sexpr2xml-pv.xml	9 Aug 2007 20:19:12 -0000	1.3
+++ tests/sexpr2xmldata/sexpr2xml-pv.xml	18 Apr 2008 20:01:38 -0000
@@ -18,5 +18,8 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/xmconfigdata/test-fullvirt-localtime.cfg
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-fullvirt-localtime.cfg,v
retrieving revision 1.2
diff -u -p -r1.2 test-fullvirt-localtime.cfg
--- tests/xmconfigdata/test-fullvirt-localtime.cfg	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/xmconfigdata/test-fullvirt-localtime.cfg	18 Apr 2008 20:01:38 -0000
@@ -21,3 +21,5 @@ vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
 disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "none"
Index: tests/xmconfigdata/test-fullvirt-new-cdrom.cfg
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-fullvirt-new-cdrom.cfg,v
retrieving revision 1.4
diff -u -p -r1.4 test-fullvirt-new-cdrom.cfg
--- tests/xmconfigdata/test-fullvirt-new-cdrom.cfg	9 Aug 2007 20:19:12 -0000	1.4
+++ tests/xmconfigdata/test-fullvirt-new-cdrom.cfg	18 Apr 2008 20:01:38 -0000
@@ -21,3 +21,5 @@ vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
 disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "none"
Index: tests/xmconfigdata/test-fullvirt-old-cdrom.cfg
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-fullvirt-old-cdrom.cfg,v
retrieving revision 1.4
diff -u -p -r1.4 test-fullvirt-old-cdrom.cfg
--- tests/xmconfigdata/test-fullvirt-old-cdrom.cfg	9 Aug 2007 20:19:12 -0000	1.4
+++ tests/xmconfigdata/test-fullvirt-old-cdrom.cfg	18 Apr 2008 20:01:38 -0000
@@ -22,3 +22,5 @@ vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
 disk = [ "phy:/dev/HostVG/XenGuest2,ioemu:hda,w" ]
 vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr0,type=ioemu" ]
+parallel = "none"
+serial = "none"
Index: tests/xmconfigdata/test-fullvirt-parallel-tcp.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-parallel-tcp.cfg
diff -N tests/xmconfigdata/test-fullvirt-parallel-tcp.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-parallel-tcp.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "tcp:127.0.0.1:7777"
+serial = "none"
Index: tests/xmconfigdata/test-fullvirt-parallel-tcp.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-parallel-tcp.xml
diff -N tests/xmconfigdata/test-fullvirt-parallel-tcp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-parallel-tcp.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,45 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <parallel type='tcp'>
+      <source mode='connect' host='127.0.0.1' service='7777' wiremode='raw'/>
+      <target port='0'/>
+    </parallel>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-file.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-file.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-file.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-file.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "file:/tmp/serial.log"
Index: tests/xmconfigdata/test-fullvirt-serial-file.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-file.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-file.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-file.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,49 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='file'>
+      <source path='/tmp/serial.log'/>
+      <target port='0'/>
+    </serial>
+    <console type='file'>
+      <source path='/tmp/serial.log'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-null.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-null.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-null.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-null.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "null"
Index: tests/xmconfigdata/test-fullvirt-serial-null.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-null.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-null.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-null.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,47 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='null'>
+      <target port='0'/>
+    </serial>
+    <console type='null'>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-pipe.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-pipe.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-pipe.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-pipe.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "pipe:/tmp/serial.pipe"
Index: tests/xmconfigdata/test-fullvirt-serial-pipe.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-pipe.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-pipe.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-pipe.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,49 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='pipe'>
+      <source path='/tmp/serial.pipe'/>
+      <target port='0'/>
+    </serial>
+    <console type='pipe'>
+      <source path='/tmp/serial.pipe'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-pty.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-pty.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-pty.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-pty.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "pty"
Index: tests/xmconfigdata/test-fullvirt-serial-pty.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-pty.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-pty.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-pty.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,47 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-stdio.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-stdio.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-stdio.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-stdio.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "stdio"
Index: tests/xmconfigdata/test-fullvirt-serial-stdio.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-stdio.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-stdio.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-stdio.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,47 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='stdio'>
+      <target port='0'/>
+    </serial>
+    <console type='stdio'>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "telnet:127.0.0.1:9999,listen"
Index: tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,49 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='tcp'>
+      <source mode='bind' host='127.0.0.1' service='9999' wiremode='telnet'/>
+      <target port='0'/>
+    </serial>
+    <console type='tcp'>
+      <source mode='bind' host='127.0.0.1' service='9999' wiremode='telnet'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-tcp.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-tcp.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-tcp.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-tcp.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "tcp:127.0.0.1:7777"
Index: tests/xmconfigdata/test-fullvirt-serial-tcp.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-tcp.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-tcp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-tcp.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,49 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='tcp'>
+      <source mode='connect' host='127.0.0.1' service='7777' wiremode='raw'/>
+      <target port='0'/>
+    </serial>
+    <console type='tcp'>
+      <source mode='connect' host='127.0.0.1' service='7777' wiremode='raw'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-udp.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-udp.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-udp.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-udp.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "udp:127.0.0.1:9999@xxxxxxx:99998"
Index: tests/xmconfigdata/test-fullvirt-serial-udp.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-udp.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-udp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-udp.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,51 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='udp'>
+      <source mode='connect' host='127.0.0.1' service='9999'/>
+      <source mode='bind' host='0.0.0.0' service='99998'/>
+      <target port='0'/>
+    </serial>
+    <console type='udp'>
+      <source mode='connect' host='127.0.0.1' service='9999'/>
+      <source mode='bind' host='0.0.0.0' service='99998'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-serial-unix.cfg
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-unix.cfg
diff -N tests/xmconfigdata/test-fullvirt-serial-unix.cfg
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-unix.cfg	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,25 @@
+name = "XenGuest2"
+uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
+maxmem = 579
+memory = 394
+vcpus = 1
+builder = "hvm"
+kernel = "/usr/lib/xen/boot/hvmloader"
+boot = "d"
+pae = 1
+acpi = 1
+apic = 1
+localtime = 0
+on_poweroff = "destroy"
+on_reboot = "restart"
+on_crash = "restart"
+device_model = "/usr/lib/xen/bin/qemu-dm"
+sdl = 0
+vnc = 1
+vncunused = 1
+vnclisten = "127.0.0.1"
+vncpasswd = "123poi"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
+vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "unix:/tmp/serial.sock,listen"
Index: tests/xmconfigdata/test-fullvirt-serial-unix.xml
===================================================================
RCS file: tests/xmconfigdata/test-fullvirt-serial-unix.xml
diff -N tests/xmconfigdata/test-fullvirt-serial-unix.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xmconfigdata/test-fullvirt-serial-unix.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,49 @@
+<domain type='xen'>
+  <name>XenGuest2</name>
+  <uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='cdrom'/>
+  </os>
+  <currentMemory>403456</currentMemory>
+  <memory>592896</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <pae/>
+    <acpi/>
+    <apic/>
+  </features>
+  <clock offset='utc'/>
+  <devices>
+    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
+    <disk type='block' device='disk'>
+      <driver name='phy'/>
+      <source dev='/dev/HostVG/XenGuest2'/>
+      <target dev='hda'/>
+    </disk>
+    <disk type='file' device='cdrom'>
+      <driver name='file'/>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <interface type='bridge'>
+      <mac address='00:16:3E:66:92:9C'/>
+      <source bridge='xenbr1'/>
+    </interface>
+    <input type='mouse' bus='ps2'/>
+    <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
+    <serial type='unix'>
+      <source mode='bind' path='/tmp/serial.sock'/>
+      <target port='0'/>
+    </serial>
+    <console type='unix'>
+      <source mode='bind' path='/tmp/serial.sock'/>
+      <target port='0'/>
+    </console>
+  </devices>
+</domain>
Index: tests/xmconfigdata/test-fullvirt-usbmouse.cfg
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-fullvirt-usbmouse.cfg,v
retrieving revision 1.2
diff -u -p -r1.2 test-fullvirt-usbmouse.cfg
--- tests/xmconfigdata/test-fullvirt-usbmouse.cfg	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/xmconfigdata/test-fullvirt-usbmouse.cfg	18 Apr 2008 20:01:38 -0000
@@ -22,3 +22,5 @@ vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
 disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "none"
Index: tests/xmconfigdata/test-fullvirt-usbtablet.cfg
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-fullvirt-usbtablet.cfg,v
retrieving revision 1.2
diff -u -p -r1.2 test-fullvirt-usbtablet.cfg
--- tests/xmconfigdata/test-fullvirt-usbtablet.cfg	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/xmconfigdata/test-fullvirt-usbtablet.cfg	18 Apr 2008 20:01:38 -0000
@@ -22,3 +22,5 @@ vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
 disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "none"
Index: tests/xmconfigdata/test-fullvirt-utc.cfg
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-fullvirt-utc.cfg,v
retrieving revision 1.2
diff -u -p -r1.2 test-fullvirt-utc.cfg
--- tests/xmconfigdata/test-fullvirt-utc.cfg	9 Aug 2007 20:19:12 -0000	1.2
+++ tests/xmconfigdata/test-fullvirt-utc.cfg	18 Apr 2008 20:01:38 -0000
@@ -21,3 +21,5 @@ vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
 disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3E:66:92:9C,bridge=xenbr1,type=ioemu" ]
+parallel = "none"
+serial = "none"
Index: tests/xmconfigdata/test-paravirt-new-pvfb.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-paravirt-new-pvfb.xml,v
retrieving revision 1.3
diff -u -p -r1.3 test-paravirt-new-pvfb.xml
--- tests/xmconfigdata/test-paravirt-new-pvfb.xml	9 Aug 2007 20:19:12 -0000	1.3
+++ tests/xmconfigdata/test-paravirt-new-pvfb.xml	18 Apr 2008 20:01:38 -0000
@@ -20,6 +20,8 @@
     </interface>
     <input type='mouse' bus='xen'/>
     <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
-    <console/>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/xmconfigdata/test-paravirt-old-pvfb.xml
===================================================================
RCS file: /data/cvs/libvirt/tests/xmconfigdata/test-paravirt-old-pvfb.xml,v
retrieving revision 1.3
diff -u -p -r1.3 test-paravirt-old-pvfb.xml
--- tests/xmconfigdata/test-paravirt-old-pvfb.xml	9 Aug 2007 20:19:12 -0000	1.3
+++ tests/xmconfigdata/test-paravirt-old-pvfb.xml	18 Apr 2008 20:01:38 -0000
@@ -20,6 +20,8 @@
     </interface>
     <input type='mouse' bus='xen'/>
     <graphics type='vnc' port='-1' listen='127.0.0.1' passwd='123poi'/>
-    <console/>
+    <console type='pty'>
+      <target port='0'/>
+    </console>
   </devices>
 </domain>
Index: tests/xml2sexprdata/xml2sexpr-fv-kernel.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv-kernel.sexpr,v
retrieving revision 1.1
diff -u -p -r1.1 xml2sexpr-fv-kernel.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv-kernel.sexpr	5 Feb 2008 16:21:25 -0000	1.1
+++ tests/xml2sexprdata/xml2sexpr-fv-kernel.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (hvm (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')(loader '/usr/lib/xen/boot/hvmloader')(vcpus 2)(boot c)(usb 1)(serial pty)))(device (vbd (dev 'ioemu:xvda')(uname 'file:/root/some.img')(mode 'w'))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (hvm (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')(loader '/usr/lib/xen/boot/hvmloader')(vcpus 2)(boot c)(usb 1)(parallel none)(serial pty)))(device (vbd (dev 'ioemu:xvda')(uname 'file:/root/some.img')(mode 'w'))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-localtime.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv-localtime.sexpr,v
retrieving revision 1.3
diff -u -p -r1.3 xml2sexpr-fv-localtime.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv-localtime.sexpr	5 Feb 2008 16:21:25 -0000	1.3
+++ tests/xml2sexprdata/xml2sexpr-fv-localtime.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(localtime 1)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial none)(localtime 1)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel tcp:localhost:9999)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-parallel-tcp.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,40 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <parallel type='tcp'>
+      <source mode='connect' host='localhost' service='9999' wiremode='raw'/>
+      <target port='0'/>
+    </parallel>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-file.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-file.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-file.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-file.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial file:/tmp/serial.log)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-file.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-file.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-file.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-file.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,40 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='file'>
+      <source path='/tmp/serial.log'/>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-null.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-null.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-null.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-null.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial null)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-null.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-null.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-null.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-null.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,39 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='null'>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial pipe:/tmp/serial.pipe)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-pipe.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,40 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='pipe'>
+      <source path='/tmp/serial.pipe'/>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-pty.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-pty.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-pty.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-pty.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial pty)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-pty.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-pty.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-pty.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-pty.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,39 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial stdio)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-stdio.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,39 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='stdio'>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial telnet:localhost:9999,listen)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-tcp-telnet.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,40 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='tcp'>
+      <source mode='bind' host='localhost' service='9999' wiremode='telnet'/>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial tcp:localhost:9999,listen)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-tcp.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,40 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='tcp'>
+      <source mode='bind' host='localhost' service='9999' wiremode='raw'/>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-udp.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-udp.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-udp.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-udp.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial udp:localhost:9998@localhost:9999)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-udp.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-udp.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-udp.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-udp.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,41 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='udp'>
+      <source mode='connect' host='localhost' service='9998'/>
+      <source mode='bind' host='localhost' service='9999'/>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-unix.sexpr
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-unix.sexpr
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-unix.sexpr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-unix.sexpr	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1 @@
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial unix:/tmp/serial.sock,listen)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-serial-unix.xml
===================================================================
RCS file: tests/xml2sexprdata/xml2sexpr-fv-serial-unix.xml
diff -N tests/xml2sexprdata/xml2sexpr-fv-serial-unix.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/xml2sexprdata/xml2sexpr-fv-serial-unix.xml	18 Apr 2008 20:01:38 -0000
@@ -0,0 +1,40 @@
+<domain type='xen'>
+  <name>fvtest</name>
+  <uuid>b5d70dd275cdaca517769660b059d8bc</uuid>
+  <os>
+    <type>hvm</type>
+    <loader>/usr/lib/xen/boot/hvmloader</loader>
+    <boot dev='hd'/>
+  </os>
+  <memory>409600</memory>
+  <vcpu>1</vcpu>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <features>
+    <acpi/>
+  </features>
+  <devices>
+    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
+    <interface type='bridge'>
+      <source bridge='xenbr0'/>
+      <mac address='00:16:3e:1b:b1:47'/>
+      <script path='vif-bridge'/>
+    </interface>
+    <disk type='file' device='cdrom'>
+      <source file='/root/boot.iso'/>
+      <target dev='hdc'/>
+      <readonly/>
+    </disk>
+    <disk type='file'>
+      <source file='/root/foo.img'/>
+      <target dev='ioemu:hda'/>
+    </disk>
+    <serial type='unix'>
+      <source mode='bind' path='/tmp/serial.sock'/>
+      <target port='0'/>
+    </serial>
+    <graphics type='vnc' port='5917' keymap='ja'/>
+  </devices>
+</domain>
+
Index: tests/xml2sexprdata/xml2sexpr-fv-usbmouse.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv-usbmouse.sexpr,v
retrieving revision 1.2
diff -u -p -r1.2 xml2sexpr-fv-usbmouse.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv-usbmouse.sexpr	5 Feb 2008 16:21:25 -0000	1.2
+++ tests/xml2sexprdata/xml2sexpr-fv-usbmouse.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(usbdevice mouse)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(usbdevice mouse)(parallel none)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-usbtablet.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv-usbtablet.sexpr,v
retrieving revision 1.2
diff -u -p -r1.2 xml2sexpr-fv-usbtablet.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv-usbtablet.sexpr	5 Feb 2008 16:21:25 -0000	1.2
+++ tests/xml2sexprdata/xml2sexpr-fv-usbtablet.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(usbdevice tablet)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(usbdevice tablet)(parallel none)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-utc.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv-utc.sexpr,v
retrieving revision 1.3
diff -u -p -r1.3 xml2sexpr-fv-utc.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv-utc.sexpr	5 Feb 2008 16:21:25 -0000	1.3
+++ tests/xml2sexprdata/xml2sexpr-fv-utc.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-v2.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv-v2.sexpr,v
retrieving revision 1.7
diff -u -p -r1.7 xml2sexpr-fv-v2.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv-v2.sexpr	5 Feb 2008 16:21:25 -0000	1.7
+++ tests/xml2sexprdata/xml2sexpr-fv-v2.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(acpi 1)(usb 1)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)(vncdisplay 17)(keymap ja)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(acpi 1)(usb 1)(parallel none)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)(vncdisplay 17)(keymap ja)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv-vncunused.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv-vncunused.sexpr,v
retrieving revision 1.6
diff -u -p -r1.6 xml2sexpr-fv-vncunused.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv-vncunused.sexpr	5 Feb 2008 16:21:25 -0000	1.6
+++ tests/xml2sexprdata/xml2sexpr-fv-vncunused.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(acpi 1)(usb 1)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)(vncunused 1)(keymap ja)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(acpi 1)(usb 1)(parallel none)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)(vncunused 1)(keymap ja)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-fv.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-fv.sexpr,v
retrieving revision 1.4
diff -u -p -r1.4 xml2sexpr-fv.sexpr
--- tests/xml2sexprdata/xml2sexpr-fv.sexpr	5 Feb 2008 16:21:25 -0000	1.4
+++ tests/xml2sexprdata/xml2sexpr-fv.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(cdrom '/root/boot.iso')(acpi 1)(usb 1)(parallel none)(serial none)(device_model '/usr/lib64/xen/bin/qemu-dm')(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
Index: tests/xml2sexprdata/xml2sexpr-no-source-cdrom.sexpr
===================================================================
RCS file: /data/cvs/libvirt/tests/xml2sexprdata/xml2sexpr-no-source-cdrom.sexpr,v
retrieving revision 1.3
diff -u -p -r1.3 xml2sexpr-no-source-cdrom.sexpr
--- tests/xml2sexprdata/xml2sexpr-no-source-cdrom.sexpr	5 Feb 2008 16:21:25 -0000	1.3
+++ tests/xml2sexprdata/xml2sexpr-no-source-cdrom.sexpr	18 Apr 2008 20:01:38 -0000
@@ -1 +1 @@
-(vm (name 'test')(memory 350)(maxmem 382)(vcpus 1)(uuid 'cc2315e7d26a307a438c6d188ec4c09c')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(acpi 1)(apic 1)(pae 1)(usb 1)(device_model '/usr/lib/xen/bin/qemu-dm')(vnc 1)(vncdisplay 6)))(device (vbd (dev 'hda:disk:disk')(uname 'phy:/dev/sda8')(mode 'w')))(device (vbd (dev 'hdc:cdrom')(mode 'r')))(device (vif (mac '00:16:3e:0a:7b:39')(type ioemu))))
\ No newline at end of file
+(vm (name 'test')(memory 350)(maxmem 382)(vcpus 1)(uuid 'cc2315e7d26a307a438c6d188ec4c09c')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(vcpus 1)(boot c)(acpi 1)(apic 1)(pae 1)(usb 1)(parallel none)(serial none)(device_model '/usr/lib/xen/bin/qemu-dm')(vnc 1)(vncdisplay 6)))(device (vbd (dev 'hda:disk:disk')(uname 'phy:/dev/sda8')(mode 'w')))(device (vbd (dev 'hdc:cdrom')(mode 'r')))(device (vif (mac '00:16:3e:0a:7b:39')(type ioemu))))
\ No newline at end of file


-- 
|: Red Hat, Engineering, Boston   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]