diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2006-11-15 00:38:13 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2006-11-15 00:38:13 +0000 |
commit | 6d8b20ce85aae6d0a1de38d33e3985197cc443bf (patch) | |
tree | 1a5602f449eb9fd2ed1bf15a5ae79161008d4efb /tests/xml2sexprtest.c | |
parent | * src/xend_internal.c src/xml.c: fix for shareable drive support (diff) | |
download | libvirt-6d8b20ce85aae6d0a1de38d33e3985197cc443bf.tar.gz libvirt-6d8b20ce85aae6d0a1de38d33e3985197cc443bf.tar.bz2 libvirt-6d8b20ce85aae6d0a1de38d33e3985197cc443bf.zip |
Added support for non-bridged networking
Diffstat (limited to 'tests/xml2sexprtest.c')
-rw-r--r-- | tests/xml2sexprtest.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/xml2sexprtest.c b/tests/xml2sexprtest.c index 9ca42b973..a1c09e403 100644 --- a/tests/xml2sexprtest.c +++ b/tests/xml2sexprtest.c @@ -138,6 +138,21 @@ static int testCompareMemoryResize(void *data ATTRIBUTE_UNUSED) { 2); } +static int testCompareNetRouted(void *data ATTRIBUTE_UNUSED) { + return testCompareFiles("xml2sexprdata/xml2sexpr-net-routed.xml", + "xml2sexprdata/xml2sexpr-net-routed.sexpr", + "pvtest", + 2); +} + +static int testCompareNetBridged(void *data ATTRIBUTE_UNUSED) { + return testCompareFiles("xml2sexprdata/xml2sexpr-net-bridged.xml", + "xml2sexprdata/xml2sexpr-net-bridged.sexpr", + "pvtest", + 2); +} + + int main(int argc, char **argv) { @@ -202,6 +217,13 @@ main(int argc, char **argv) 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; exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); } |