From 4fbfac851e05670cb7cb378ef1c3560b82a05473 Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Sat, 18 Jan 2014 12:20:57 +0100 Subject: [PATCH] Add test for transient disk support in VMX files --001a11c3e84c4130bc04f03cda95 Content-Type: text/plain; charset=ISO-8859-1 From: Wout Mertens Adds test for transient disk translation in vmx files --- .../vmx2xml-harddisk-transient.vmx | 6 +++++ .../vmx2xml-harddisk-transient.xml | 25 +++++++++++++++++++ tests/vmx2xmltest.c | 1 + 3 files changed, 32 insertions(+) create mode 100644 tests/vmx2xmldata/vmx2xml-harddisk-transient.vmx create mode 100644 tests/vmx2xmldata/vmx2xml-harddisk-transient.xml diff --git a/tests/vmx2xmldata/vmx2xml-harddisk-transient.vmx b/tests/vmx2xmldata/vmx2xml-harddisk-transient.vmx new file mode 100644 index 0000000000..68ef3827f7 --- /dev/null +++ b/tests/vmx2xmldata/vmx2xml-harddisk-transient.vmx @@ -0,0 +1,6 @@ +config.version = "8" +virtualHW.version = "4" +ide0:0.present = "true" +ide0:0.deviceType = "ata-hardDisk" +ide0:0.fileName = "harddisk.vmdk" +ide0:0.mode = "independent-nonpersistent" diff --git a/tests/vmx2xmldata/vmx2xml-harddisk-transient.xml b/tests/vmx2xmldata/vmx2xml-harddisk-transient.xml new file mode 100644 index 0000000000..3786e2fe31 --- /dev/null +++ b/tests/vmx2xmldata/vmx2xml-harddisk-transient.xml @@ -0,0 +1,25 @@ + + 00000000-0000-0000-0000-000000000000 + 32768 + 32768 + 1 + + hvm + + + destroy + restart + destroy + + + + + +
+ + + + + diff --git a/tests/vmx2xmltest.c b/tests/vmx2xmltest.c index 5c3b60e22d..963824a48e 100644 --- a/tests/vmx2xmltest.c +++ b/tests/vmx2xmltest.c @@ -226,6 +226,7 @@ mymain(void) DO_TEST("harddisk-scsi-file", "harddisk-scsi-file"); DO_TEST("harddisk-ide-file", "harddisk-ide-file"); + DO_TEST("harddisk-transient", "harddisk-transient"); DO_TEST("cdrom-scsi-file", "cdrom-scsi-file"); DO_TEST("cdrom-scsi-device", "cdrom-scsi-device"); -- GitLab